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

-- 
Reinaldo de Carvalho
http://korreio.sf.net
http://python-cyrus.sf.net

"While not fully understand a software, don't try to adapt this
software to the way you work, but rather yourself to the way the
software works" (myself)

Reply via email to