> On Mar 1, 2017, at 3:20 PM, Ian Evans <[email protected]> wrote:
>
> virtual_mailbox_base = /home/vmail
> virtual_mailbox_domains = example.com
> virtual_mailbox_limit = 0
> virtual_mailbox_maps = hash:/etc/postfix/vmaps
> virtual_transport = lmtp:unix:private/dovecot-lmtp
The virtual_mailbox_maps table is NOT an aliasing mechanism.
It serves precisely two purposes:
1. Used as a *validation* table for inbound mail to reject
invalid recipients. Only the existence of the lookup key
(email address) matters, the associated value is ignored.
2. *IF* you're using the Postfix-provided virtual(8) delivery
agent, then *that* agent uses the associated value as the
location of the mailbox in the filesystem.
With "dovecot-lmtp", the second purpose does not apply, and mapping
email addresses to mailboxes is up to dovecot.
You can of course use virtual_alias_maps to map multiple equivalent
addresses to a single address known to dovecot for delivery to the
associated mailbox.
--
Viktor.