What is an MX record?
What is an MX record?
An MX record, short for Mail Exchange record, is a type of DNS (Domain Name System) record that tells the internet which mail servers receive email for your domain. Without a working MX record, email sent to addresses at your domain has nowhere to go.
How MX records work
- Someone sends an email to an address at your domain, such as name@example.com.
- The sender's mail server looks up the MX records for example.com in DNS.
- It tries the mail server with the lowest priority number first.
- If that server is unavailable, it tries the next-lowest number, and so on, until delivery succeeds or the message is queued to retry later.
What an MX record looks like
Each MX record has two main parts: a priority number and the hostname of a mail server. Here's an example of a domain with a primary and a backup mail server:
| Name | Priority | Mail server | What it means |
|---|---|---|---|
| example.com | 10 | mail1.example.com | Tried first, because 10 is the lowest number |
| example.com | 20 | mail2.example.com | Backup, used only if mail1 can't be reached |
If two MX records share the same priority, senders spread mail between them, which balances the load across servers.
Lower number, higher priorityMX priority works in reverse of what you might expect. The server with the smallest number is tried first. A server with priority 10 is preferred over one with priority 20.
MX record rules
- Point to a hostname, not an IP address. The mail server name must resolve through its own A or AAAA record.
- Don't point MX records at a CNAME. The target should be a real hostname, not an alias.
- Use a null MX if a domain never receives email. A record with priority 0 and a single dot (
0 .) tells senders not to attempt delivery, as defined in RFC 7505. - Be careful when changing MX records. Updating them reroutes all incoming email for that domain, so coordinate any change with whoever manages your mailboxes.
MX records and email marketing
MX records control where email is received, not how it's sent. Sending is authenticated with SPF, DKIM and DMARC.
Still, MX records matter for marketers. Many mailbox providers check that a sending domain can receive mail, since a domain with no way to accept replies or bounces looks suspicious. Email platforms often use MX records on a dedicated sending subdomain to process bounces and replies, so your list stays clean and your sender reputation stays healthy.
MX records in DailyStory
When you set up email sending in DailyStory, you add two MX records along with SPF and DKIM records to a dedicated sending subdomain, such as ds.example.com. These records live only on that subdomain, so they don't affect the MX records for your main domain or where your team's email is delivered. See Setting up your email domain and Configuring SPF, DKIM and DMARC.
Frequently asked questions
Will adding DailyStory's MX records affect my company email?
No. DailyStory's MX records are added to a dedicated sending subdomain, not your main domain, so your existing mailboxes keep working as before.
What happens if a domain has no MX record?
Senders fall back to the domain's A or AAAA record and try to deliver there. If that server doesn't accept mail, delivery fails. If a domain should never receive email, publish a null MX record instead.
How do I check my MX records?
Use a free DNS lookup tool and search for your domain's MX records, or check the DNS settings at your DNS host. You'll see each mail server and its priority number.