Home  >  Article  >  Database  >  postfix如何设置取消Delivered-To头部信息

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

WBOY
WBOYOriginal
2016-06-07 15:06:531134browse

1. 很多MUA在配置文件里面可以 设置 禁止出现Delivered-To: 头部 信息 (例如~/.mailrc和/usr/lib/Mail.rc) 2. 在邮件列表里面,Delivered-To 头部 信息 会妨碍列表使用不想在外发邮件中出现的“secret alias”,所以建议在SMTP端口上面使用正规表达式过滤,

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 头部信息
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn