John Heim | 14 May 20:45

Re: substitution variables in ldap query_filter


----- Original Message ----- 
From: "Victor Duchovni" <Victor.Duchovni <at> morganstanley.com>
Cc: <postfix-users <at> postfix.org>
Sent: Wednesday, May 14, 2008 11:06 AM
> You can do *non-wildcard* canonical rewriting, and this won't break
> recipient validation.
>
> domain = legacy.example.com
> query_filter = mail=%u <at> current.example.com
> result_attribute = mail

I'm a bit confused. These are ldap parameters, right? So I'd change main.cf 
from:

canonical_maps = regexp:/etc/postfix/canonical

to

canonical_maps = ldap:/etc/postfix/canonical

So postfix would do an ldap lookup to rewrite the headers. But then would it 
do a second ldap lookup to validate the recipient? 


Gmane