Hi list, I've recently switched around my mail configuration so that Postfix delivers to dovecot using LMTP over TCP (couldn't get Unix socket to work unfortunately, sigh). Anyways, here's the scenario:
I have multiple virtual mailboxes, fed from virtual_mailbox_maps. There's one main user and several aliases to that user. Mail needs to be dropped off at that user though. Stupid explanation, easily explained: j...@mydomain.org <-- main user ot...@mydomain.org <-- alias moo...@mydomain.org <-- alias ... So when a mail comes in to j...@mydomain.org, it's delivered as-is to LMTP, everything is fine. When a mail comes in to ot...@mydomain.org, it's aliased to j...@mydomain.org. Then it needs to be delivered via LMTP. LMTP wants to see a "MAIL TO" of j...@mydomain.org, because it doesn't know about the aliases. This is why I have this in place: virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual.cf lmtp_generic_maps = mysql:/etc/postfix/mysql_virtual.cf However: The lmtp_generic_maps not only changes the "MAIL TO" in the LMTP message exchange, it also rewrites the header "To:" field to say "j...@mydomain.org". I'd like to see the original To there in my mail client. Can someone help me out? Is this possible? Thanks, Cheers, Joe