From owner-freebsd-questions@FreeBSD.ORG Mon Feb 8 13:12:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC5671065695 for ; Mon, 8 Feb 2010 13:12:17 +0000 (UTC) (envelope-from john@dexter.starfire.mn.org) Received: from dexter.starfire.mn.org (starfire.skypoint.net [173.8.102.29]) by mx1.freebsd.org (Postfix) with ESMTP id 6E8078FC1B for ; Mon, 8 Feb 2010 13:12:17 +0000 (UTC) Received: (from john@localhost) by dexter.starfire.mn.org (8.11.3/8.11.3) id o18DBtt20193; Mon, 8 Feb 2010 07:11:55 -0600 (CST) (envelope-from john) Date: Mon, 8 Feb 2010 07:11:55 -0600 From: John To: Warren Block Message-ID: <20100208071155.B19928@starfire.mn.org> References: <20100207222929.A6166@starfire.mn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from wblock@wonkity.com on Sun, Feb 07, 2010 at 10:28:20PM -0700 Cc: freebsd-questions@freebsd.org Subject: Re: Breaking the sendmail code / sendmail for dummies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2010 13:12:17 -0000 On Sun, Feb 07, 2010 at 10:28:20PM -0700, Warren Block wrote: > 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! Wow! Thanks, Warren! I guess I wasn't as close as I thought on the masquerading. So - I did all that you suggested, and it sure looks like it worked, but I still have a question. It did both the hostname.mc and the hostname.submit.mc files and .cf files, but I didn't do anything to the hostanme.submit.mc file. Am I still OK? > -Warren Block * Rapid City, South Dakota USA > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- John Lind john@starfire.MN.ORG