Sendmail masquerading configuration

Ian Moore no-spam at swiftdsl.com.au
Sun Feb 6 02:07:06 PST 2005


Hi,
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 myhost.foo.bar, I 
want it to be root at foo.bar 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 http://www.sendmail.org/m4/masquerading.html, 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 Dmfoo.bar to sendmail.cf & 
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.

Cheers,

-- 
Ian
GPG Key: http://home.swiftdsl.com.au/~imoore/no-spam.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050206/c9c41701/attachment.bin


More information about the freebsd-questions mailing list