- Plesk for Linux
Mail to an external domain is not delivered. The following information can be found in
# status=bounced (mail for example.com loops back to myself)
# postfix/smtp: warning: host mail.example.com[203.0.113.2]:25 greeted me with my own hostname c1.example.com
Unable to get root email delivered externally. In /etc/aliases there is the following:
# tail /etc/aliases
# Person who should get root's mail
The remote server thinks that he is sending mail to itself. Possible reasons:
- IP Address of MX record for recipient's domain points to Plesk server
- myhostname parameter is the same on both sender and recipient servers
Connect to the server via SSH.
Make sure first that IP address of the recipient's domain does not belong to the Plesk server:
# host example.com
example.com has address 203.0.113.2
example.com mail is handled by 0 example.com.
# if a | grep 203.0.113.2
inet 203.0.113.2/32 brd 203.0.113.2 scope global venet0:0
On the example above, IP address 203.0.113.2 belongs to sender server. That is why Postfix falls in a loop.
If DNS is handled by third party name server, correct DNS settings in Plesk accordingly.
In case IP address does not point to the same server, check myhostname on a source and compare with hostname from the log:
# postconf | grep myhostname
myhostname = c1.example.com
# postfix/smtp: warning: host mail.example.com[188.8.131.52]:25 greeted me with my own hostname c1.example.com
If they are equal, it is required to change myhostname in
As an additional step, it may be required to add a required domain name to 'mydestination' line. It should look as follows:
mydestination = localdomain, localhost, localhost.localdomain, localhost, example.com
and restart postfix using the following command:
# service postfix restart