我们可以向所有域发送/接收邮件,但不能接收来自Gmail的邮件。我们在centos 6服务器上使用了postfix、dovecot。这些是centos 6上的邮件错误日志
May 2 05:51:12 ip-172-31-14-2 postfix/smtpd[25021]: connect from mail-wm1-f52.google.com[209.85.128.52]
May 2 05:51:12 ip-172-31-14-2 postfix/smtpd[25021]: lost connection after STARTTLS from mail-wm1-f52.google.com[209.85.128.52]
May 2 05:51:12 ip-172-31-14-2 postfix/cleanup[25023]: 8CBDA80058: message-id=<20190502055112.8CBDA80058@mail.portperrylamaze.com>
May 2 05:51:12 ip-172-31-14-2 postfix/qmgr[25000]: 8CBDA80058: from=<double-bounce@mail.portperrylamaze.com>, size=953, nrcpt=1 (queue active)
May 2 05:51:12 ip-172-31-14-2 postfix/smtpd[25021]: disconnect from mail-wm1-f52.google.com[209.85.128.52]
May 2 05:51:12 ip-172-31-14-2 postfix/cleanup[25023]: D2A6780074: message-id=<20190502055112.8CBDA80058@mail.portperrylamaze.com>
May 2 05:51:12 ip-172-31-14-2 postfix/qmgr[25000]: D2A6780074: from=<double-bounce@mail.portperrylamaze.com>, size=1108, nrcpt=1 (queue active)
May 2 05:51:12 ip-172-31-14-2 postfix/local[25028]: 8CBDA80058: to=<postmaster@mail.portperrylamaze.com>, orig_to=<postmaster>, relay=local, delay=0.33, delays=0.28/0/0/0.04, dsn=2.0.0, status=sent (forwarded as D2A6780074)
May 2 05:51:12 ip-172-31-14-2 postfix/qmgr[25000]: 8CBDA80058: removed
May 2 05:51:13 ip-172-31-14-2 postfix/pipe[25033]: D2A6780074: to=<postmaster@portperrylamaze.com>, orig_to=<postmaster>, relay=dovecot, delay=0.27, delays=0.04/0/0/0.23, dsn=2.0.0, status=sent (delivered via dovecot service)
May 2 05:51:13 ip-172-31-14-2 postfix/qmgr[25000]: D2A6780074: removed
May 2 05:51:17 ip-172-31-14-2 postfix/smtpd[25021]: connect from unknown[141.98.80.33]
May 2 05:51:17 ip-172-31-14-2 postfix/smtpd[25021]: connect from unknown[141.98.80.33]
May 2 05:51:20 ip-172-31-14-2 postfix/smtpd[25021]: warning: unknown[141.98.80.33]: SASL PLAIN authentication failed:
May 2 05:51:20 ip-172-31-14-2 postfix/smtpd[25021]: lost connection after AUTH from unknown[141.98.80.33]
May 2 05:51:20 ip-172-31-14-2 postfix/smtpd[25021]: disconnect from unknown[141.98.80.33]
May 2 05:51:20 ip-172-31-14-2 postfix/smtpd[25021]: connect from unknown[141.98.80.33]
May 2 05:51:24 ip-172-31-14-2 postfix/smtpd[25086]: warning: cannot get RSA certificate from file </etc/pki/dovecot/certs/dovecot.pem: disabling TLS support
May 2 05:51:24 ip-172-31-14-2 postfix/smtpd[25086]: warning: TLS library problem: 25086:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('</etc/pki/dovecot/certs/dovecot.pem','r'):
May 2 05:51:24 ip-172-31-14-2 postfix/smtpd[25086]: warning: TLS library problem: 25086:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
May 2 05:51:24 ip-172-31-14-2 postfix/smtpd[25086]: warning: TLS library problem: 25086:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722:
May 2 05:51:24 ip-172-31-14-2 postfix/smtpd[25086]: connect from unknown[165.227.46.130]
1条答案
按热度按时间mwecs4sa1#
看起来您的TLS设置不完整,大多数邮件服务器可能会退回到不安全的纯文本SMTP,但Gmail可能会拒绝使用未加密的连接。遗憾的是,链接文章中的答案并没有真正帮助。
您应该执行的一些步骤:
很有可能,Gmail的问题会随着TLS的正确设置而消失,您将拥有一个更安全的服务器。
顺便说一句,在日志中,你也可以看到暴力连接尝试。请确保你服务器上的所有帐户都有强密码,否则你的服务器很快就会成为垃圾邮件发射器。