快递authdaemon不试图validationimap用户

我们已经有一台使用过的邮件服务器运行一年多了,但是今天早些时候它开始偶尔authentication用户失败,现在甚至已经停止了authentication。

邮件日志中的邮件是:

www imapd: authdaemon: s_connect() failed: Connection refused www imapd: [Hint: perhaps authdaemond is not running?] www imapd: LOGIN FAILED, user=XXX, ip=[::ffff:aaa.bbb.ccc.ddd] www imapd: authentication error: Connection refused 

但据我所见,一切正在运行,它只是不工作。

在它完全失败之前,它在每个authentication方法中循环,然后才find合适的一个,现在看来并没有试图通过其中的任何一个。

netstat -napt输出:

 tcp 0 0 :::143 :::* LISTEN 25051/couriertcpd 

ps alx输出:

 5 0 25087 1 20 0 3952 284 - S ? 0:00 /usr/sbin/courierlogger -pid=/var/spool/authdaemon/pid -start /usr/libexec/courier-authlib/authdaemond 4 0 25088 25087 20 0 61320 1472 - S ? 0:00 /usr/libexec/courier-authlib/authdaemond 1 0 25089 25088 20 0 61320 356 - S ? 0:00 /usr/libexec/courier-authlib/authdaemond 1 0 25090 25088 20 0 61320 360 - S ? 0:00 /usr/libexec/courier-authlib/authdaemond 1 0 25091 25088 20 0 61320 368 - S ? 0:00 /usr/libexec/courier-authlib/authdaemond 1 0 25092 25088 20 0 61320 368 - S ? 0:00 /usr/libexec/courier-authlib/authdaemond 1 0 25093 25088 20 0 61320 368 - S ? 0:00 /usr/libexec/courier-authlib/authdaemond 

我已经重新启动(比我记得更多的时间)courier-authlib和courier-imap,现在已经将分发configuration文件/etc/authlib/authdeamonrc.dist复制到正在使用的/ etc / authlib / authdaemonrc文件中,虽然我不认为它已经改变了。

从本地和远程客户端telnet到imap端口143,然后进入

 a login username password 

给我留言:

 * BYE Temporary problem, please try again later Connection closed by foreign host. 

和电子邮件日志中的“连接被拒绝”消息一样,正如我在本消息的第一部分中提到的那样。

这是一个古老的(〜2年)的系统,所以各种程序将远离最新版本,但它已经工作很长时间,所以它不能只是一个代码问题。

如果任何人都可以给我任何线索,我可以如何进一步采取诊断过程,将不胜感激。

这是来自/ etc / authlib / authdaemonrc authdaemon似乎忽略的行:

 authmodulelist="authuserdb authpam authpgsql authldap authmysql authcustom authpipe" 

看看authdaemonrc(如果我没记错的话)configuration文件。 它应该有关于如何authentication的细节。 如果它是例如使用ldap,看看你的ldap服务器是否仍然存在,如果它正在使用mysql …解决这个问题,你可能会解决你的问题。