Courier-imaplogin问题升级/启用详细日志logging后

我昨天晚上更新了我的邮件服务器,从Debian etch到lenny。 到目前为止,我遇到了我的后缀安装问题,主要是我设法打破了IMAP访问莫名其妙。

当试图用Thunderbird连接到IMAP服务器时,我在mail.log中得到的是:

Feb 12 11:57:16 mail imapd-ssl: Connection, ip=[::ffff:10.100.200.65] Feb 12 11:57:16 mail imapd-ssl: LOGIN: ip=[::ffff:10.100.200.65], command=AUTHENTICATE Feb 12 11:57:16 mail authdaemond: received auth request, service=imap, authtype=login Feb 12 11:57:16 mail authdaemond: authmysql: trying this module Feb 12 11:57:16 mail authdaemond: SQL query: SELECT username, password, "", '105', '105', '/var/virtual', maildir, "", name, "" FROM mailbox WHERE username = '[email protected]' AND (active=1) Feb 12 11:57:16 mail authdaemond: password matches successfully Feb 12 11:57:16 mail authdaemond: authmysql: sysusername=<null>, sysuserid=105, sysgroupid=105, homedir=/var/virtual, [email protected], fullname=<null>, maildir=xoxo.sk/[email protected]/, quota=<null>, options=<null> Feb 12 11:57:16 mail authdaemond: Authenticated: sysusername=<null>, sysuserid=105, sysgroupid=105, homedir=/var/virtual, [email protected], fullname=<null>, maildir=xoxo.sk/[email protected]/, quota=<null>, options=<null> 

…然后Thunderbird继续抱怨它不能login/丢失连接。 Thunderbird绝对没有configuration为通过SSL / TLS连接

POP3(也由Courier提供)工作正常。

我一直在寻找一种方法,使信使-IMAP日志更详细,就像可以在这里看到的例子。

编辑:抱歉的混乱,我发现我已经通过grep imap ,这自然没有显示authdaemond条目漏斗日志。

详细日志loggingconfiguration条目可在DEBUG_LOGIN=1下的/etc/courier/imapd DEBUG_LOGIN=1 (设置为1以启用详细日志logging,设置为2以启用将明文密码转储到日志文件。

所以,在telnet我的邮件服务器之后,我终于发现了这个问题。

 $ telnet 10.0.0.229 143 Trying 10.0.0.229... Connected to 10.0.0.229. 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-2008 Double Precision, Inc. See COPYING for distribution information. 0 login [email protected] redacted 0 OK LOGIN Ok * BYE [ALERT] Fatal error: Account's mailbox directory is not owned by the correct uid or gid: 

事实certificate,对courier-imap的一个不太新的变化引入了一些额外的用户maildirs的理智检查。 作为解决方法,我已经将IMAP_MAILBOX_SANITY_CHECK=0添加到我的/etc/courier/imapd (path可能会因您而异)。

虽然这只是一个丑陋的解决方法,但它可能会帮助有人遇到同样的问题。 不过,我想通过额外的理智检查。