Breaking the sendmail code / sendmail for dummies

Warren Block wblock at
Mon Feb 8 05:28:21 UTC 2010

On Sun, 7 Feb 2010, John wrote:

> A little background - elwood will be the mail hub.  Any e-mail
> originating from within my local network should be re-written to
> eliminate the specific host name and only use the higher level
> domain.  I belive that is "MASQUERADE_AS".  In trying to make sure
> this is what I want, I keep running into references to the domain
> file and references like "../domain".  Should I really be considering
> creating something regarding my local configuration in the
> /usr/share/sendmail/cf/domain directory?  That seems - wrong.

It's not recommended.

Instead, running make in /etc/mail creates your file from 
the templates there.  (/etc/mail/Makefile is a model of making things 

Then edit  Change the masquerade settings:


After the edits, do a 'make all install restart'.  Done!

-Warren Block * Rapid City, South Dakota USA

More information about the freebsd-questions mailing list