On 3/18/2014 10:20 AM, Alan Chandler wrote: > What I am becoming to realise - but which I can't find documented > anywhere is that there is a subtle difference between a map of > domains (as keys) and a map of e-mail addresses (as keys), and > although the documentation tells you that virtual_mailbox_domains > defaults to virtual_mailbox_maps, it actually can't because the > former is a list of domains and the latter is a list of e-mail > addresses, and it cannot extract the domains from the e-mail addresses.
This is documented in virtual_mailbox_domains. The key is the domain, the result can be anything. Just because you hide the domains inside a map containing full addresses does not change the lookup. When you overload virtual_mailbox_maps to also define virtual_mailbox_domains, the bare domain must be included in the map. This is a historical implementation and is no longer recommended because it's too confusing. If you want to save a lookup, list the domains directly in main.cf. Otherwise, use a separate map. -- Noel Jones