2013/12/3 Viktor Dukhovni <postfix-us...@dukhovni.org>

> On Tue, Dec 03, 2013 at 12:51:16AM +0400, Igor Zinovik wrote:
>
> > In virtual-alias-maps.cf I do following search:
> > ...
> > search_base = ou=users,dc=mydom.ru,ou=mail,dc=myorg,dc=ru
> > query_filter =
> (&(objectClass=qmailUser)(accountStatus=active)(mailAlternateAddress=%s))
> > result_attribute = mail
>
> What you want is a bad idea, but it is possible:
>
>     domain = hosted.example, virtual1.example, virtual2.example
>     query_filter =
> (&(objectClass=qmailUser)(accountStatus=active)(mail=%u@hosted.example))
>     result_attribute = mail
>
>
Thank you for your answer, Viktor.  Maybe asking stupid thing, but do I
still need
to set virtual_alias_domains?


> the reason it is a bad idea is precisely because it forces each
> user to get yet another address when some set of user want a new
> set of addresses.  Perhaps in your environment it is an axiom that
> all user addresses are valid in all virtual domains, but more
> typically, virtual alias domains are for having an independent
> namespace for each domain.
>

I just forced to do this mapping by settings made by previous postmaster.

Reply via email to