您的位置:首页 > 其它

postfix限制邮件发送分组

2014-01-16 17:21 183 查看
main.conf中新建限制类
smtpd_restriction_classes= send_to_all, send_to_rdpsend_to_all =check_sender_access hash:/etc/postfix/npc/local_sender_all,rejectsend_to_rdp =check_sender_access hash:/etc/postfix/npc/local_sender_rdp,reject
smtpd_recipient_restrictions= check_sender_accesshash:/etc/postfix/npc/local_sender_all, check_sender_accesshash:/etc/postfix/npc/local_sender_rdp, check_recipient_access hash:/etc/postfix/npc/local_recipients, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unauth_destination

# vim local_recipientsall@test.com send_to_allrd_dept@test.com send_to_rdp
注:访问限制中是逐条匹配访问列表的,匹配成功就退出
#vim local_sender_alla@test.com ok
#vimlocal_sender_rdpb@test.com ok
postmaphash:/etc/postfix/npc/local_recipientspostmaphash:/etc/postfix/npc/local_sender_allpostmaphash:/etc/postfix/npc/local_sender_rdppostfixreload
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息