On Tue, Dec 03, 2013 at 05:11:21PM +0400, Igor Zinovik wrote: > > 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?
Yes, you do. Otherwise mail will not be accepted because the domain is not known to be local. > > 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. That makes no sense. You don't have to update the LDAP records for every user when adding a new domain, unless for some strange reason every user needs to have an additional email address in that domain. Generally, users don't want very many email addresses, the more addresses, the more spam. One of the key advantages of virtual alias (as opposed to local) domains is that each domain has its own namespace. -- Viktor.