On Wed, Dec 01, 2010 at 12:47:58PM +0300, Michael Tokarev wrote:
> Let's assume we've example.com domain with all the addresses
> stored in LDAP somehow. Now let's assume also that example.net
> should be an alias for example.com.
>
Yes, but it costs one table for each aliased domain (the domain can have
multiple aliases).
domain = example.net ...
query_filter = [email protected]
result_attribute = mail
It is generally better to store multiple addresses for each user.
LDIF:
mail: [email protected]
mailalternateaddress: [email protected]
mailalternateaddress: [email protected]
mailalternateaddress: [email protected]
maildrop: [email protected]
virtual.cf:
domain = example.com example.net
query_filter = mailalternateaddress=%s
result_attribute = maildrop
--
Viktor.