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...
[root@mail ~]# vi /etc/dovecot.conf
更改协议
[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 群内用户探讨!