Viktor Dukhovni <postfix-us...@dukhovni.org> писал(а) в своём письме Tue, 03 Dec 2013 20:22:59 +0400:

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.

Yes, I clearly understand that, but organization was known on the
by one domain (3-d level, dom.org.ru), then it bought itself a 2-nd
level domain (myorg.ru) name and postmaster just decided to make direct
mapping u...@dom.org.ru -> u...@myorg.ru.  I have to tell people
that there is no difference between addresses, but I cannot force
everyone to use 2-nd level domain in their mail programs, because
3-d level domain is added in tons of address books and posted on
web sites.  I cannot brake working infrustructure, if I do this,
I'm going to be fired,  but of course using one domain is much
less confusing.

One of the key advantages of virtual alias (as opposed to local)
domains is that each domain has its own namespace.

Reply via email to