Hello,
For some reasons, we have a relay server before zimbra. It is based on postfix. I want to configure on that relay server the local_recipient_maps to search into the ldap of the zimbra server. The purpose is rejecting mails sent to unknown users before relaying them to the zimbra server.
Currently, I need to manually add a local user on that relay server...
So here is my config on the relay serveur (postfix postfix-2.1.5-5) :
- in the main.cf
local_recipient_maps = ldap:/etc/postfix/ldap-localusers.cf
- in the ldap-localusers.cf
server_host = zimbra.pcsol.be
search_base = ou=people,dc=pcsol,dc=be
query_filter = (&(mail=%s)(zimbraMailStatus=enabled))
result_atribute = uid
version = 3
But when I try to test these settings with postmaps command, I get no output :
postmap -q 'info' ldap:/etc/postfix/ldap-localusers.cf
Someone already tried such a config? Or have an idea on my misconfiguration?
Thanks,
nm