Sendmail and masquerading

Matthew Seaman m.seaman at
Fri Apr 23 01:22:01 PDT 2004

On Fri, Apr 23, 2004 at 09:43:22AM +0200, Harald Schmalzbauer wrote:

> I have another question(s) please:
> How can I have sendmail using a specified EHLO "domain.tld" instead of the 
> machines name (changing the machines name is not a solution for me)


   define(`confDOMAIN_NAME', `domain.tld')dnl

in your `hostname`.mc file.

> And a last question: What do I have to use for sendmail when I want to do 
> masquerading on a MTA which has a "smart host" defined? If I use the same two 
> lines like on my local machine (which works) nothing happens on the MTA. No 
> mail gets masqueraded.

It's basically the same basic setup as for your local machine.  You
might find adding the following useful:


Applies masquerading only to those machines listed as
MASQUERADE_DOMAIN below.  The default is to do that plus all of the
names listed in 'local-host-names'.


Applies masquerading to all of the hosts under 'domain.tld' (from the
MASQUERADE_DOMAIN setting below).


See /usr/share/sendmail/cf/README for more details on these and other



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP:         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 :

More information about the freebsd-questions mailing list