Current debian courier-authlib packages doesn't support authvchkpw. Namely courier-authlib-0.60.4 and newer.
According to:
http://forum.qmailrocks.org/showthread.php?t=5200
first compile /downloads/qmailrocks/courier-authlib-0.55 (./configure, make)
or download and compile last working - courier-authlib-0.60.2.tar.bz2 from attachment
you will need libgdbm-dev or libdb-dev installed:
apt-get install libgdbm-dev
apt-get install courier-imap-ssl courier-pop-ssl
Copy the required libs
# cp /downloads/qmailrocks/scripts/misc/authvchkpw /usr/lib/courier/courier-authlib/authvchkpw
cp /downloads/qmailrocks/courier-authlib-0.55/.libs/libauthvchkpw.so /usr/lib/courier-authlib/
vi /etc/courier/authdaemonrc
Change these two lines:
authmodulelist="authvchkpw"
authmodulelistorig="authvchkpw"
vi /etc/courier/authmodulelist
Remove the auhdaemond line
authvchkpw
restart it:
cd /etc/init.d
./courier-imap stop
./courier-authdaemon stop
./courier-imap-ssl stop
./courier-imap start
./courier-authdaemon start
./courier-imap-ssl start
Test if it works:
telnet localhost 143
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information.
a login postmaster@domain.net password
a OK LOGIN Ok.
a logout
* BYE Courier-IMAP server shutting down
a OK LOGOUT completed
Connection closed by foreign host.
připojené soubory: courier-authlib-0.60.2.tar.bz2, authvchkpw.gz