Sendmail masquerading configuration

Ian Moore no-spam at
Sun Feb 6 02:07:06 PST 2005

I'm hoping someone can help me with this.

I want to make sendmail (on a 5.3-Release server) leave the host name out of 
the sender address when sending mail from that machine.
I.E. mail from root currently has a sender address of root at, I 
want it to be root at instead.

I need to do this because our "smart host" mail server (over which I have no 
control) rejects mail from our domain if it has a hostname in it. Since my 
server is in a VPN, I forward root's mail to my own account on the 'smart 
host' server to make it accessible from outside the VPN.

I think that the masquerading settings have changed somewhat since I last did 
this. I read, it suggests 
MASQUERADE_AS(`host.domain') but when I tried that, it didn't work.

I believe it used to be just a matter of adding to & 
restart sendmail, but that doesn't work.
I have commented out the C{E}root line so that doesn't override the Dm setting 
for root.

Sorry this OT, I did try to find somewhere else to ask this question, but the 
newsgroup listed on the sendmail site doesn't seem to exist (according to my 
news reader) so I'm asking here instead.


GPG Key:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list