On Sun, Jul 12, 2009 at 11:01:01PM -0400, Daniel L'Hommedieu wrote:

> Greetings, all.
>
> I'm having trouble with a forwarded email setup, and I need to munge an 
> inbound recipient address.
>
> Here's what I have set up: [email protected] is forwarded to [email protected].
>
> bar.edu is running GroupWise as its email server, and GroupWise munges the 
> recipient address for forwarded emails. When email is sent to [email protected], 
> GroupWise munges the recipient address to be [email protected]. GroupWise then 
> forwards the email [email protected].
>
> The whole reason I'm forwarding the email is that GroupWise's IMAP server 
> is not compatible with OS X's Mail.app IMAP client.
>
> When I check email at [email protected], I see it as To [email protected], NOT To 
> [email protected], as we would expect because that's what the headers say.
>
> This means that if I group-reply, the [email protected] address shows up in the 
> CC line. Nobody knows about that address, and I don't want them to know 
> about it... I am using GroupWise's SMTP server for outbound email, and all 
> email shows up as from [email protected], as it should.
>
> I am running postfix 2.3.3 at the mail server for rab.net, and I want 
> postfix to munge the inbound address from [email protected] back to [email protected].
>
> Is that possible?

    main.cf:
        # Pick one:
        #canonical_maps = hash:/etc/postfix/canonical
        #virtual_alias_maps = hash:/etc/postfix/valias
        #virtual_alias_domains = ... set me explicitly ...
        #
        #canonical_maps = cdb:/etc/postfix/canonical
        #virtual_alias_maps = cdb:/etc/postfix/valias
        #virtual_alias_domains = ... set me explicitly ...
        #
        #canonical_maps = ldap:/etc/postfix/canonical.cf
        #virtual_alias_maps = ldap:/etc/postfix/valias.cf
        #virtual_alias_domains = ... set me explicitly ...

    canonical:
        [email protected]    [email protected]

    valias:
        [email protected]    [email protected]

The headers will read "[email protected]", but the envelope recipient
for delivery (virtual(5) happens after canonical(5)) will still be
[email protected]. There are other ways of doing this, but this one is
perhaps the most natural.

-- 
        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:[email protected]?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to