From owner-freebsd-questions@FreeBSD.ORG Fri Dec 7 19:20:08 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F7E716A420 for ; Fri, 7 Dec 2007 19:20:08 +0000 (UTC) (envelope-from clint@0lsen.net) Received: from QMTA01.emeryville.ca.mail.comcast.net (qmta01.emeryville.ca.mail.comcast.net [76.96.30.16]) by mx1.freebsd.org (Postfix) with ESMTP id 271F513C457 for ; Fri, 7 Dec 2007 19:20:07 +0000 (UTC) (envelope-from clint@0lsen.net) Received: from OMTA04.emeryville.ca.mail.comcast.net ([76.96.30.35]) by QMTA01.emeryville.ca.mail.comcast.net with comcast id MtLj1Y00R0lTkoC0A0FX00; Fri, 07 Dec 2007 19:20:12 +0000 Received: from belle.0lsen.net ([24.20.127.157]) by OMTA04.emeryville.ca.mail.comcast.net with comcast id MvLB1Y00C3Pt6RU0800000; Fri, 07 Dec 2007 19:20:12 +0000 X-Authority-Analysis: v=1.0 c=1 a=z1BcIlB46bYA:10 a=CD58FkY6y5c2m9Y6OesA:9 a=vVlf-oWE08Cn0gpSvCUA:7 a=7zNxNREaZcx5am2O6lT85uka6TIA:4 a=LY0hPdMaydYA:10 Received: by belle.0lsen.net (Postfix, from userid 1001) id A4E6A79038; Fri, 7 Dec 2007 11:20:06 -0800 (PST) Date: Fri, 7 Dec 2007 11:20:06 -0800 From: Clint Olsen To: questions@freebsd.org Message-ID: <20071207192006.GB90102@0lsen.net> References: <20071207182353.GA90102@0lsen.net> <44tzmucofe.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44tzmucofe.fsf@be-well.ilk.org> User-Agent: Mutt/1.4.2.3i Organization: NULlsen Network X-Disclaimer: Mutt Bites! Cc: Subject: Re: Hopefully an easy header rewriting problem for Postfix 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: Fri, 07 Dec 2007 19:20:08 -0000 On Dec 07, Lowell Gilbert wrote: > The "myorigin" variable is what you need. See postconf(5) for more > things you can do with it. > > (> myorigin (default: $myhostname) > (> The domain name that locally-posted mail appears to come from, and that > (> locally posted mail is delivered to. The default, $myhostname, is ade- > (> quate for small sites. If you run a domain with multiple machines, you > (> should (1) change this to $mydomain and (2) set up a domain-wide alias > (> database that aliases each user to user@that.users.mailhost. > (> > (> Example: > (> > (> myorigin = $mydomain Right, I have this set, yet it is still possible to have me send a mail using Mutt with my From: address set as "host.my.domain". This works great for incompletely specified recipients and senders etc. But I haven't figured out how to incorporate myorigin to rewrite all addresses that match a pattern to modify that (and only that) in the address. Thanks, -Clint