Understanding MX (Mail Exchange) records and email routing
An MX (Mail Exchange) record is a DNS record that specifies mail servers responsible for receiving email for a domain. MX records enable email routing by telling sending mail servers which mail servers to deliver emails to for a specific domain.
MX records include: mail server hostname (e.g., mail.example.com), priority value (lower numbers = higher priority), and preference order (multiple MX records for redundancy). MX records are essential for email delivery - without MX records, emails cannot be delivered to a domain.
Check MX records using our MX lookup tool to verify email delivery configuration. Learn more about DNS and DNS lookup.
MX records specify which mail servers should receive emails for a domain, enabling email routing and delivery.
MX records identify mail servers by hostname, allowing sending mail servers to find and connect to receiving mail servers.
Without MX records, emails cannot be delivered to a domain. MX records are essential for email delivery functionality.
Multiple MX records with different priorities provide redundancy, ensuring email delivery even if primary mail servers are unavailable.
Multiple MX records with the same priority enable load balancing, distributing email delivery across multiple mail servers.
MX records follow this format: priority mail-server-hostname
10 mail.example.com - Priority 10, mail server mail.example.com
Priority values range from 0 to 65535. Lower numbers indicate higher priority (preferred mail servers).
Mail server hostname must resolve to an A or AAAA record (IP address), not a CNAME record.
Domains can have multiple MX records with different priorities for redundancy and load balancing.
MX records use priority values to determine delivery order. Lower priority numbers indicate higher priority (preferred mail servers).
10 mail1.example.com - Primary mail server (priority 10)20 mail2.example.com - Secondary mail server (priority 20)30 mail3.example.com - Tertiary mail server (priority 30)Sending mail servers attempt delivery to mail servers in priority order (lowest priority number first).
If primary mail server (lower priority) is unavailable, sending servers attempt delivery to secondary mail servers (higher priority numbers).
Multiple MX records with the same priority enable load balancing, with sending servers choosing randomly or round-robin.
Use our MX lookup tool to query MX records and retrieve mail server information for domains.
Use command-line tools (dig, nslookup) to query MX records: dig MX example.com
Use our domain health check to verify DNS configuration including MX records.
Verify MX records are published correctly, mail server hostnames resolve to IP addresses, and priorities are configured appropriately.
Test email delivery to verify MX records are working correctly and emails are being delivered to the correct mail servers.