Can a domain have multiple MX records?

Still have a question, spotted an error, or have a better explanation or a source we should cite?

Yes, a domain can have multiple MX records, and in practice most do. One MX record is a single point of failure. Two or more gives you options when things go wrong.

Here's what you can actually do with multiple MX records:

Primary and backup (failover)
Set your main mail server at a lower priority number (like 10) and a backup at a higher one (like 20). When a sending server tries to deliver mail, it tries the lowest number first. If that server is unavailable, it tries the next one. Your mail still arrives even if the primary is down.

Load balancing
Give two or more servers the same priority number, say 10 each. Sending servers will distribute mail across them roughly evenly. This is useful if you're handling high inbound volume and want to spread the load.

Security filtering layer
Set your spam filter or email gateway at a lower number (like 5) and your actual mail server at a higher one (like 10). Every incoming message hits the filter first before reaching your inbox. This is a common pattern for enterprise setups using tools like Barracuda or similar gateways.

A quick note on how priority numbers work: lower numbers mean higher preference. A record at priority 5 is tried before one at priority 10, which is tried before 20. The actual numbers don't matter as much as their relationship to each other.

But most domains running Google Workspace or Microsoft 365 already have multiple MX records configured automatically when you verify your domain. If you're setting up DNS manually, your mail provider will give you the exact records and priority values to use. Follow those exactly, don't invent your own numbers.

If you want to double-check that your MX records are resolving correctly after setup, our free Email Header Analyzer can help you trace where incoming mail is actually routing. Or if something's broken right now, the SOS hotline is free.

The Email Almanac Field Notes: the most useful email questions, once a month

One email a month. New questions worth reading, real deliverability changes (Gmail and Outlook updates, etc.), and any tool or report that landed since the last issue. No fluff, no upsell.

Contributors

Who worked on this answer

Every name links to their profile. Every company links to their site. Real people, real accountability.

Ask an AI · tailored to your setup

Get a ranked MX configuration recommendation

I'm setting up MX records for my domain and not sure how to configure multiple records correctly. Based on what I share about my mail setup, give me a ranked list of recommended configurations.

Edit the yellow boxes, then send to the AI of your choice.