Facebook tracking pixel

MailGenius

MX Server Priority: A Guide to Perfect Email Routing

You're setting up email for a domain, adding records exactly the way your provider told you to, and then one field stops you cold: Priority.

Many find themselves guessing. They pick a number, save the record, and move on.

That works right up until an important message never arrives, a backup server never gets used, or mail starts going somewhere you didn't intend. MX server priority looks like a small DNS setting, but it controls the order in which the internet tries to hand your mail to your systems. If that order is wrong, the rest of your email stack can be perfect and you'll still have delivery problems.

Why Your Email Needs a Mail Delivery Plan

A lot of teams treat inbound email like plumbing. If messages show up today, they assume the setup is fine.

That's risky. Your domain needs a delivery plan, not just a mail server. If a customer replies to a campaign, sends a support request, or forwards a contract to your team, that message needs a clear destination and a fallback path if the first destination is unavailable.

Here's the practical version. You connect a new mailbox platform, open your DNS panel, and see multiple MX entries from the provider. One might be intended for actual mail routing. Another might exist for a special use case tied to setup or validation. If you don't understand what the priority field does, you can point live mail at the wrong place without realizing it.

That's why I tell marketers to think of MX priority as the front-desk routing policy for the whole domain. It decides which desk gets the package first, which desk takes over if the first one is closed, and whether a message gets handled cleanly or bounced around.

Practical rule: If email matters to revenue, support, hiring, or sales, your domain needs a primary route and a backup route. Hope is not a routing strategy.

This isn't only an IT concern. Marketers feel the impact fast. If replies vanish or get delayed, lead handoff slows down. If support emails don't land, customer experience takes a hit. If mail routing looks broken, people start blaming the campaign, the copy, or the CRM, even when the underlying problem sits in DNS.

A simple way to sanity check your setup is to use a mail tester and verify how your domain behaves from the outside. That kind of outside-in view catches issues that internal assumptions miss.

Understanding MX Priority The Lowest Number Wins

The rule that matters most is simple: the lowest number wins.

Proofpoint's MX reference states that MX server priority is defined by a DNS preference value, that lower numbers indicate higher priority, and that the valid range runs from 0 to 65,535. It also gives the common example of a primary server at 10 and a backup at 20, with senders attempting the lowest-numbered record first before moving to the next one (Proofpoint MX record reference).

If you remember only one thing about MX server priority, remember that.

Think of it like an emergency contact list

If you list three contacts, you don't call them in random order. You try the first person. If they don't answer, you move to the next. MX works the same way.

  • Lowest value first means the most preferred mail server gets first shot at accepting mail.
  • Higher values later means those servers exist as fallbacks, not equals.
  • Order is intentional means you shouldn't assign numbers casually.

That last point matters because a lot of bad advice online makes the number sound cosmetic. It isn't. It determines delivery order.

Example MX Record Priority Setup

Priority Hostname Function
10 mail-primary.example Primary inbound mail server
20 mail-backup.example Backup server if primary is unavailable
30 mail-archive.example Lower-preference standby route

You don't need fancy numbering. You need clear spacing and a reason behind it.

A common clean setup is to leave room between values so you can add or remove records later without rebuilding the whole order. The exact numbers matter less than the ranking. A primary at a lower value and a backup at a higher value is what creates predictable behavior.

Treat MX priorities like a queue, not a score. A smaller number doesn't mean “stronger.” It means “try this one first.”

Another useful detail from the same Proofpoint guidance is that MX records can share the same priority when you want load distribution rather than a strict primary-backup design. That sounds simple, but it changes the behavior of your mail flow in important ways.

Mail Flow in Action Failover vs Load Balancing

The biggest misunderstanding around MX server priority is thinking that adding multiple MX records automatically spreads traffic across them.

It doesn't.

Gandi's guidance makes the key distinction clear: MX priority sets the order of attempted delivery, and a backup MX may only see traffic when the preferred host is completely unreachable. The same source also notes that identical-priority MX records can be used for load distribution (Gandi on MX priority behavior).

A diagram comparing failover and load balancing processes for email servers and their MX priority settings.

What failover actually looks like

In a failover setup, you publish a preferred MX and at least one less-preferred MX. Senders try the preferred destination first. If that system can't be reached, they move to the next.

That's useful when you want one primary mail environment and one continuity path behind it. It's clean, easy to reason about, and usually the right choice for most businesses.

What doesn't work is assuming the backup is sharing the load every day. In many real-world setups, the backup won't see normal traffic at all unless the primary has a real reachability problem.

When equal priority makes sense

If you assign the same priority to multiple MX hosts, some setups can distribute incoming traffic among them. That's a different design goal.

Use equal priority when you intend for shared responsibility across active systems. Don't use it just because multiple servers exist. If one server is meant to be a standby, giving it the same priority as production can send traffic somewhere you didn't mean to send it.

Here's the practical trade-off:

  • Primary plus backup works best when one environment should receive mail under normal conditions.
  • Equal-priority records work best when multiple environments are built to accept live traffic at the same time.
  • Mixed intentions create confusion. If your DNS says “share traffic” but your infrastructure expects “standby only,” delivery gets messy fast.

A backup MX is not a second front door unless you configure it that way. Most of the time, it's an emergency exit.

Marketers often get tripped up. They hear “redundancy” and assume “parallel delivery.” But DNS doesn't know your business intent. It only follows the ranking you publish.

How to Check and Change Your MX Priority Settings

If you manage DNS through GoDaddy, Cloudflare, Namecheap, or another provider, the screens look different but the fields are usually the same. You're looking for the DNS zone, then the MX records for your domain.

A person editing MX server priority settings on a laptop computer screen for DNS management.

The main fields are typically:

  • Type for the record type, which should be MX
  • Host or Name for the domain label, often the root domain
  • Value or Points to for the mail server hostname
  • Priority for the order in which senders should try that host

Dell's guidance explains that when a domain has multiple MX records, mail goes to the server with the lowest preference number, often 0 for the highest-priority server. It also warns about a practical issue that catches teams during setup: if one MX is used for verification and another for actual mail routing, the routing record must have the highest priority in practice, meaning the lowest number, so mail isn't misdirected (Dell MX prioritization guidance).

What to look for in your DNS panel

Start by reviewing every MX entry attached to the domain. Old records are a common problem, especially after migrations.

Check these items in order:

  1. Which host is supposed to receive live mail
    This should be your true inbound destination, not a leftover record from a previous provider.

  2. Which record has the lowest priority number
    That host will be tried first. If the wrong one is lowest, mail routing is already off.

  3. Whether any MX exists only for verification or setup
    Those records shouldn't outrank your live routing destination.

If you need a faster outside check, use a tool to diagnose email sending issues and confirm what the world sees for your domain.

How to change the order safely

Editing MX server priority is simple. Doing it safely is where people slip.

  • Keep the provider's exact hostname
    Don't improvise or shorten it. Mail routing depends on precision.

  • Change the ranking with intention
    If one host is primary and another is fallback, the primary needs the lower number.

  • Remove stale entries
    If an old provider is still published, some senders may still try it.

After saving, give the change time to appear consistently across DNS lookups. During that period, you can see mixed results depending on where a lookup is coming from.

A quick walkthrough can help if you want to see the basics visually before editing records in production.

One operational detail people miss

Don't assume “multiple MX records” means “better” by itself. More records only help when each one has a clear role. If you can't explain why an MX exists, it probably shouldn't still be in your zone.

Top 3 MX Priority Mistakes and How to Fix Them

Most MX problems aren't dramatic. They're ordinary configuration mistakes that subtly disrupt mail flow.

An infographic detailing the top three common MX priority mistakes and how to fix them for email.

EmailLabs notes that MX records must point to a hostname that resolves through an A or AAAA record, not directly to an IP address or a CNAME. It also points out that operational resolution problems often cause delivery failure even when the priority values themselves look correct (EmailLabs on MX record requirements).

Mistake one using the wrong target type

This is the classic error. The priority numbers look perfect, but the MX target itself is invalid for mail routing.

Symptoms usually include intermittent failures, full delivery failure, or confusion during troubleshooting because the DNS record appears present. The fix is straightforward. Point the MX to the correct hostname, and make sure that hostname resolves properly through the required address record.

What doesn't work is trying to get clever with aliases. Email is less forgiving than web routing.

Mistake two reversing primary and backup order

Teams often add a backup server later and accidentally give it the more preferred value. The result is that the fallback system becomes the first destination.

That can create all kinds of practical issues:

  • Messages land in the wrong environment if the backup isn't meant for daily use
  • Support and sales replies fragment across systems
  • Troubleshooting gets noisy because the DNS appears valid even though the intent is wrong

The fix is to align ranking with function. Your true production inbound platform should hold the most-preferred priority.

If your backup is receiving normal mail, don't assume that means it's “working.” It may be proving that your priorities are wrong.

Mistake three ignoring propagation and cached views

This one is more operational than syntactic. You update MX records, refresh your DNS panel, and assume the issue is solved. Then someone else still sees the old route.

Caching can make active troubleshooting frustrating because different resolvers may not show the same answer at the same moment. That's why it's smart to validate against authoritative DNS and compare what external tools see during an incident.

A better habit is to treat DNS changes like staged infrastructure work:

  • Confirm the new record set
  • Validate resolution of each hostname
  • Check from more than one vantage point
  • Retest mail flow after caches have had time to expire

The bigger lesson is that MX server priority doesn't live in isolation. The preference value, the hostname, and the surrounding DNS design all have to agree.

The Hidden Link Between MX Priority and Inbox Placement

Marketers usually focus on subject lines, sending volume, and authentication. That makes sense. Those are visible levers.

But inbox placement also depends on basic operational trust. If your domain can't reliably receive mail, providers and recipients get a bad signal. Replies fail. Automated responses break. Human conversations stall. That kind of failure makes your setup look neglected, even if your outbound program is polished.

A solid MX design protects the front door of the domain. If your main destination has trouble and there's no real fallback path, incoming messages can bounce or disappear into retry cycles. That hurts customer experience first. Then it starts hurting trust.

Screenshot from https://mailgenius.com/

Why marketers should care

If you run outbound campaigns, you want replies. If you run lifecycle email, you want account notices and support loops to work. If you run sales, you need prospects to reach your team without friction.

MX problems don't always look like MX problems. They show up as missed demos, “never got your reply” threads, broken handoffs between departments, and rising skepticism about whether the domain is managed well.

The foundation comes before optimization

Teams often jump straight to alignment checks for outbound identity. That matters, but the routing layer still has to be dependable.

If you're already reviewing authentication, pair that work with an SPF and DKIM checker so you're not solving one trust signal while ignoring another. Good deliverability comes from systems that agree with each other, not from one perfect record.

Reliable inbox placement starts earlier than most teams think. Before filters judge your content, the internet has to trust where your domain sends people and where it receives them.

Your Action Plan for Flawless Email Routing

If you want a clean MX setup, keep it boring and intentional.

Use at least a primary route and a fallback route. Make sure the mail system meant for daily use has the most-preferred value. Confirm that every MX hostname resolves correctly. Remove old records that no longer belong to your provider stack. Then test from the outside instead of trusting the control panel view.

When troubleshooting weird delivery behavior, it also helps to understand how DNS can fail beyond your own zone. For broader context on resolver interference and routing oddities, this guide on understanding DNS poisoning in China is worth reading.

Your checklist is short:

  • Rank by intent so primary and backup roles are obvious
  • Verify hostname resolution so valid MX records lead to valid destinations
  • Prune stale entries so senders don't try retired systems
  • Retest after changes so cached assumptions don't fool you

Run a test with MailGenius before you assume your email setup is healthy. A free spam test gives you an outside-in view of how your domain, authentication, content, and routing look to real mail systems, so you can fix the issues that keep messages out of the inbox.

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today

Run a Free Email Deliverability Test - Send an Email to the Address Below, then Click “See Your Score”:

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today