Sendmail and masquerading
Matthew Seaman
m.seaman at infracaninophile.co.uk
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)
Use:
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:
FEATURE(limited_masquerade)dnl
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'.
FEATURE(masquerade_entire_domain)dnl
Applies masquerading to all of the hosts under 'domain.tld' (from the
MASQUERADE_DOMAIN setting below).
MASQUERADE_AS(`domain.tld')dnl
MASQUERADE_DOMAIN(`domain.tld')dnl
See /usr/share/sendmail/cf/README for more details on these and other
settings.
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/20040423/4f7f65a3/attachment.bin
More information about the freebsd-questions
mailing list