Question
How to change mail server's domain name?
Answer
-
Domain is delegated to the Plesk DNS:
-
Navigate to Domains > example.com > DNS Settings
-
Click on MX record
-
Set
Mail exchange server
to the desired domainNote: The value of the MX record must have a corresponding A record.
-
Domain is not delegated to the Plesk DNS:
-
Connect to the server via SSH
-
Find authoritative DNS provider for the domain:
# dig +short example.com NS
ns2.he.net.
ns5.he.net.
ns4.he.net.
ns3.he.net.
ns1.he.net. -
Navigate to the DNS provider's web-interface and log in.
-
Set MX record to the desired domain.
-