1848633 Members
4315 Online
104033 Solutions
New Discussion

Re: Sendmail question

 
Adm. HP
Occasional Contributor

Sendmail question

Hello,
How can I change de Header Format to hardcode the tag From: to the address that I want in the sendmail.cf ?
p.e. : From: xxxx@domain.com and not xxxx@host.domain.com

Thanks in advance.
3 REPLIES 3
Vincent Fleming
Honored Contributor

Re: Sendmail question

I have sendmail 8.11.1, so your sendmail.cf may be different than mine, but I have my $M set to my domain name... ie:

DMmydomain.com

which tells it to masquerade as mydomain.com. The default sendmail.cf will then substitute this for the hostname when rewriting the headers. Search your sendmail.cf for ^DM or the word "masquerade" to find it. (it's on line 113 in my sendmail.cf)

Good luck
No matter where you go, there you are.
Sachin Patel
Honored Contributor

Re: Sendmail question

Hi
masquerade can solve your problem. search this word on your sendmail.cf file.
All or some of Following macros are need to be changed.

DM
CM and CE.

Sachin
Is photography a hobby or another way to spend $
Kevin Wright
Honored Contributor

Re: Sendmail question

using sendmail -f changes the from address however it does not rewrite the header info. The only way to rewrite the header info is like they said above, to set the DM macro. You can exclude who masquerades with the CE macro, usually set to root.