需要postfix收件人限制来覆盖发件人/客户端限制

我们的运行postfix的中继服务器被configuration为默认阻止NDR – 除非列出IP地址。

这是通过具有check_client_access的smptd_sender_restrictions(使用IP数据库'xx.xx.xx.xx OK'),然后check_sender_access(使用包含'<> REJECT'的数据库)

我们有一个dynamicIP的客户需要发送NDR(即从<>)到一个特定的电子邮件地址…

问题:在postfix中,我可以放一个'check_recipient_xxxxx'types的检查来允许“OK”状态,并将其余的发送者/客户端限制短路?

有任何想法吗?

如果我正确理解你的话,应该是这样的

smtpd_restriction_classes = restriction_class1 restriction_class1 = check_recipient_access hash:/etc/postfix/check_recipient_access, reject smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/check_sender_access permit_mynetworks permit_sasl_authenticated /etc/postfix/check_sender_access <> restriction_class1 /etc/postfix/check_recipient_access [email protected] OK