Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Feb 2010 22:28:20 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        John <john@starfire.mn.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Breaking the sendmail code / sendmail for dummies
Message-ID:  <alpine.BSF.2.00.1002072217431.74949@wonkity.com>
In-Reply-To: <20100207222929.A6166@starfire.mn.org>
References:  <20100207222929.A6166@starfire.mn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 hostname.mc file from 
the templates there.  (/etc/mail/Makefile is a model of making things 
easier.)

Then edit hostname.mc.  Change the masquerade settings:

MASQUERADE_AS(`mydomain.com')
MASQUERADE_DOMAIN(`mydomain.com')
FEATURE(`masquerade_entire_domain')
FEATURE(`masquerade_envelope')

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

-Warren Block * Rapid City, South Dakota USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1002072217431.74949>