Back to blog
Threat Intel
Phishing Forensics

Attacking MX: Finding a Target's Single Point of Failure

An attacker sees your MX records not as mail routes, but as a blueprint for denial of service. We'll show you what they look for.

MailSleuth Research
Email Security Team
August 25, 20268 min read
Illustration of a strong modern bridge next to a weak, crumbling rope bridge, representing the single point of failure i

Your MX records are an attack surface. For most IT teams, they're a 'set it and forget it' DNS entry pointing to Microsoft or Google. For an attacker, they are a public declaration of your email architecture, complete with a ranked list of potential targets.

This isn't about brute force. It's about strategic reconnaissance. By analyzing the patterns in a target's Mail Exchange (MX) records, a patient attacker can identify single points of failure, misconfigured backup servers, and architectural weaknesses. The goal isn't always to breach the inbox; sometimes, creating a targeted mail-flow delay is enough to disrupt a business process and achieve the objective.

Let's put on the black hat and walk through how to deconstruct a target's mail routing for weaknesses. We're not just looking for typos; we're hunting for architectural flaws.

The Goal: From Reconnaissance to Disruption

An attacker's analysis of MX records is driven by a clear objective. What can be achieved by manipulating a target's email delivery? The most common goals are Denial of Service (DoS) and, in more advanced scenarios, mail interception. But don't underestimate the power of a simple mail *delay*.

Imagine a company that relies on time-sensitive purchase orders or multi-factor authentication codes sent via email. A successful attack doesn't need to delete the mail; it just needs to hold it up for a few hours. By forcing sending MTAs to queue mail or retry delivery against a slow or non-responsive backup server, the attacker creates a tactical disruption. This is the real-world impact of what starts as a simple `dig mx [target-domain.com]` command.

The initial recon is passive. Using basic DNS tools, the attacker maps out the advertised mail servers, their priorities, their hostnames, and their IP addresses. From there, they can start to infer the underlying architecture and look for the tell-tale patterns of a fragile setup.

Pattern 1: The 'All Eggs in One Cloud Basket'

The most common configuration today is a set of MX records all pointing to a single cloud provider like Google Workspace or Microsoft 365. On the surface, this seems resilient. These providers have global infrastructure and massive capacity. The weakness isn't the provider itself; it's the consolidated dependency.

ASN and Regional Dependency

An attacker will resolve all MX hostnames to their IP addresses and then map those IPs to their Autonomous System Numbers (ASNs). If all your mail servers, even across different hostnames, resolve to IPs within a single ASN, you have a single point of failure at the network level. A BGP routing leak, a targeted attack on that provider's network edge, or even a regional fiber cut can create a total mail outage for your domain. Senders will receive connection timeouts for all your MX hosts, and mail will queue on their side.

Administrative Monoculture

Even without a network event, this architecture creates a single administrative failure domain. A compromised admin account in your M365 or Google tenant, a misconfigured mail flow rule that creates a loop, or a bug in the provider's security stack can bring everything to a halt. While convenient, it removes the resilience that comes from having a disparate, secondary mail path. The attacker knows that if they find a way to disrupt that one environment, there's no backup plan.

Pattern 2: The 'Fake Backup' MX

This is a classic signature of a legacy configuration or an admin's misunderstanding of how MX priorities work. The setup involves one or more low-priority MX records pointing to the primary cloud provider, and then a high-priority record (e.g., preference 100) pointing to a server that doesn't actually handle mail.

example.com. 3600 IN MX 10 aspmx.l.google.com.
example.com. 3600 IN MX 100 mail.example.com.

The admin's intent was likely to have a 'fallback,' but `mail.example.com` might be an old, decommissioned server. Maybe its IP points to a firewall that drops SMTP traffic, or worse, it resolves to nothing at all. A compliant sending MTA, as defined in RFC 5321, will try the lowest-numbered preference first. If it cannot connect to `aspmx.l.google.com`, it is *obligated* to then try `mail.example.com`.

For an attacker, this is a gift. They now know that if they can make the primary MX unreachable to a specific sender, that sender's mail will be deferred. The sending MTA will waste time trying to connect to a black hole, logging connection timeouts. The mail isn't rejected; it's just stuck in a retry loop. This is a prime target for a mail-delay attack.

Pattern 3: The Unpatched, Forgotten On-Prem Relay

This is the most dangerous variant of the backup MX. In this scenario, the high-priority MX record points to a server that is not only online but is also listening on port 25. This is often an old on-premises Exchange, Postfix, or Sendmail server that was once the primary mail gateway.

A Pivot Point into the Network

This server is a security nightmare. It was forgotten after the migration to the cloud. It hasn't been patched in years. It's likely vulnerable to a host of remote code execution exploits—think Shellshock, Heartbleed, or dozens of other CVEs specific to its MTA software. The attacker's recon now shifts from DNS to active scanning. They'll use tools like Nmap and Shodan to fingerprint the software version running on that backup MX's IP address.

If they find a vulnerable version, the game changes. The goal is no longer just mail delay. By forcing mail to this weak relay, they can trigger an exploit and gain a foothold inside the target's network perimeter. That forgotten mail server becomes a beachhead for lateral movement.

Authentication and Relay Misconfigurations

Even if the server is patched, it's often misconfigured. It might be set up as an open relay, allowing the attacker to use it to send spam or phishing emails that appear to originate from the target's own infrastructure. This burns the target's IP reputation and can get them blacklisted. Or, it may fail to properly validate SPF (RFC 7208) or DKIM (RFC 6376), allowing spoofed emails to slip through if they're routed via this path.

Weaponizing the Findings: Forcing the Fallback

Identifying a weak backup MX is one thing; forcing a sender to use it is another. The attacker doesn't need to take down Google's entire infrastructure. They only need to make the primary MX host appear unavailable *from the perspective of the sender's MTA*.

A targeted, low-volume DoS attack against the target's primary MX IP addresses can be enough. This could be a SYN flood or another resource exhaustion attack that prevents new TCP connections. When the sender's MTA tries to deliver an email, its connection to `mx1.provider.com` times out. The MTA's logic dictates it must then try `mx2.provider.com`. If all primary hosts are unresponsive, it will eventually fall back to the high-priority, vulnerable `backup.example.com`.

The attack is now in motion. Mail is either being delayed by a non-responsive 'fake backup' or being delivered to an unpatched on-prem server ripe for exploitation. The initial DNS query, a simple recon step, has been successfully weaponized into an active attack on the target's mail infrastructure.

The Defender's Playbook: Proactive Resilience Audits

Now, let's switch hats. As a defender, you can't wait for mail to stop flowing to find these problems. You need to think like the attacker and audit your own infrastructure proactively.

Start with your own `dig mx [your-domain.com]`. Look at your records with a critical eye. Do they all point to one provider? Do you have any high-priority records from a previous life? For every single MX record, you should be able to answer: What is this server? Where is it hosted? Is it patched? Is it configured correctly? Is it even supposed to be there?

Don't just check for DNS existence; test the connection. Use `telnet` or `nc` to connect to every advertised MX server on port 25. Do you get a banner? Is it the banner you expect? Does it offer STARTTLS? An attacker is doing this, so you should be, too. Any server that doesn't respond, or responds with an unexpected banner, is a liability.

True email resilience comes from intentional architectural choices. This might mean using multiple, disparate mail security providers for MX diversity or implementing standards like MTA-STS (RFC 8461) to give senders a secure way of discovering your up-to-date mail policies. The goal is to leave no room for ambiguity and remove any forgotten, weak links from your public-facing mail routing.

The takeaway

Your MX records are not a static configuration; they are a dynamic part of your security posture. A record that was valid five years ago might now be a gaping hole in your defenses. The reconnaissance techniques used by attackers are not complex, but they are effective because they prey on neglect and outdated assumptions.

Don't let an attacker be your first pen-tester. Regularly auditing your full DNS and email authentication stack, using tools like MailSleuth.AI to continuously check not just for existence but for connectivity and configuration health on all MX hosts, is the only way to find and fix these single points of failure before they are exploited. When was the last time you tried to connect to your lowest-priority MX record?

#email-security#mx-records#red-team#reconnaissance#denial-of-service#dns
MailSleuth Research
Email Security Team

We dissect phishing campaigns and email infrastructure so you don't have to.