2014-07-13 20:08:10
来 源
中存储网
Postfix
服务器postfix+dovecot+cyrus-sasl一直正常使用!昨天突然出现可以发送不可以接收!telnet localhost 110Trying ip地址...telnet: connect to address ip地址: Connection
服务器postfix+dovecot+cyrus-sasl一直正常使用!昨天突然出现可以发送不可以接收!
telnet localhost 110
Trying ip地址...
telnet: connect to address ip地址: Connection refused
telnet: Unable to connect to remote host: Connection refused
然后查看日志
Jul 26 17:46:43 mail dovecot: Dovecot starting up
Jul 26 17:46:44 mail dovecot: Auth process died too early - shutting down
Jul 26 17:46:44 mail dovecot: child 3336 (auth) returned error 127
Jul 26 17:46:44 mail pop3-login: fd_send(-1) failed: Broken pipe
Jul 26 17:46:44 mail last message repeated 2 times
Jul 26 17:46:46 mail dovecot: Dovecot starting up
Jul 26 17:46:47 mail dovecot: Auth process died too early - shutting down
Jul 26 17:46:47 mail dovecot: child 3365 (auth) returned error 127
Jul 26 17:46:47 mail imap-login: fd_send(-1) failed: Broken pipe
Jul 26 17:46:47 mail pop3-login: fd_send(-1) failed: Broken pipe
Jul 26 17:46:47 mail pop3-login: fd_send(-1) failed: Broken pipe
mail为机器名
查询
rpm -qa|grep dovecot
dovecot-0.99.11-2.EL4.1
我在本地卸载我的
dovecot-0.99.11-2.EL4.1然后重新安装,然后编译还是可以正常的telnet localhost 110
但服务器端因为安装时dovecot-0.99.11-2.EL4.1时提示依赖mysql-4.1.12-3.RHEL4.1.i386.rpm,但是
rpm -ivh mysql-4.1.12-3.RHEL4.1.i386.rpm 一直通不过
 
重新上网下载
dovecot-0.99.13-1.1.el3.rf.i386.rpm
先卸载原来的dovecot-0.99.11-2.EL4.1
重新安装

[root@mail root]# rpm -ivh dovecot-0.99.13-1.1.el3.rf.i386.rpm
warning: dovecot-0.99.13-1.1.el3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:dovecot                ########################################### [100%]
[root@mail ~]# vi /etc/dovecot.conf

更改协议

 protocols = imap imaps pop3 pop3s
[root@mail ~]# service dovecot restart
Shutting down IMAP daemon (dovecot):                      确定   ]
Starting IMAP daemon (dovecot):                           确定 ]
[root@mail ~]# telnet localhost 110
Trying ip...
Connected to localhost.localdomain (ip).
Escape character is '^]'.
+OK dovecot ready.
quit
+OK Logging out
Connection closed by foreign host.
然后重新启动postfix reload

但是还是出错!

查看日志:Jul 27 11:15:07 mail pop3(ouyang): open(/var/mail/ouyang.lock) failed: Permission denied
Jul 27 11:15:07 mail pop3(ouyang): file_lock_dotlock() failed with mbox file /var/mail/ouyang: Permission denied
Jul 27 11:15:07 mail pop3(ouyang): Couldn't open INBOX: Internal error occured. Refer to server log for more information. [2006-07-27 11:15:07]
权限不够,然后直接把/var/spool/mail权限放大!

重新启动postfix reload

telnet localhost 110

telnet localhost 25

都OK

现在再次测试--OK 经验总结,要看日志来解决问题,可以和postfix 群内用户探讨!

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。