On Wed, Jan 12, 2022 at 11:09:02AM +1100, Phil Biggs wrote:

> Here's what I have so far.
> 
> main.cf includes:
> 
> # Route inbound for valid recipients to dovecot
> virtual_transport = lmtp:unix:/var/spool/postfix/private/dovecot-lmtp
> virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailbox

Note that with delivery via LMTP, virtual_mailbox_maps (vmailbox) is
used only for recipient validation, and has no effect on delivery.

> virtual_mailbox_domains = pjb.cc
> virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
> 
> virtual contains:
> @pjb.cc all

This is a wildcard mapping (not recommended, an explicit list of
individual addresses would be far better).  It rewrites every input
address to <all@$myorigin>.  Not clear whether that's what you want.

This suffices for recipient validation which accepts mail for addresses
that either match virtual_alias_maps or virtual_mailbox_maps.  So you
don't need virtual_mailbox_maps at all:

> vmailbox contains:
> mb170...@pjb.cc ml-postfix-users
> # +LOTS of others

This should probably have been in "virtual" instead, and vice versa.

> The Dovecot users file includes:
> ml-postfix-us...@pjb.cc:,<passwordstuff>:10043:10000:

Which isn't "all".  Seems you got the virtual mailbox and virtual alias
files confused, or are misreporting their contents.

-- 
    Viktor.

Reply via email to