OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: substitution variables in ldap query_filter

From: John Heim (jheimmath.wisc.edu)
Date: Wed May 14 2008 - 13:45:07 CDT


----- Original Message -----
From: "Victor Duchovni" <Victor.Duchovnimorganstanley.com>
Cc: <postfix-userspostfix.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=%ucurrent.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?