使用临时错误代码的Postfix永久性错误
Postfix正在返回一个临时错误代码(4xx),而不是一个永久性错误代码(5xx),用于“拒绝中继访问”,导致MX继续重试: 日志: postfix/smtpd[14279]: connect from unknown[10.244.xx] postfix/smtpd[14279]: NOQUEUE: reject: RCPT from unknown[10.244.xx]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mx.somewhere.com> postfix/smtpd[14279]: disconnect from unknown[10.244.xx] 相关configuration: smtpd_recipient_restrictions = reject_unauth_destination reject_unknown_reverse_client_hostname, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_invalid_hostname, reject_rbl_client zen.spamhaus.org, permit virtual_alias_domains = example.com virtual_alias_maps = hash:/etc/postfix/virtual 我宁愿如果Postfix会回应一个554错误,所以远程服务器停止重试一些永远不会工作的东西。