爱心技术专栏专题

email-postfix如何设置取消Delivered-To头部信息

摘录:linux 来源:linux 加入时间:2007年04月23日
摘要:
email-postfix如何设置取消Delivered-To头部信息

postfix如何设置取消Delivered-To头部信息
2006-03-08 15:18 pm
来自:Linux文档
现载:www.51dibs.com
linux

1. …

email-postfix如何设置取消Delivered-To头部信息

站点:爱心种子小博士 关键字: email-postfix如何设置取消

email-postfix如何设置取消Delivered-To头部信息
postfix如何设置取消Delivered-To头部信息

2006-03-08 15:18 pm
来自:Linux文档
现载:www.51dibs.com
linux

1. 很多MUA在配置文件里面可以设置禁止出现Delivered-To:头部信息(例如~/.mailrc和/usr/lib/Mail.rc)
2. 在邮件列表里面,Delivered-To头部信息会妨碍列表使用不想在外发邮件中出现的secret alias,所以建议在SMTP端口上面使用正规表达式过滤,在main.cf中设置:
smtpd_recipient_restrictions =
... regexp:/etc/postfix/access_regexp ...
smtpd_recipient_restrictions =
... pcre:/etc/postfix/access_regexp ...
/etc/postfix/access_regexp:
/^(.*)-outgoing@(.*)/ 554 Use $1@$2 instead
3. prepend_delivered_header配置参数也控制Delivered-To的使用。缺省的设置是command, file, forward(在把信件发送给命令,发送给文件或者转发的时候使用Delivered-To)。不推荐在转发邮件的情况下取消Delivered-To 头部信息。

转载:转载请保留本信息,本文来自http://www.51dibs.com/lp07/la/a8/l_a_829229d5180fcb2f.html