Originally posted by: SystemAdmin
The key is to set the DM macro in the sendmail.cf file
-
who I masquerade as (null for no masquerading) (see also $=M)
DM
I did this a long time ago, but here's what I did (AIX 4.2 timeframe)
Example sendmail.cf changes and results
The following describes a set of steps that I took to test the changing of outgoing mail addresses at AIX 4.2.
Added line
DMlegis.pa.us.gov
to sendmail.cf after comment
-
who I masquerade as (null for no masquerading)
Saved changes
Refreshed sendmail with
refresh -s sendmail
.
Send mail from user lab1 on host chemhost.ibm.com to user test on host fungus.dfw.ibm.com
Header of message received was:
From:
lab1@legis.pa.us.gov Mail header still contains:
From
lab1@chemhost.ibm.com at start of the message, but reply goes to
lab1@legis.pa.us.gov Not sure this is still the way it works, but probably so, check the Sendmail book from O'Reilly, or try sendmail.org.
#AIX-Forum