Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2004 18:03:27 -0500
From:      "Matt Emmerton" <matt@gsicomp.on.ca>
To:        <Barbish3@adelphia.net>, "freebsd-questions@FreeBSD. ORG" <freebsd-questions@freebsd.org>
Subject:   Re: sendmail /etc/mail/Makefile usage
Message-ID:  <004b01c3e2ce$46a8e500$1200a8c0@gsicomp.on.ca>
References:  <MIEPLLIBMLEEABPDBIEGKEBMFGAA.Barbish3@adelphia.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> Looking for explanation documentation on the customization process
> of FBSD's sendmail.
>
> The /etc/mail/README talks about using the
> m4 command to customize sendmail. I have all ready been told that
> process is incorrect for the built in version of sendmail as
> delivered by the FBSD install.
>
> Previous posters to my sendmail questions said to read the
> /etc/mail/Makefile which I have.
> It does not explain the overall process either.
> It just gives some hints.

The key point is that you need to edit /etc/mail/freebsd.mc to suit your
environment.

Specifically, copy /etc/mail/freebsd.mc to
/etc/mail/gateway.fbsdjones.com.mc, and edit it with the modification for
your environment. Do the same with freebsd.submit.mc (copy to
gateway.fbsdjones.com.submit.mc).

The Makefile in /etc/mail will be smart enough to pick up this "local"
version instead of the default one.

> I am only interested in 2 things, have sendmail use
> 'fbsdjones.com' as the local domain and tell sendmail not to
> do reverse DNS lookups.
>
> I have /etc/rc.conf  hostname='gateway.fbsdjones.com'   for the
> gateway/firewall/sendmail PC which is the doorway to my private Lan.

Add the following to gateway.fbsdjones.com.mc:

FEATURE(`masquerade_envelope')dnl
MASQUERADE_AS(`fbsdjones.com')dnl

Then run 'make' from /etc/mail and your internal hostnames should never
appear on outgoing mail.
(Reference:  http://www.sendmail.org/m4/masquerading.html )

--
Matt Emmerton



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004b01c3e2ce$46a8e500$1200a8c0>