我们有一些域名发送商业邮件,尽pipe我们要求从他们的列表中删除。
我想configurationPostfix拒绝来自某些电子邮件域的所有电子邮件。
如何在后缀中configuration这个?
使用smtpd_sender_restrictions如下:
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
# annoying spammer domains businessleadsonlinemail.com REJECT 527media.com REJECT aweberer.com REJECT pathcom.com REJECT
不要忘记postmap你的新的访问数据库!