OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Rollback on address rewriting

From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Mon Aug 01 2005 - 07:25:34 CDT


On Mon, Aug 01, 2005 at 10:40:52AM +0200, Hrvoje Habjanic wrote:

>
> Hi!
>
> I have virtual aliasing maps set. And all mail gets rewrited from
> <something>mydomain to <username>backend.host.
>
> Mail going out of my machine have in envelope <username>backend.host. Is
> tehre a way to make postfix to use original envelop address
> (<something>mydomain)?
>

Rewrite internal forms to external forms with canonical(5) (or Postfix
2.2+ with generic(5)), rewrite recipients from external form to internal
form for delivery with virtual(5).

    http://www.postfix.org/ADDRESS_REWRITING_README.html

With generic(5) (smtp_generic_maps) you may want to disable the feature
in the inbound SMTP transport (typically "relay").

        relay unix ... smtp
            ...
            # No inbound rewriting to external form
            -o smtp_generic_maps=

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>