Postfix : ldap not queried

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

Postfix : ldap not queried

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

Hi,

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

and created the file ldap-aliases.cf 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 mail.test@domain.fr ldap://etc/postfix/ldap-aliases.cf", 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,