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 firstname.lastname@example.org 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 ?
Issues related to applications and software problems
1 post • Page 1 of 1