Domain & DNS

What Is an MX Record?

Published Ocak 15, 2025

MX records are the DNS records responsible for email. Without correct MX records, email sent to your domain will fail to be delivered. Understanding MX records is essential for anyone setting up email on a custom domain.

Quick answer: An MX (Mail Exchanger) record tells other mail servers where to deliver email for your domain. It points to a mail server hostname and includes a priority number — lower numbers have higher priority.

MX Record Format

example.com.    3600    IN    MX    10    mail1.example.com.
example.com.    3600    IN    MX    20    mail2.example.com.

In this example, mail is first tried at mail1.example.com (priority 10). If unavailable, mail2.example.com (priority 20) is used as a backup.

MX Priority

The priority number (also called preference) determines which mail server to try first. Lower numbers = higher priority. Having multiple MX records with different priorities provides redundancy — if one mail server is down, email is delivered to the backup.

Common MX Record Setups

  • Google Workspace (Gmail) — Uses Google's MX servers (aspmx.l.google.com)
  • Microsoft 365 — Uses Microsoft's MX servers (yourdomain-com.mail.protection.outlook.com)
  • Self-hosted mail — Points to your own mail server

Why Email Delivery Fails

Common MX-related email delivery issues:

  • No MX records configured at all
  • MX records pointing to a CNAME instead of an A record
  • Wrong mail server hostname
  • DNS propagation not yet complete after changing MX records

How to Check MX Records

Use our free DNS Lookup tool — select "MX" as the record type and enter your domain. You'll see all MX records and their priorities.

MX Records and Email Authentication

MX records work together with SPF, DKIM and DMARC records to authenticate your outgoing emails and prevent spoofing.

Related Guides

DNS (Domain Name System) is the internet's phone book — it translates domain names into IP addresses so browsers can load websites.
DNS propagation is the time it takes for DNS changes to spread across all DNS servers worldwide — usually 24 to 48 hours.
An A record is a DNS record that maps a domain name to an IPv4 address, telling browsers which server to connect to.
A CNAME record creates an alias that points one domain name to another domain name instead of directly to an IP address.
A TXT record stores text information in DNS, used for domain verification, SPF, DKIM and other purposes.