我已经在我的基于Debian Squeeze VPS服务器上安装了Postfix和Courier 。 我的服务器使用MySQL数据库。
每个守护进程都能正常工作,但无法使用POP3和IMAPlogin到我的帐户。 我的桌面上的IceDove(Thunderbird)说:用户名或密码无效,但我确定用户名和密码都是正确的。 我已经多次检查过,我已经多次更改密码,结果总是一样的。 前段时间我在其他服务器上安装了类似configuration的邮件服务器。 唯一的区别是我没有使用SSL 。
我曾尝试通过mailx发送电子邮件来设置地址,并正确传送。 (我已经在邮件目录中检查过)。
在我的/var/log/mail.log我有:
Jul 21 09:18:00 kolodziej pop3d: Connection, ip=[::ffff:46.113.168.72] Jul 21 09:18:01 kolodziej postfix/smtpd[6357]: cannot load Certificate Authority data: disabling TLS support Jul 21 09:18:01 kolodziej postfix/smtpd[6357]: warning: TLS library problem: 6357:error:02001002:system library:fopen:No such file or directory:bss_file.c:126:fopen('/etc/postfix/cacert.pem','r'): Jul 21 09:18:01 kolodziej postfix/smtpd[6357]: warning: TLS library problem: 6357:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:129: Jul 21 09:18:01 kolodziej postfix/smtpd[6357]: warning: TLS library problem: 6357:error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib:by_file.c:274: Jul 21 09:18:01 kolodziej postfix/smtpd[6357]: connect from user-46-113-168-72.play-internet.pl[46.113.168.72] Jul 21 09:18:01 kolodziej pop3d: LOGOUT, ip=[::ffff:46.113.168.72] Jul 21 09:18:01 kolodziej pop3d: Disconnected, ip=[::ffff:46.113.168.72] Jul 21 09:18:02 kolodziej postfix/smtpd[6357]: improper command pipelining after EHLO from user-46-113-168-72.play-internet.pl[46.113.168.72] Jul 21 09:18:02 kolodziej postfix/smtpd[6357]: disconnect from user-46-113-168-72.play-internet.pl[46.113.168.72]
它试图通过TLS(像HTTPS这样的安全连接)进行连接,为此它必须find一个证书文件并读取它。
这可能是你的/etc/postfix/cacert.pem文件的权限错误。 检查是否可以通过运行postfix的用户读取文件(可能是服务帐户)。
另外,你也许连接在错误的端口(例如一个TLS没有SSL,或不安全的POP3(或IMAP))? 检查你连接的端口:
IMAP4/SSL 993 (TCP) IMAP4 with or without TLS 143 (TCP) POP3/SSL 995 (TCP) POP3 with or without TLS 110 (TCP)