发现宝塔邮局部分VPS无法接收邮件,gmail,qq, hotmail等无法收,只能发送,不能接收,经过一番研究花了我大半天时间。
maillog会显示
Dec 3 12:20:08 mail postfix/smtp[8647]: 6B11480EED: to=<postmaster@abc.com>, orig_to=<postmaster>, relay=none, delay=0.05, delays=0.02/0.01/0.01/0, dsn=5.4.6, status=bounced (mail for mail.abc.comloops back to myself)
Dec 3 12:20:08 mail postfix/bounce[8648]: warning: 6B11480EED: undeliverable postmaster notification discarded
邮件无法接收回弹
Gmail回弹提示,454 4.7.0 TLS not available due to local problem 通过这条线索找到问题
原来是postfix,smtp_tls证书没有配。自己手动加上问题解决。
- mkdir /etc/ssl/private/
- openssl req -new -x509 -days 3650 -nodes -out /etc/ssl/certs/dovecot.pem -keyout /etc/ssl/private/dovecot.pem
- chmod o= /etc/ssl/private/dovecot.pem
- openssl req -new -x509 -days 3650 -nodes -out /etc/ssl/certs/postfix.pem -keyout /etc/ssl/private/postfix.pem
- chmod o= /etc/ssl/private/postfix.pem
- postconf -e smtpd_tls_cert_file=/etc/ssl/certs/postfix.pem
- postconf -e smtpd_tls_key_file=/etc/ssl/private/postfix.pem
- service dovecot restart
- service postfix restart
复制代码问题解决。跟大家分享一下.
|
|