Back to blog
Threat Intel
Phishing Forensics

MX Records Don't Lie: How Attackers Fingerprint Your Email Gateway

An attacker can guess your email security stack by reading your public MX records, then tailor a phishing campaign to bypass it.

MailSleuth Research
Email Security Team
June 26, 20267 min read
An illustration of a pirate-style map where shipping routes represent email flow, with one route going to a secure fortr

An attacker’s reconnaissance rarely starts with a port scan anymore. It starts with a DNS query. A simple `dig mx yourdomain.com` is free, silent, and reveals a shocking amount about your security posture before a single packet is sent to your firewall.

Most admins see MX records as simple routing instructions, a digital mail-stop. To an attacker, they are a blueprint. They tell a story about your budget, your security priorities, and, most importantly, the specific vendor products standing between their payload and your CEO’s inbox.

This isn't academic. Fingerprinting your inbound mail chain is a standard, required step in any sophisticated email-based attack. If they know you're running SEG Vendor X, they won't waste time with attacks Vendor X is known to stop. They'll use the specific bypass techniques that work.

Know Your Enemy, Know Their Stack

Every Secure Email Gateway (SEG) has its strengths and its blind spots. One might excel at detaching malicious macros from Office documents but struggle to analyze QR codes embedded in a PNG. Another might have a world-class sandboxing environment for EXE attachments but be flummoxed by a password-protected ZIP file containing a malicious LNK. These aren't defects in the traditional sense; they are design trade-offs and architectural quirks.

From Generic Blasts to Tailored Strikes

A low-sophistication attacker sends the same payload to everyone, hoping it sticks somewhere. A professional turns it into a science. By fingerprinting your SEG, they shift the odds dramatically in their favor. Instead of a generic credential harvesting link that nine out of ten gateways block, they can craft a payload engineered to exploit a known gap in your specific provider's filtering logic.

This intelligence transforms the attack from a high-volume, low-yield numbers game into a targeted, high-impact operation. The goal isn't just to get *an* email delivered; it's to get *the right payload* delivered past the defenses they know you have in place.

Reading the Priority Numbers

The magic is in the MX record's priority field. As a refresher, SMTP servers use this number to decide which mail host to try first. The lowest number wins. If the server at priority 10 is unreachable, the sending server will then try the server at priority 20, and so on. It's a simple failover mechanism.

But in a security context, it’s a clear signal of intent. The priority ladder tells you the *intended* path of every piece of inbound mail.

The 'SEG First' Pattern

This is the most common and revealing pattern. You will see at least two MX records. One, with a very low priority number (like 10), points to a hostname that clearly belongs to a third-party security vendor. A second record, with a much higher priority number (like 100 or 1000), points to the native mail exchangers for Microsoft 365 or Google Workspace.

This configuration screams that the organization is routing all inbound mail through the SEG (the priority 10 record) for filtering. The high-priority record for M365 is just a backup, in case the SEG is completely down — a rare event. For an attacker, this is a clear sign: focus your efforts on bypassing the vendor at priority 10.

The 'Direct-to-Cloud' Pattern

By contrast, an organization that sends mail directly to its cloud provider will have a much simpler MX setup. They'll typically have a single MX record, like `yourdomain-com.mail.protection.outlook.com`. There's no third-party vendor name, and no significant priority gap. This tells an attacker that the primary line of defense is Microsoft's own Exchange Online Protection (EOP). The attack plan changes accordingly, now focusing on EOP's known bypasses.

Name Brand Clues: Proofpoint and Mimecast Tell-Tales

It gets worse. The hostnames themselves often leak the specific vendor, removing any remaining guesswork. Different SEGs have distinct, predictable naming conventions for their customer-facing MX records.

Case Study: A Proofpoint Footprint

An organization using Proofpoint's SEG will almost always have an MX record pointing to a hostname ending in `ppe-hosted.com`. The priority layout is the classic tell-tale we just discussed. A quick `dig` might reveal this:

yourdomain.com. 3600 IN MX 10 yourdomain-com.mail.protection.us.pphosted.com.
yourdomain.com. 3600 IN MX 100 yourdomain-com.mail.protection.outlook.com.

There is no ambiguity here. Mail is meant to flow to Proofpoint (priority 10) first. Only if `pphosted.com` is offline will mail attempt delivery directly to Microsoft (priority 100). An attacker seeing this record now knows the target. They can consult their internal knowledge base or public research for known Proofpoint bypass techniques, such as certain URL obfuscation tactics or payloads that fare well in their specific sandbox environment.

Case Study: Mimecast's Regional Signatures

Mimecast is equally easy to spot. Their hostnames follow a rigid geographical pattern, such as `us-smtp-inbound-1.mimecast.com` or `eu-smtp-inbound-1.mimecast.com`. The presence of `mimecast.com` is the obvious giveaway. The regional prefix (`us-`, `eu-`, `au-`) provides an extra bit of intelligence, potentially useful for timing an attack to coincide with off-hours for the target's local IT staff but during a period of high load for the Mimecast data center.

Turning Intelligence into Action

This intelligence isn't just for show. It directly informs the attacker's next move. Knowing the SEG vendor is like a quarterback knowing the opponent's defensive scheme. It lets you call the right play.

Attacking the Backup MX: The Open Back Door

The most devastating abuse of this information is to bypass the SEG entirely. Remember that high-priority MX record pointing directly to M365 or Google Workspace? An attacker can simply configure their mail server to ignore the priority 10 record and send their malicious email directly to the priority 100 host.

This shouldn't work. A properly configured email environment will have a transport rule or connector that strictly enforces that all inbound external mail must originate from the SEG's designated IP addresses. Any external mail attempting to arrive from another IP is rejected. But you would be astonished at how many organizations get this wrong. A missing or misconfigured rule is a golden ticket for an attacker, making that expensive SEG investment completely worthless for any threat actor who does their homework.

Crafting Payloads That Evade Known Filters

Even if the direct delivery route is locked down, fingerprinting the SEG is still invaluable. Attackers maintain private and public lists of techniques effective against specific vendors. If Proofpoint is detected, they might try a campaign using malicious links hosted on services like SharePoint or Dropbox, aiming to abuse trust. If Mimecast is detected, they might leverage a technique involving complex URL redirects or a specific file type that their sandbox has historically been slow to detonate. This is a constant cat-and-mouse game, and knowing the cat's make and model is a huge advantage for the mouse.

What Are Your MX Records Saying About You?

Go ahead. Run `dig mx yourdomain.com` right now. What story does it tell? Do you see the clear signature of a SEG? Is that intentional?

The information leakage from the MX record itself is mostly unavoidable if you use a SEG. Trying to hide it with complex CNAMEs is just security by obscurity and rarely fools a determined party. The real action item is to mitigate the risk that this information exposes.

Audit Your Inbound Connectors

First and foremost, verify that your mail environment (M365 or Google Workspace) is configured to accept mail ONLY from your SEG's IP ranges. This is non-negotiable. If an attacker can deliver mail directly to your backup MX target, your SEG is a pointless, expensive speed bump. This single misconfiguration is responsible for an incredible number of successful phishing campaigns that should have been blocked.

Don't stop at MX. Check your SPF record in your TXT records, defined in RFC 7208. Does it contain an `include:` that names your SEG, like `include:_spf.proofpoint.com`? That's another public confirmation of your vendor. It's necessary for legitimate mail flow, but it's one more piece of the intelligence puzzle you are broadcasting to the world.

The takeaway

Your public DNS records are just that: public. They are not secrets, and any determined adversary will read them. The presence of a SEG in your MX records is a powerful signal, inviting attackers to try specific bypass techniques or, worse, to circumvent the SEG entirely by targeting a misconfigured backup mail route.

The defense isn't to obscure your MX records, but to harden the environment they point to. Assume the attacker knows your stack. Now, what are you going to do about it? Confirming this configuration is locked down requires more than a DNS lookup; it demands a deep analysis of message headers to trace the actual mail path. When you're ready to verify what your DNS promises, tools like MailSleuth.AI can parse the `Received` and `Authentication-Results` headers from a delivered message to map its true journey through the internet's mail servers.

#mx-records#email-security#phishing#threat-intelligence#secure-email-gateway#red-team
MailSleuth Research
Email Security Team

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