后缀:我如何拒绝来自某些域的所有电子邮件

我们有一些域名发送商业邮件,尽pipe我们要求从他们的列表中删除。

我想configurationPostfix拒绝来自某些电子邮件域的所有电子邮件。

如何在后缀中configuration这个?

使用smtpd_sender_restrictions如下:


main.cf

 smtpd_sender_restrictions = # Reject some domains because they send annoying spam check_sender_access hash:/etc/postfix/sender_access # Other useful things to do: warn_if_reject reject_non_fqdn_sender reject_unknown_sender_domain # Default PERMIT 

/等/后缀/ sender_access

 # annoying spammer domains businessleadsonlinemail.com REJECT 527media.com REJECT aweberer.com REJECT pathcom.com REJECT 

不要忘记postmap你的新的访问数据库!