![自更新以来,Courier IMAP 总是断开连接](https://linux22.com/image/581310/%E8%87%AA%E6%9B%B4%E6%96%B0%E4%BB%A5%E6%9D%A5%EF%BC%8CCourier%20IMAP%20%E6%80%BB%E6%98%AF%E6%96%AD%E5%BC%80%E8%BF%9E%E6%8E%A5.png)
自从我们的一位客户更新了他们的服务器后,Courier 就无法再正确处理 IMAP 连接了。POP3 运行正常,没有任何问题。
当我尝试使用 telnet 测试 IMAP 时,它总是这样的:
$ telnet domain.com 143
Trying 188.40.46.214...
Connected to domain.com.
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-2011 Double Precision, Inc. See COPYING for distribution information.
01 LOGIN [email protected] test
Connection closed by foreign host.
我在 authdaemond 中启用了调试,但输出并没有太大帮助:
Apr 12 23:10:04 servername authdaemond: received auth request, service=imap, authtype=login
Apr 12 23:10:04 servername authdaemond: authmysql: trying this module
Apr 12 23:10:04 servername authdaemond: SQL query: SELECT login, password, "", uid, gid, homedir, maildir, quota, "", concat('disableimap=',disableimap,',disablepop3=',disablepop3) FROM mail_user WHERE login = '[email protected]'
Apr 12 23:10:04 servername authdaemond: password matches successfully
Apr 12 23:10:04 servername authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/vmail, [email protected], fullname=<null>, maildir=/var/vmail/domain.com/test, quota=0, options=disableimap=n,disablepop3=n
Apr 12 23:10:04 servername authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/vmail, [email protected], fullname=<null>, maildir=/var/vmail/domain.com/test, quota=0, options=disableimap=n,disablepop3=n
在“已验证”行之后,输出立即停止。没有其他消息。而且在我检查过的其他日志文件中,我找不到任何其他相关消息。
系统从Ubuntu 10.10更新到12.04。
我如何才能获得更多信息?或者有人知道这里可能出现什么问题吗?
答案1
看起来连接处理程序进程由于某种原因崩溃了。我建议用户降级到他们之前使用的版本,或者升级其所有依赖项。重新安装也可能有帮助。