The Split-Brain MX Problem: Stop Running Parallel SEGs
Running two different email gateways at the same MX priority creates an inconsistent, impossible-to-audit mess of split quarantines and authentication failures.

Imagine spending six months perfectly tuning an inbound filtering deployment, only to find out half your external mail is bypassing it entirely and landing in an unconfigured legacy tenant.
I see this architectural nightmare during incident response far more often than I should. An IT director decides they need strict high availability for inbound email. They point priority 10 MX records at two entirely different Secure Email Gateways. The logic seems sound on a whiteboard. If Gateway A goes down, Gateway B catches the mail. It is load balancing for email, right? Wrong. Email routing does not work like a modern application load balancer.
This split-brain architecture guarantees inconsistent filtering, infuriates users hunting for missing messages, and actively breaks email authentication protocols. It turns a standard SOC investigation into a forensic goose chase across disparate logs. You are essentially paying for two bouncers at the front door, but letting them make up their own rules on who gets inside.
The False Promise of Inbound Load Balancing
The urge to build redundancy is a good instinct. Security engineers are trained to eliminate single points of failure at all costs. When designing network ingress for web applications, we use Anycast IPs, redundant firewalls, and autoscaling groups. It feels incredibly natural to apply that exact same active/active paradigm to inbound email delivery by configuring multiple MX providers with identical priorities. You might see a domain with a Mimecast cluster and a Cisco Secure Email cluster both sitting at priority 10 in DNS.
Applying Web Paradigms to SMTP
The fundamental mistake lies in assuming SMTP routes traffic like HTTPS. A standard web load balancer sits in front of your servers, evaluates backend health, and distributes requests round-robin, by least connections, or based on geographic proximity. The sending Mail Transfer Agent sitting on a Google or Microsoft server out on the internet has no concept of your backend health. It simply queries DNS, gets an unordered list of MX records, and picks one based on a set of rules defined decades ago.
When you put two different vendor appliances at the same MX priority, you are not creating a resilient, load-balanced cluster. You are creating two entirely separate front doors. These appliances do not share state. They do not share rate-limiting counters. They do not share IP reputation cache. An attacker sending a high-volume directory harvest attack can hit both gateways simultaneously, cutting their effective rate-limiting threshold in half because neither gateway knows what the other is seeing.
How MTAs Actually Process Same-Priority Records
To understand why this fails operationally, we have to look directly at the protocol specification. RFC 5321 dictates exactly how a sending MTA must handle mail routing when it encounters multiple MX records for a destination domain. The specification requires the sending MTA to sort the records by preference, attempting the lowest number first. But what happens when the numbers are identical?
If there are multiple destinations with the same preference, there is no definitive rule by which SMTP clients resolve the tie. — RFC 5321, Section 5.1.1
That single sentence is the root of the split-brain problem. When external outbound servers see your two priority 10 records, they randomize the selection. You have zero programmatic control over which gateway receives a specific message. Over a large enough sample size, traffic splits roughly fifty-fifty. On a microscopic level, a single sender replying to a thread of five emails might hit Gateway A three times and Gateway B twice.
Worse, this randomized selection provides false comfort regarding uptime. If one gateway experiences a severe latency spike or a partial service degradation but still accepts the TCP connection, the sending MTA does not intelligently failover to the other record. The MTA only fails over if a hard connection timeout or a specific transient error occurs during the initial handshake. You gain almost no actual fault tolerance against partial degradation, only against a total unreachability event.
Splitting the Quarantine and Breaking the SOC
The most immediate and visible pain of this architecture hits your helpdesk and your users. Security gateways use vastly different threat intelligence feeds, machine learning models, and sandboxing environments. A novel phishing payload that one vendor's engine catches on day zero might sail right through another vendor's default policy. You are artificially lowering your security posture to the lowest common denominator on any given SMTP transaction.
The User Experience Nightmare
Consider the daily quarantine digest workflow. A user receives a spam digest from Gateway A at eight in the morning. They realize a legitimate and urgent vendor invoice is missing. They log into Gateway A's self-service portal, search for the sender address, and find absolutely nothing. Thirty minutes later, frustrated, they call the helpdesk.
The Tier 1 analyst searches Gateway A's message tracking logs and also finds nothing. The message is not missing. It randomly routed through Gateway B based on the sending MTA's coin flip. That critical invoice is sitting in Gateway B's quarantine, waiting for a separate digest schedule that runs at four in the afternoon. The user loses a day of productivity, and IT wastes an hour troubleshooting a ghost.
For the SOC analyst hunting an active intrusion, the problem is exponentially worse. Investigating a business email compromise campaign means querying two entirely different SIEM indexes or vendor portals to piece together the attacker's footprint. The timeline is fractured. Message IDs must be correlated across disjointed log formats. You are doing twice the work to establish the initial access vector, giving the attacker more dwell time while you parse CSV exports.
Collateral Damage to DMARC and ARC
Modern email authentication relies heavily on the cryptographic integrity of headers and body content. When you run parallel gateways, you severely complicate the downstream authentication checks at your final destination inbox, which is usually Microsoft 365 or Google Workspace. Both of these upstream providers need to validate the chain of custody.
The Body Hash Mismatch
Let us trace a standard inbound message. A trusted partner sends an email passing SPF and DKIM. It hits Gateway A. Gateway A is configured to rewrite URLs for click-time protection and append an external sender disclaimer. This action alters the body content, instantly invalidating the original DKIM body hash tag. Gateway A then stamps its own Authentication-Results header and applies an Authenticated Received Chain seal according to RFC 8617.
If you have not meticulously synchronized the trusted ARC sealers and inbound routing connectors in your tenant for both gateways, your final inbox provider will evaluate the broken DKIM signature, fail to validate the ARC chain from the unrecognized secondary gateway, and fail DMARC for that message. Legitimate mail drops into the junk folder or gets silently quarantined by tenant policies.
You also ruin your ability to cleanly alert on internal spoofing. If your internal routing rules enforce a strict policy that all inbound mail must originate from specific gateway IPs, having two distinct vendor networks means maintaining complex, brittle conditional access logic.
Building Actual Resilience
If strict business requirements or compliance mandates require physical gateway redundancy across different vendors, you must design for active/passive failover using staggered MX priorities. Your primary gateway gets priority 10. Your secondary, standby gateway gets priority 20.
Under normal operating conditions, RFC 5321 forces all sending MTAs to attempt the lowest-numbered MX record first. One hundred percent of your mail flows through the primary gateway. Your SOC monitors a single, unified log source. Your users check one quarantine portal. Policy enforcement is perfectly uniform, and rate-limiting counters build accurately against external IP addresses.
Defending the Standby Route
If the primary gateway suffers a catastrophic, hard-down failure, sending MTAs will experience connection timeouts. Only then will they fall back to the priority 20 record. The mail will queue at the sender and eventually deliver through the secondary gateway.
However, you must maintain identical, aggressive filtering policies on that standby gateway. Attackers actively map DNS infrastructure. They routinely attempt to forceful connect to a secondary or tertiary MX record via telnet or custom scripts, bypassing the primary gateway entirely. This is known as an MX fallback attack. Threat actors assume your priority 50 record points to an unmonitored Postfix relay or a legacy anti-spam filter with weaker rules. Your passive gateway must be just as hostile to malicious payloads as your active front door.
The takeaway
High availability should never come at the cost of operational visibility and security consistency. Email routing is an antiquated protocol beast, and forcing it to act like a modern clustered web application will only break your defensive posture. Standardize on one primary ingress path, enforce strict tenant-level restrictions to accept mail only from that path, and keep your disaster recovery environment strictly as a passive fallback.
When you are cleaning up the mess of an inherited split-brain architecture, MailSleuth.AI can ingest and normalize those fractured message headers, helping you identify exactly which gateway dropped the ball or broke the DKIM signature. Consolidate your MX records, kill the parallel processing, and get your inbound flow back under control.
We dissect phishing campaigns and email infrastructure so you don't have to.


