Sendmail and masquerading

Matthew Seaman m.seaman at infracaninophile.co.uk
Wed Apr 21 07:26:41 PDT 2004


On Wed, Apr 21, 2004 at 03:47:48PM +0200, Harald Schmalzbauer wrote:
> Hi all,
> 
> I have to _believe_ there's something strange going on with sendmail in the 
> base system.
> I try to convince it to masquerade my righthandside. Therefore I added the 
> following to bsdharry.zenk.de.mc:
> MASQUERADE_AS(`zenk.de')
> 
> local-host-names reads:
> bsdharry.zenk.de
> 
> host reads:
> 150.20.100.18	bsdharry bsdharry.zenk.de
> 
> But sendmail still communicates with "Mail from: @bsdharry.zenk.de"

Yup.  That's the envelope sender address, as used in the SMTP dialog.
That doesn't get masqueraded by default -- but you should see that the
From: line within the message is masqueraded.

Use:

    FEATURE(masquerade_envelope)dnl

to make sendmail rewrite the envelope sender address as well.  You
might also want to use:

    FEATURE(allmasquerade)dnl

which applies masquerading to *recipient* addresses.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- 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/20040421/8d74723a/attachment.bin


More information about the freebsd-questions mailing list