Below, is my postfix alias configuration.
virtual_alias_maps = ldap:/etc/postfix/ldap-groups.cf
ldap:/etc/postfix/ldap-aliases.cf
ldap:/etc/postfix/ldap-mail.cf
ldap:/etc/postfix/ldap-nonmail.cf
ldap:/etc/postfix/ldap-nonmail2.cf
hash:/etc/postfix/catchall
The idea is to query active directory to retrieve and map designated
email address.
The problem I am facing is there are email that should have never gone
into catchall. In fact, if I remove the catchall line, these emails
go to the right place.
Here is the contents of /etc/postfix/ldap-nonmail.cf
server_host = ldap://192.168.0.22
search_base = OU=My Users,DC=mydomain,DC=local
version = 3
query_filter = (&(objectclass=person)(proxyAddresses=%s))
leaf_result_attribute = mail
result_attribute = mail
special_result_attribute = member
bind = yes
bind_dn = [email protected]
bind_pw = password
Here is the contents of /etc/postfix/catchall
@mydomain.com [email protected]
Any ideas as to what I am doing wrong, here?
Thanks in advance