MX record (Mail eXchange) is an MX-type DNS record that points to the domain names of mail servers receiving incoming mail for a specific domain.
In other words, when someone sends an email to an address on your domain, the sender's mail system queries DNS to determine the MX records of the corresponding domain. This information is essential for the proper functioning of mail services, as incorrectly configured MX records will result in messages being returned to the sender.
When the sender sends an email, their mail server requests the MX records of the recipient's domain from DNS. From the list of available mail servers, the one with the lowest numeric priority is chosen. For example, a server with priority "10" is preferred over "20" or "30." If the primary server is unavailable, the process continues with the next one in the list. As a result, the message is delivered to the mail server specified in the MX record, and the user receives the email addressed to their domain.
You can make sure your MX records are configured correctly in several ways. Here are some verification options:
nslookup -type=MX example.com
, while Linux or macOS typically use dig MX example.com
. These tools display the record, server name, and priority.If you want to route emails to another server or set up an external mail service (e.g., Google Workspace), add or edit MX records. This is typically done in your hosting DNS panel or domain registrar. You need to specify:
After saving changes, allow some time for DNS updates—usually from a few minutes to several hours. Then, another check will be performed to ensure the changes have taken effect.
Carelessness during MX record configuration often leads to email delivery issues. Here are some common problems:
Learn more about how to purchase a domain, hosting, VPS, or dedicated server.
Incorrectly configured MX records can result in emails being returned to the sender, which negatively affects the domain's reputation. Proper MX records pointing to reliable mail servers increase trust in the domain.
There may be several reasons: incorrectly configured MX records, issues with the mail server, or your domain's mail servers being blacklisted.
You can use online services that analyze IP addresses for presence in blacklists. You can also check logs for errors or block notifications.