On your stock email server you might see the following message repeatedly in the log file:
Aug 20 08:55:18 server-name postfix/trivial-rewrite: warning: do not list domain server-name.example.com in BOTH mydestination and virtual_alias_domains
Research on this issue gives inconsistent results but the most important thing is although truly annoying, the warning is harmless and your email server will be functioning perfectly.
To get to the bottom of the error, the following information is useful:
# cat /etc/postfix/main.cf | egrep "mydestination|myhostname" ... myhostname = server-name.example.com mydestination = $myhostname, localhost.example.com, , localhost
One’s gut instinct and some posts insinuate remove
mydestination. In our experience this will cause catastrophic failures in that every message will now bounce.
The other handy information that in spite of the message talking about
virtual_alias_domains it might instead be referring to a table called
Conclusion: On a shared Virtualmin server, rather just live with the message.