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: [email protected] <-- main user [email protected] <-- alias [email protected] <-- alias ... So when a mail comes in to [email protected], it's delivered as-is to LMTP, everything is fine. When a mail comes in to [email protected], it's aliased to [email protected]. Then it needs to be delivered via LMTP. LMTP wants to see a "MAIL TO" of [email protected], 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 "[email protected]". I'd like to see the original To there in my mail client. Can someone help me out? Is this possible? Thanks, Cheers, Joe
