On Tue, Jan 05, 2016 at 01:30:32PM -0600, Noel Jones wrote:
> Yes, it is correct to use
> mydestination = localhost.example.com
> virtual_mailbox_domains = example.com
I use:
main.cf:
virtual_mailbox_domains = virtual.invalid
virtual_mailbox_maps = ${indexed}vmbox
virtual_mailbox_base = /var/spool/virtual
# Dovecot static user/gid for mailbox access
virtual_uid_maps = static:500
virtual_gid_maps = static:500
virtual_alias_domains = example.com
myorigin = example.com
mydestination = local.invalid
virtual:
[email protected] [email protected]
[email protected] [email protected]
Then all users are rewritten to either the virtual mailbox
or the local domain as appropriate.
Mind you, even system users can and likely should have virtual
mailboxes (via mailbox_transport if need be). Why limit folks to
using local mboxes, when they can use IMAP.
--
Viktor.