On 7/30/2010 3:34 AM, Nikolaos Milas wrote:

Please don't top-post.  Please don't post HTML crap mail.

  Thank you Noel for this clarification. I tested and you are
right - I had not realized it from the documentation:
virtual_alias_maps are always evaluated first, regardless what
are the hosted domains on the server! So, if we put userx in
virtual_alias_maps, this will match to us...@all.domains, even
to domains not hosted in our server.

No, bare user names won't match random domains. The lookup search orders is documented in virtual(5).


The solution, of course, in my case, is to use a fully
qualified alias (i.e. including the domain specification) in
virtual_alias_maps:  If we use us...@domain.com, we will allow
us...@a.domain.com to be forwarded correctly, because it will
not be matched by a virtual alias. (I tested and it works.)

The solution is to not match u...@a.example.com

(please don't use real domain names as examples)



But, let me ask one more question: *Ιs there a way to define
alias maps (where we can define aliases without domain
specification) which affect ONLY virtual_mailbox_domains?
**Alternatively, is it allowed to use an entry like
us...@$virtual_mailbox_domains (or similar) in
virtual_alias_maps?*


No, virtual_alias_maps apply to all mail.


   -- Noel Jones

Reply via email to