On 3 Jul 2017, at 5:32, Mark Constable wrote:

I have a global alias @example.com pointing to ad...@example.com, which works fine, but when I add a real user, like m...@example.com, the global
alias overrides the real entry in virtual_mailbox_maps (mysql). If I
remove the @exmaple.com global alias from virtual_alias_maps then the
"real" mailbox entry in virtual_mailbox_maps works as expected.

See the VIRTUAL_README and ADDRESS_CLASS_README files in the Postfix docs. The short version: virtual alias domains and virtual mailbox domains are distinct, and virtual aliases are evaluated first.

I'd like
to keep the global @example.com alias as a catchall AFTER looking up
the real virtual_mailbox_maps entry first.

So instead of using virtual_alias_maps just put a @example.com mapping to the same path as ad...@example.com in virtual_mailbox_maps.

All the rtfm examples I've read so far does not take into account a
global @example.com catch-all alias.

This is covered in the "Postfix virtual MAILBOX example: separate domains, non-UNIX accounts" section of Postfix's VIRTUAL_README.

Reply via email to