On 03/06/2012 01:09 PM, Reinaldo de Carvalho wrote:
On Tue, Mar 6, 2012 at 8:36 AM, Frank Bonnet<f.bon...@esiee.fr>  wrote:
in main.cf I have the following

alias_maps = hash:/etc/mail/aliases,
ldap:/usr/local/etc/postfix/ldap-aliases.cf

in ldap-aliases.cf I have the following

server_host = my.ldap.server
search_base = ou=Users,dc=xxx,dc=xx
query_filter = mail=%s
result_attribute = uid
version = 3

the LDAP lookup is OK, bonj is the uid and jean.bon is the LDAP alias

postmap -q "jean....@xxx.xx" ldap:/usr/local/etc/postfix/ldap-aliases.cf
bonj

But when I send an email to jean....@xxx.xx Postfix return
a "jean.bon unknown user"  error.

What did I forgot in configuration to make the reverse mapping
ALIAS -->  UID  working ?

Alas maps query don't have domain part. You need test:

postmap -q "jean.bon" ldap:/usr/local/etc/postfix/ldap-aliases.cf


OK  corrected ,  thank you .


Reply via email to