Quoting Wietse Venema <[EMAIL PROTECTED]>:

Norberto Bensa:
It seems that Postfix searches the database by the username part of
the email account.         ldap:/etc/postfix/ldap-aliases.cf

As documented, alias_maps is searched by the address localpart
only, and virtual_alias_maps is searched by the full address.

See: http://www.postfix.org/ADDRESS_REWRITING_README.html and pages
linked from it.

Note: you can use virtual aliases WIHOUT having virtual alias domains.


Thank you very much Wietse!!

I changed:

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

to:

alias_maps         = hash:/etc/mail/aliases
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf

and query_filter from:

query_filter = (&(objectClass=inetLocalMailRecipient)([EMAIL PROTECTED]))

to:

query_filter = (&(objectClass=inetLocalMailRecipient)(mail=%s))


everything is working now.

Many thanks again!

Best regards,
Norberto

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


Reply via email to