fbpx

Postfix reports server-name postfix/trivial-rewrite[1652032]: warning: do not list domain server-name.example.com in BOTH mydestination and virtual_alias_domains

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[1652032]: 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 $myhostname from 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 virtual in /etc/postfix instead.

Conclusion: On a shared Virtualmin server, rather just live with the message.

References

 

Share this article

Share on facebook
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top