имеем: courier, пользователи в mysql. пользователи, и соответственно пароль добавляются через postfixadmin. пароль криптуется так:
mail / # grep "encrypt" /var/www/localhost/htdocs/postfixadmin/config.inc.php |grep -v "//"
$CONF['encrypt'] = 'md5crypt';
mail / # tail -n 0 -f /var/log/mail.log
Feb 18 21:09:32 mail imapd: Connection, ip=[::ffff:192.168.10.1]
Feb 18 21:09:32 mail imapd: Disconnected, ip=[::ffff:192.168.10.1], time=0
mail / # grep -v "#" /etc/courier/authlib/authdaemonrc
authmodulelist="authmysql"
daemons=5
DEBUG_LOGIN=2
mail / # grep -v "#" /etc/courier-imap/imapd
ADDRESS=0
PORT=143
MAXDAEMONS=40
MAXPERIP=4
PIDFILE=/var/run/imapd.pid
LOGGEROPTS="-name=imapd"
IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"
IMAP_CHECK_ALL_FOLDERS=1
IMAP_ENHANCEDIDLE=1
IMAP_EMPTYTRASH=Trash:40,Junk:7
IMAPDSTART=YES
MAILDIR=.maildir
MAILDIRPATH=.maildir