Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Dec 2007 14:09:09 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Clint Olsen <clint.olsen@gmail.com>
Cc:        questions@freebsd.org
Subject:   Re: Hopefully an easy header rewriting problem for Postfix
Message-ID:  <44tzmucofe.fsf@be-well.ilk.org>
In-Reply-To: <20071207182353.GA90102@0lsen.net> (Clint Olsen's message of "Fri\, 7 Dec 2007 10\:23\:54 -0800")
References:  <20071207182353.GA90102@0lsen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Clint Olsen <clint.olsen@gmail.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44tzmucofe.fsf>