On fre 14 mar 2014 13:33:27, Roman Gelfand wrote:
> 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 = lookup@mydomain.local
> bind_pw = password
>
> Here is the contents of /etc/postfix/catchall
>
> @mydomain.com     catch...@mydomain.com
>
> Any ideas as to what I am doing wrong, here?
>
> Thanks in advance

Hello!

Just a thought:

"hash:
An indexed file type based on hashing. This is available only on 
systems with support for Berkeley DB databases. Public database files 
are created with the postmap(1) or postalias(1) command, and private 
databases are maintained by Postfix daemons. The database name as used 
in "hash:table" is the database file name without the ".db" suffix."

Have you run postmap /etc/postfix/catchall ?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to