Would it be useful to upload an enhancement I'd made to the Postfix/Dovecot/MySQL e-mail guide? I'd altered the virtual users table to allow for wildcard routing for mail servers handling multiple domains, eg. (all rules implicity limited to domains listed in the virtual domains table) (listed most-specific to least-specific, matching stops at the first rule matched so more-specific rules take precedence over less-specific ones):
- user X at domain xyzzy.com goes to local user A
- user X at any domain goes to local user B
- any user at domain xyzzy goes to local user C (domain catch-all rule)
- any user at any domain goes to local user D (global catch-all)
I use it in combination with local users rather than the virtual users/mailboxes described in the guide, but it should work the same for both.