Applicable to:
- Plesk for Linux
Symptoms
-
Incoming emails are not received, the following error appears in
/var/log/maillog
:CONFIG_TEXT: postfix/trivial-rewrite[772518]: warning: do not list domain example.com in BOTH mydestination and virtual_mailbox_domains
Cause
Postfix misconfiguration causes email routing issues and prevents a certain domain from receiving incoming emails.
Resolution
According to the official Postfix documentation it is prohibited to list virtual mailbox domain name as mydestination
domain name.
-
Connect to the server using SSH.
-
Correct the necessary
mydestination
parameter in/etc/postfix/main.cf
by setting it to the following value that is compatible with other Plesk configurations:CONFIG_TEXT: mydestination = localhost.$mydomain, localhost, localhost.localdomain
-
Restart the Postfix service, so that the changes can take effect:
# service postfix restart
Comments
1 comment
When setting mydestination as stated in this article - what happens to mails that are sent to local users such as root (i.e. to users that should belong to the local domain class)? With this configuration, messages sent locally (e.g., by fail2ban) do not get delivered (explanation: the server is run at myserver.example.com and also uses Plesk to manage example.com):
Please sign in to leave a comment.