A domain example.com uses the remote mail server;
Mail service is disabled in Domains > example.com > Mail Settings;
When email messages are sent to this domain from mailbox located on the same server, messages are bounced with the following error in
postfix/qmgr: 408755E04C2: from=<[email protected]>, size=635, nrcpt=1 (queue active)
postfix/smtp: 408755E04C2: to=<[email protected]>, relay=none, delay=0.14, delays=0.14/0/0/0, dsn=5.4.6, status=bounced (mail for example.com loops back to myself)
MX record of the domain
example.comcannot be resolved by default DNS server and its A record points to Plesk server:
# host -t MX example.com
example.com has no MX record
# host example.com
example.com has address 192.0.2.2
# hostname -I
Correct MX record is returned if a different DNS server is specified:
# host -t MX example.com 220.127.116.11
Using domain server:
example.com mail is handled by 10 externalmail.example.com.
Default DNS server returns incorrect answers if the affected domain is queried, as a result, Postfix tries to connect to itself.
Connect to the server via SSH
Change the DNS server (nameserver) in
/etc/resolv.conffile to a valid DNS server, such as 18.104.22.168:
# cat /etc/resolv.conf
Note: Remove localhost or 127.0.0.1 if it is configured as a nameserver in
Note: If this file is managed by an external program, such as NetworkManager, or resolvconf, configuration of the respective program should be modified.