Hello everyone,
I'm trying to configure Courier-IMAP-SSL to serve maildirs created by an
already working Postfix installation. I'm using Debian package
3.0.8-2.backports.org.1 (which should be version 3.0.8 of Courier-IMAP).
I can't get authuserdb authentication to work. It's very likely that
I've forgot something given that most tutorials handle the case of MySQL
instead of userdb authentication. However, I'm failing to get a verbose
debug log of the authentication process.
Here is what happens when I connect: (ip address x'ed out)
myhostname:/etc/courier# openssl s_client -connect xxx.xxx.xxx.xxx:993
CONNECTED(00000003)
[...SSL stuff...]
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL
ACL2=UNION] Courier-IMAP ready. Copyright 1998-2004 Double Precision,
Inc. See COPYING for distribution information.
a login myhostname mypassword
a NO Login failed.
And here is the output in /var/log/syslog:
Nov 23 20:08:38 myhostname imapd-ssl: Connection,
ip=[::ffff:xxx.xxx.xxx.xxx]
Nov 23 20:08:47 myhostname imapd-ssl: LOGIN: DEBUG:
ip=[::ffff:xxx.xxx.xxx.xxx], command=LOGIN
Nov 23 20:08:47 myhostname imapd-ssl: LOGIN: DEBUG:
ip=[::ffff:xxx.xxx.xxx.xxx], username=myusername
Nov 23 20:08:47 myhostname imapd-ssl: authdaemon: starting client module
Nov 23 20:08:48 myhostname imapd-ssl: authdaemon: REJECT
Nov 23 20:08:53 myhostname imapd-ssl: LOGIN FAILED,
ip=[::ffff:xxx.xxx.xxx.xxx]
How can I get a verbose log of what happens between line "starting
client module" and "REJECT"?
I also tried
myhostname:/etc/courier# courierauthtest myusername mypassword
Trying authdaemon...
Authentication FAILED!
(this produces no log at all)
My /etc/syslog.conf contains
mail.*;mail.none -/var/log/mail.log
*.*;auth,authpriv.none -/var/log/syslog
One of these two logs should contain the relevant info? But it doesn't...
/etc/courier/imapd contains:
AUTHMODULES="authdaemon"
DEBUG_LOGIN=1
/etc/courier/authdaemonrc contains:
authmodulelist="authuserdb"
Can anyone help me, please?
Regards,
Andreas