我的ISP需要我的发件人信封标题,并从:标题是一个特定的地址。 中继时如何configurationexim强制所有邮件都有这个地址?
假设你有相当标准的路由器/传输。 只需修改用于出站邮件的传输,即可执行地址重写:
remote_smtp: driver = smtp headers_rewrite = *@+local_domains [email protected] fsr return_path = [email protected]
第一个规则将处理From / Sender / Reply-To和第二个返回path。
如果你真的希望,你可以用通配符replace+local_domains 。