使用sender_bcc进行mail监控
Sunday, January 11, 2009
postfix使用sender_bcc可以做到对指定mail地址用户,只要发出emial就暗送一封到指定邮箱。
具体设置如下:
编辑postfix配置文件main.cf
加入
sender_bcc_maps = hash:/usr/local/etc/postfix/sender_bcc
添加sender_bcc文件
vi sender_bcc
监控用户@domain.com 指定用户@domain.com
postmap /usr/local/etc/postfix/sender_bcc
如果打开了content filter后,做了别名或bcc同域的会产生duplicate messages,而bcc外域就没有问题。
解决方法,在master.cf里面的smtp中加上-o receive_override_options=no_address_mappings
参考:
http://www.extmail.org/forum/viewthread.php?tid=3863&pid=54262&page=1&extra=#pid54262
Posted by
Michael.Ding
at
11:37 PM
Labels: duplicate message, postfix, sender_bcc
0 comments:
Subscribe to:
Post Comments (Atom)