On Sat, Mar 16, 2013 at 06:19:45PM +0100, Patrick Lists wrote:
> Venturing into postfix+openldap country I bumped into a challenge:
> is it possible to use an LDAP table for canonical_maps to
> generically rewrite domainA to domainB (so for all email addresses
> @domainA.org)? It works fine when I use this in a hash table:
I've always avoided wildcard rewrites with LDAP, do the rewrite
only with actual valid user addresses.
> @domainA.org @domainB.org
I don't recall whether "%d" works with "@domain" input keys. I
would have guessed it does, but perhaps I overlooked something.
You really should not do this. Instead take the high road:
query_filter = mailDeliveryAddress=%s
result = mail
Wildcard rewrites break recipient validation.
--
Viktor.