What is an MX record?

Posted:  May 14th, 2018

 

MX stands for Mail exchange. MX Records tell email delivery agents where they should deliver your email. You can have many MX records for a domain, providing a way to have redundancy and ensure that email will always be delivered.

 

Resource records are the basic information element of the Domain Name System (DNS). They are distinguished by a type identification (A, MX, NS, etc.) and a DNS class (Internet, CHAOS, etc.). The records have a validity period (time-to-live) assigned to them, indicating when the information they hold must be refreshed from an authoritative name server.

 

Furthermore, When an e-mail message is sent through the Internet, the sending mail transfer agent (MTA) queries the Domain Name System for MX records of each recipient's domain name. This query returns a list of host names of mail exchange servers accepting incoming mail for that domain and their preferences. The sending agent then attempts to establish an SMTP connection.

 

Google Apps provides a common example of using MX Records for email delivery. When you create a Google Apps account and you want your email to be delivered to your Google Apps mail account, Google provides you with a set of MX records that you need to add to KEKhosting.

 

Here are the default MX records that Google suggests you should add:

 

aspmx.l.google.com 1

alt1.aspmx.l.google.com 5

alt2.aspmx.l.google.com 5

aspmx2.googlemail.com 10

aspmx3.googlemail.com 10

 

Google provides you with 5 different servers that can accept your email. Each MX record includes a priority value, which is a relative value compared to the other priorities of MX records for your domain. Addresses with lower values will be used first. Therefore, when a mail agent wants to deliver an email to you it would first attempt to deliver to aspmx.l.google.com. If that server cannot handle the delivery it would then move onto alt1.aspmx.l.google.com, and if that server cannot handle the delivery then it would move onto alt2.aspmx.l.google.com, and so on.

 

MX records make it easy to define what servers should handle email delivery and allows you to provide multiple servers for maximum redundancy and ensured delivery.

 

Part of the Article sourced from DNSimple.com.

 

https://support.dnsimple.com/articles/mx-record/