On 01/03/2013 04:03 PM, Wietse Venema wrote: >> I have several alias domains, I mean where users should receive mails >> > for both u...@domain.com (call it 'canonical') and u...@domain.org >> > ('alias') mail addresses. >> > >> > However, the delivery is done by an LMTP server which can not handle the >> > alias domains, its user database (LDAP) only contains the canonical >> > addresses, therefore I need to rewrite the aliased addresses to >> > canonical ones in Postfix before passing the message to the MDA. How can I? > You should rewrite the envelope recipient address with virtual_alias_maps, > from the alias form to the canonical form. This will also validate > the alias form as a valid address in RCPT TO commands.
Unfortunately, I can not accomplish this with a single query. First, I need to find out, what the canonical domain part is (map domain.org to domain.com), then replace the original domain part with the result. I can't find a way to use results of table lookups within query_filter. Kristof