Postfix rewrites my return-path header

匿名 (未验证) 提交于 2019-12-03 02:38:01

问题:

I have noticed that although I pass a custom return-path header in mails going through my postfix server, the header gets re-written. I would like to pass my own header or at least construct a header dynamically. This is cause I want to get bounced emails on a specific email address (hence I need to pass in the return-path).

Is this possible?

回答1:

You have to override message_drop_headers to not include the return-path.

message_drop_headers = "bcc, content-length" 

http://www.postfix.org/postconf.5.html#message_drop_headers



回答2:

Have you set envelope sender address?
[-fcommand line option for sendmail look alike provided by postfix]

Many MTAs copy envelope sender address into (overwritten) Return-Path: header.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!