Hello,

I have a zimbra server for managing mail accounts. I have a postfix mail server before it. Mails from outdoor arrive on that server before being relayed to the zimbra server.

I want to search from the postfix server into the ldap of zimbra the users/aliases to reject every mail destinated to an unknown user. Actually, I need to create a system account for any new user, and create an alias into /etc/aliases.

I have postfix-2.1.5

I set this into my main.cf :
local_recipient_maps = ldap:/etc/postfix/ldap-localusers.cf
In that file (ldap-localusers.cf), I set this :
server_host = zimbra.pcsol.be
search_base = ou=people,dc=pcsol,dc=be
query_filter = (&(mail=%s)(accountStatus=active))
result_atribute = uid
bind = no
When I test that configuration with postmap I get no output, nothing. If I remove the "bind = no" line, I get an error :
postmap -q 'n...@pcsol.be' ldap:/etc/postfix/ldap-localusers.cf
postmap: warning: dict_ldap_connect: Unable to bind to server ldap://zimbra.pcsol.be:389 as : 2 (Protocol error)

Do someone have an idea??

Thank you,
nm

Reply via email to