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
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
相关文章推荐
- 安装milter-limit配置postfix限制邮件账号发送量
- Postfix限制部分用户发送和接收外部邮件
- 博客园的邮件发送如何做的?使用普通邮件比如QQ邮件等,它对发送的邮件的数量有限制。博客园怎么做的呢?用的什么工具?
- postfix用smtp.qq.com做relay发送邮件
- [python snippets] 邮件发送 (带附件,多收件人, 支持SMTP 和Postfix )
- 实战postfix邮件发送
- Exchange2010利用传输规则由部门经理仲裁限制越级发送邮件
- postfix python发送邮件脚本配置(不乱码)
- Gmail对发送邮件的一些限制
- postfix邮件发送成功与失败检查
- 在Centos7下捣鼓邮件发送软件sendmail与postfix
- 邮件收发限制,发送10M,接收20M
- 邮件服务器,postfix能正常启动,但无法发送邮件
- [Postfix]队列监控告警,发送告警邮件
- postfix+dovecot+roundcube使用客户端给外域发送邮件提示Relay access denied
- Exchange2010利用传输规则由部门经理仲裁限制越级发送邮件
- Extamil+postfix web页面管理发送虚拟账号邮件
- 修改Linux中发送邮件中附件大小的限制
- PostFix的安装配置,python发送邮件示例
- CentOS下通过postfix使用自己的gmail邮箱发送邮件