
A mail exchange record or MX record is a type of record in a DNS zone file. MX records are responsible for specifying which mail server is in charge of receiving email messages on behalf of a domain.
How the MX Record Works
When you send an e-mail, your computer queries the DNS for the MX records of the recipient’s domain name. This query results in a list of all available MX records that are responsible for accepting incoming mail. The email client then attempts to make an SMTP (Simple Mail Transfer Protocol) connection to the primary mail server.
MX Records Have Their Priorities Straight
MX records are ranked by priority from lowest to highest to specify which mail server is the primary one. The primary server is always the one to be used, unless it is unavailable and then, the next subsequent server is tried. If there are no MX records available, the server will simply request the A record of the domain.
To increase reliability, if there are multiple MX records with the same preference number, all of these must be tried first, before the email client can try the next subsequent record. The SMTP client will try all of the MX records until delivery is successful.
Do I Need Multiple MX Records and Multiple Mail Servers?
Multiple MX records make primary and backup mail possible. But what if you want reliable redundancy without the headache of running multiple mail servers? No-IP has two easy solutions.
Backup MX gives you mail redundancy on exclusive networks with professional mail server admins monitoring the system. Not only that, but No-IP’s Backup MX servers filter viruses and employ RBL lists to help keep the junk from reaching your inbox. No-IP also allows you to provide a valid user list so that bad mail can be stopped at the SMTP level, saving connections and resources on your server.
Another No-IP product, Mail Reflector will help you get around Port 25 if your ISP blocks it. Mail is first delivered on the standard port to our mail system and then is immediately delivered to your mail server on whichever port you specify. This gives you complete control of your mail system and bypasses seemingly insurmountable restrictions. Mail Reflector also provides all of the features of Backup MX, including virus filtering, greylisting, and customizable RBL lists, so that even if your mail server is temporarily unavailable, mail will not be lost.
For painless email server management, No-IP’s Backup MX or Mail Reflector can save you time, money and unnecessary headaches. Questions on MX records or our mail services? Get in touch with the No-IP team!
Check out Part One and Part Two of our DNS Records series:
The Anatomy of a DNS Zone File: SOA Record
The Anatomy of a DNS Zone File – Part Two: What are NS Records and Why Are They Important to DNS?