我有一个与amavis和postfwd后缀安装。 我想阻止单个发件人只为一个接收器。 我尝试了header_checks,但多行检查我正在想类似的东西
id=BLOCKIT [email protected]; [email protected]; action=REJECT no sender
在postfwd,但我找不到合适的语法…有没有人build议?
我不知道如何在postfwd执行此postfwd ,但是在Postfix中,您可以使用限制类来执行此操作。 如果你想阻止[email protected]发送邮件给你的用户[email protected] :
smtpd_restriction_Classes = mail_for_alice mail_for_alice = check_sender_access hash:/etc/postfix/mail_for_alice smtpd_recipient_restrictions = ... check_recipient_access hash:/etc/postfix/special_recipients
文件special_recipients将包含一行
[email protected] mail_for_alice
而mail_for_alice将包含:
也就是说,你可能更postfwd在postfwd所有这些postfwd 😉
我用Postgrey完成了类似的任务。 您可以安装postgrey并禁用灰名单function,但保留白名单和黑名单function。 许多人发现Postgrey的侵入性,我觉得它是一个近乎完美的垃圾邮件filter。