From owner-freebsd-questions@FreeBSD.ORG Mon Feb 8 05:28:21 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 BE67A1065693 for ; Mon, 8 Feb 2010 05:28:21 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 799178FC15 for ; Mon, 8 Feb 2010 05:28:21 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id o185SK9J075010; Sun, 7 Feb 2010 22:28:20 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id o185SK3H075007; Sun, 7 Feb 2010 22:28:20 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sun, 7 Feb 2010 22:28:20 -0700 (MST) From: Warren Block To: John In-Reply-To: <20100207222929.A6166@starfire.mn.org> Message-ID: References: <20100207222929.A6166@starfire.mn.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (wonkity.com [127.0.0.1]); Sun, 07 Feb 2010 22:28:20 -0700 (MST) 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 05:28:21 -0000 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