New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
Domains and DNSUpdated 26 Oct 2026

Backup MX Records: Do You Still Need a Secondary Mail Server?

What a backup (secondary) MX does, why modern setups rarely need one, the spam and backscatter risks of badly configured secondaries, how senders retry, and how to design inbound mail for resilience.

TK
Written by Tomasz Kowalski
Infrastructure and Reliability Engineer
Reviewed by Ishita Rao
  • Published3 Nov 2025
  • Read time7 min
  • Length1,404 words
Share this guide

A domain can list several mail servers in its MX records, each with a priority number. Senders try the lowest number first and fall back to higher numbers when the first is unreachable. The higher-numbered servers are the backup, or secondary, MX hosts, and for decades they were considered good practice: if your main mail server went down, the backup would accept mail and hold it until the primary returned. The picture has changed. Senders retry for days, hosted mail platforms are far more reliable than a lone server in a cupboard, and spammers learned to target backup MX hosts because they were often less carefully filtered than the primary. This guide explains how MX priority and fallback work, what a backup MX really does, the problems it can cause, when one still makes sense and how to design inbound mail so that an outage does not lose messages. It assumes you control your DNS and mail routing.

How it worksLower MX preference numbers are tried first; higher numbers only when lower ones fail
What senders do anywayQueue and retry for several days if no MX accepts the message
Main riskBackup hosts that accept everything, then bounce or relay spam later
Modern viewUse equal-priority redundant servers or a reliable hosted service instead of a weak backup

How MX priority works

When a server delivers mail for example.com, it looks up the MX records, sorts them by preference (the lowest value first) and tries each host in turn. Hosts with the same preference are tried in random order, which spreads load.

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

Here mail1 and mail2 share the load, and backup is used only when both fail to answer or return a temporary failure. Note that "fail" has a precise meaning: if the primary answers with a permanent error such as 550 5.1.1 user unknown, the sender does not go on to the backup; it bounces the message. Only connection failures and temporary 4xx responses lead a sender to try the next host. See MX records and DNS records for email.

Why the old advice existed

In the early days of the internet, hosts were often offline, links were slow and senders gave up quickly. A secondary MX run by a friendly provider kept messages safe during an outage of your own server. Many mail programs also retried only a few times. Neither is true today. The standard (RFC 5321) recommends that senders keep trying for at least four to five days, and common mail servers use a retry window of that length. If your single mail server is down for a day, senders will queue and deliver the messages when it returns, and the sender, not you, does the holding. The cost of an outage is delay, not loss. See retries and backoff.

The problems a backup MX brings

ProblemHow it arisesEffect
Spam attracts to the backupSpammers deliberately connect to the highest-numbered MX, expecting weaker filtering and no recipient validationSpam enters your system through a side door
BackscatterThe backup accepts mail for any address, forwards it to the primary, the primary rejects unknown users and the backup sends a bounce to a forged senderInnocent third parties receive bounces; your server may be blocklisted
No recipient list on the backupThe backup does not know which mailboxes exist and must accept everythingCannot reject unknown users during the SMTP conversation
Different filtering rulesAnti-spam, anti-virus and DMARC checks are configured differentlyInconsistent protection
Delayed delivery after recoveryBackup retries on its own scheduleMessages arrive late even after the primary is back
Authentication surprisesForwarding from the backup breaks SPF, and a changed message breaks DKIMDMARC failures; see forwarding and authentication
Operational burdenAnother server to patch, monitor and secureOften neglected

The backscatter problem deserves a closer look. A server that accepts a message and later discovers that it cannot deliver it must generate a bounce. If the message came from a forged sender, which is typical for spam, that bounce goes to someone who never sent anything. Reputation systems and blocklists penalise servers that do this. The right behaviour is to reject unknown recipients during the SMTP conversation, before accepting the message, and a backup that does not know your recipient list cannot do that. Some setups give the backup the list of valid recipients, which fixes the problem at the price of maintaining it.

When a backup MX still makes sense

  • You run your own on-premises mail server without a managed filtering layer, and can accept the extra maintenance of a properly configured secondary with recipient validation.
  • You use a filtering service as the front door. Here the filter is the primary MX, not a backup, and it holds the mail if your server is down. All MX records point at the filter. This is a form of redundancy that also removes the side door.
  • You have strict delivery requirements and cannot tolerate even a delay; then you build a second primary-equivalent server in another location with identical filters.
  • A regulatory or contractual requirement demands a second site.

In all of these, the secondary should be a full peer of the primary: the same recipient checks, the same spam and virus filtering, the same TLS policy, and the same monitoring.

Better designs

  1. Use a hosted mail platform with built-in redundancy. The provider publishes MX records for multiple servers that are equally well protected. Your job is just to use the records it gives you. See Google Workspace and Microsoft 365 MX records.
  2. Publish several MX records with the same priority, each pointing to a fully protected server. This both balances load and gives redundancy without a weak tier.
  3. Put recipient validation on every inbound server. Use a shared directory or synchronised recipient list so that all servers can reject unknown users at once.
  4. Rely on sender retries for short outages. A few hours of downtime for planned maintenance is tolerable; send a notice if it is longer.
  5. Remove old MX entries. Check your zone for forgotten secondaries that point to decommissioned or third-party hosts. An MX that points to a host you no longer control is an open door.
  6. Monitor from outside. Test each MX with a real SMTP connection from outside your network at intervals. See testing an SMTP connection.

Checking your own domain

dig example.com MX +short
# 10 mail1.example.com.
# 20 backup.example.net.

# Test each host
openssl s_client -starttls smtp -connect backup.example.net:25 -crlf
# At the prompt, try: EHLO test / MAIL FROM:<[email protected]> / RCPT TO:<[email protected]>
# A well-configured backup rejects the unknown recipient with 550 instead of accepting it

If the backup accepts an invented recipient, you have the backscatter risk described above. Either give it the recipient list, make it reject unknown users by forwarding the check to the primary, or remove it. Also check that its TLS certificate is valid and that it has a correct reverse DNS name, see reverse DNS and HELO.

What about sending mail?

MX records concern inbound mail only. They have nothing to do with the servers you use to send. Your outbound redundancy is a different design problem: use a sending provider with failover and a queue in your application. See reliable sending queues. Do not confuse the two; a backup MX does not help if your outbound path is down, and your outbound provider does not receive replies.

Summary of recommendations

Your situationRecommendation
Hosted mail (Google, Microsoft, others)Use only the MX records the provider gives you; no extra backup
Single self-hosted serverConsider a front-door filter or a second full server; otherwise rely on sender retries
Existing backup MX of unknown qualityTest it for recipient validation; fix or remove it
Domain that does not receive mailPublish a null MX (0 .) to say so; see parked domains
Mission-critical inbound mailTwo or more equal servers in separate locations with identical filtering

A backup MX is a tool from another era. If you have one, check that it is not your weakest door; if you do not, you are probably better off than those who do. Equal, fully protected servers or a managed platform give you resilience without the old trade-offs.

Keep inbound and outbound separate Use our relay for sending, and keep your MX records pointed at the mail platform you trust.

Explore the SMTP relay

References and further reading

Frequently asked questions

What is a backup MX?

An MX record with a higher preference number that senders use only when the primary servers are unreachable.

Do I still need a backup MX?

Usually not. Senders retry for several days, and hosted platforms are redundant. A weak backup can do more harm than good.

What is backscatter?

Bounce messages generated by a server that accepted a message it could not deliver, often sent to a forged sender. It can get your server blocklisted.

Why do spammers target the backup MX?

It is often less filtered and may accept mail for any address, so spam enters through it.

What is better than a backup MX?

Equal-priority redundant servers with identical filtering, a front-door filter or a managed mail platform.

Topics#mx#backup mx#redundancy#spam#dns
Was this guide helpful?Your answer helps us improve our documentation.

Start sending in minutes.

Create an account, add your domain and send your first email.

Get started Talk to sales