Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the domain in the "From" header

Status
Not open for further replies.

rawkin

Programmer
Sep 23, 2003
11
AU
Hi,

Our MS guys have an exchange server configured with an invalid internal domain name[0]. All local exchange mailboxes forward to real-world corresponding mailboxes on our sendmail mailserver.

The problem here, is that the "From" address will always show up as "jbloggs@invalid.domain" instead of "jbloggs@valid.domain".

Is there a way within sendmail that I can substitute the domain name "invalid.domain" with "valid.domain" in the "From" header?


thanks,

Pete

[0] The simple solution, "change the internal domain name to be valid" isn't an option - the invalid domain name is already too heavily integrated.
 
You can add the following to your sendmail.mc
MASQUERADE_AS(`valid.domain.com')
but make sure you also add
MASQUERADE_DOMAIN(`valid.domain.com')
- This will add the valid domain to class M. These do not have to be host names but can also be FQDN.
If you need to do this for multiple domains it gets tricky but this should get you by for now as you are only masquerading a single domain.


There is no God, only 10001010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top