I just changed Return-Path in 2 of my servers which run Exim and Posfix. The third server runs Sendmail. I spent several hours trying to find information how to change it but can not find anything. So, I need to change Return-Path so that sent emails contain Return-Path: [email protected] instead of [email protected].
I can not change the server's hostname itself because my data center wants additional 5 EUR/month for a custom PTR record.
Thanks.
I copy from the bat book:
So if you want to set it to something else at the bottom of your sendmail.mc add the following lines:
Also note that if this header is already defined, then it cannot be replaced unless sendmail was compiled with
H_ACHECK
defined forconf.c
.https://web.archive.org/web/20161120105550/http://www.sendmail.com:80/sm/open_source/docs/m4/masquerading.html
As I understand you look for FEATURE(`masquerade_envelope')
[only "header sender"/"From:" is modified by default, other features extend it]
P.S. If you want to keep "header sender"/"From:" unchanged AFAIR it possible with FEATURE(`genericstable').