Page 1 of 1

Postfix : ldap not queried

Posted: 2017/09/18 09:20:36
by Ouroboros35

I'm trying to configured postfix to queried ldap server before sending mail.
I had configure the file with following parameters :
local_recipient_maps = ldap:/etc/postfix/, $alias_maps
alias_maps = hash:/etc/aliases

and created the file with following parameters :
server_host = ldapaddress
server_port = 389
search_base = ou=People,dc=xxx,dc=xxx
query_filter = (mailacceptinggeneralid=%s)
result_attribute = maildrop
bind = yes
bind_dn = xxxx
bind_pw = yyyy
version = 3

I don't configured virtual domain.

When I executed the following command "postmap -q ldap://etc/postfix/", I receive the final address.

But when I want to send a mail, the address mail is not translated and the ldap server is not queried.

Is there someone to help me to identify why ?

Best regards,