sendmail /etc/mail/Makefile usage

Matt Emmerton matt at gsicomp.on.ca
Sat Jan 24 15:06:37 PST 2004


> 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



More information about the freebsd-questions mailing list