在main.cf里
加入
mynetworks_style = class //比子网允许范围更大
smtpd_sender_restrictions = check_recipient_access hash:/etc/postfix/recipient_access,reject_non_fqdn_recipient,permit
如果加上
soft_bounce = yes
则对非法收件人不会返回5xx,而是返回4xx
/etc/postfix/recipient_access的内容为
xxx@yyy.com REJECT
再postmap /etc/postfix/recipient_access
postfix -c /etc/postfix reload
即可
阅读(2388) | 评论(0) | 转发(0) |