我无法从我的邮件客户端成功连接到我的 smtp 服务器。
/var/log/mail.log
我的文件中出现以下错误
Dec 21 15:08:04 pareto postfix/smtpd[11101]: SSL_accept:SSLv3 flush data
Dec 21 15:08:04 pareto postfix/smtpd[11101]: read from B96D2180 [B96C1EB3] (5 bytes => -1 (0xFFFFFFFF))
Dec 21 15:08:04 pareto postfix/smtpd[11101]: read from B96D2180 [B96C1EB3] (5 bytes => 0 (0x0))
Dec 21 15:08:04 pareto postfix/smtpd[11101]: SSL_accept:failed in SSLv3 read client certificate A
Dec 21 15:08:04 pareto postfix/smtpd[11101]: SSL_accept error from unknown[69.165.232.221]: lost connection
Dec 21 15:08:04 pareto postfix/smtpd[11101]: lost connection after STARTTLS from unknown[69.165.232.221]
Dec 21 15:08:04 pareto postfix/smtpd[11101]: disconnect from unknown[69.165.232.221]
我做了一些调试,但似乎找不到问题
root@pareto:/etc/dovecot# telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 pareto.qpapaya.com ESMTP Postfix (Ubuntu)
ehlo localhost
250-pareto.qpapaya.com
250-PIPELINING
250-SIZE 30720000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
我用的是linode 设置指南,并且它说我应该期待:
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
但正如您所见,它并未显示出来。
dovecot.conf:
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.0.18-linode43 i686 Ubuntu 12.04 LTS ext3
mail_location = maildir:/home/vmail/%d/%n/Maildir
namespace {
inbox = yes
location =
prefix = INBOX.
separator = .
type = private
}
passdb {
args = /etc/dovecot/conf.d/auth-sql.conf.ext
driver = sql
}
postmaster_address = [email protected]
protocols = "imap pop3"
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
group = vmail
mode = 0600
user = vmail
}
mechanisms = plain login
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
args = uid=vmail gid=vmail home=/home/%u/%d/%n allow_all_users=yes
driver = static
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-userdb
}
任何帮助将不胜感激!
答案1
事实证明,Apple 的 Mail 不喜欢自签名 SSL 证书。
尝试使用雷鸟并且它有效!