El Wednesday 28 February 2007 16:34:37 Christian Affolter escribió:
Why don't you use the postfix 'virtual_alias_maps' LDAP lookup map for
your 'mailAddressAlias' entries? That way postfix will perform a second
lookup for the final mailbox ('virtual_mailbox_maps') which is always an
'mail' attribute in your case. Afterwards courier-authlib needs only to
perform 'mail' attribute lookups, as specified above.
Sorry, I didn't mention that I use virtual_alias_maps in main.cf to forward
mails.
virtual_alias_maps = ldap:aliases,hash:/etc/mail/virtual
aliases_search_base = ou=Users,dc=domain,dc=com
aliases_query_filter = (&(objectClass=user)(mail=%s)(accountStatus=active))
aliases_result_attribute = mailForwardingAddress
aliases_scope = sub
aliases_cache = yes
aliases_bind = no
aliases_version = 3
It's the opposite use case. With "mailAddressAlias" (that's a wrong name, I
know, I should have used mailAlternateAddress) I want, for
example, "intercept" mails directed to people no more working here, while
with mailForwardinAddress I get the list of mail addresses where I have to
forward an incoming mail (usually external addresses).