From owner-freebsd-questions@FreeBSD.ORG Fri Dec 7 19:09:11 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 7A49A16A417 for ; Fri, 7 Dec 2007 19:09:11 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (dsl092-078-145.bos1.dsl.speakeasy.net [66.92.78.145]) by mx1.freebsd.org (Postfix) with ESMTP id 49B9813C447 for ; Fri, 7 Dec 2007 19:09:11 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id 83A6A28458; Fri, 7 Dec 2007 14:09:09 -0500 (EST) To: Clint Olsen References: <20071207182353.GA90102@0lsen.net> From: Lowell Gilbert Date: Fri, 07 Dec 2007 14:09:09 -0500 In-Reply-To: <20071207182353.GA90102@0lsen.net> (Clint Olsen's message of "Fri\, 7 Dec 2007 10\:23\:54 -0800") Message-ID: <44tzmucofe.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: questions@freebsd.org Subject: Re: Hopefully an easy header rewriting problem for Postfix X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2007 19:09:11 -0000 Clint Olsen writes: > I essentially want to rewrite all envelope senders of the form: > > @host.my.domain > > to just > > @my.domain > > The examples in the Postfix docs seem to make it seem like the patterns > only allow you to specify explicit recipients at the end of a rewriting > rule, but that's not what I want. I know this was a common thing to do in > Sendmail using that hideous CF syntax. > > Any cluepons would be very much appreciated. 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