Postfix : ldap not queried

Issues related to applications and software problems
Posts: 1
Joined: 2017/09/18 09:03:31

Postfix : ldap not queried

Postby Ouroboros35 » 2017/09/18 09:20:36


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,