Clarifying further:
- Using @smolenaar 's suggestion does not work without using
virtual_alias_domains. This is not used by Virtualmin (that I can tell). - If you use
virtual_alias_domainsyou must list ALL virtual domains there. Again, Virtualmin does not do this for any domains at all. - Postfix documentation is ambiguous about these settings.
In Postfix Virtual Domain Hosting Howto it states:
the virtual_alias_domains setting
tells Postfix that example.com is a so-called virtual alias domain.
If you omit this setting then Postfix will reject mail (relay access denied) or will not be able to
deliver it (mail for example.com loops back to myself).
yet Virtualmin does not use this setting at all, and does create virtual email settings in /etc/postfix/virtual, and they work.
Is Virtualmin doing it wrong, or is the Postfix documentation wrong?