How to read email headers and spot a spoofed email
The From line is easy to fake. The headers your own mail server adds aren't. Here's which lines to read, in which order, and what gives a spoofed message away.
What headers are
Every email carries a block of header lines above the message body. Some are written by the sender: From, To, Subject, Date, Reply-To and Message-ID. Others are added by each server that handles the message on its way: a Received line for every hop, and an Authentication-Results line recording the SPF, DKIM and DMARC checks.
Mail apps hide most of this. To see it, open the message's full headers: in Gmail, choose More, then Show original; in Outlook, open the message details or properties. The header analyzer has step-by-step instructions for each app.
The key rule: anything the sender wrote can say anything. Only the lines added by your own mail provider when it received the message can be trusted, because the sender doesn't control those servers.
An example: a spoofed payroll message
Here are the headers of a made-up phishing message sent to alex@example.org. It claims to come from example.com, but was really sent through a server on example.net. Newer lines are at the top, as they are in real messages.
Return-Path: <billing@bounce.example.net>
Received: from mx.example.org (mx.example.org [198.51.100.25])
by mailstore.example.org with LMTP; Tue, 3 Nov 2026 09:14:07 +0000
Authentication-Results: mx.example.org;
spf=pass smtp.mailfrom=bounce.example.net;
dkim=none;
dmarc=fail (p=REJECT) header.from=example.com
Received: from mail.example.net (mail.example.net [203.0.113.45])
by mx.example.org with ESMTPS; Tue, 3 Nov 2026 09:14:05 +0000
Received: from [192.168.1.20] (unknown [203.0.113.99])
by mail.example.net with ESMTPSA; Tue, 3 Nov 2026 09:14:02 +0000
From: "Example Payroll" <payroll@example.com>
Reply-To: <payroll.help@example.net>
To: <alex@example.org>
Subject: Updated bank details for this month's payroll
Date: Tue, 3 Nov 2026 09:14:01 +0000
Message-ID: <20261103091401.4821@mail.example.net>
Read it in this order.
1. Authentication-Results: the verdict
Start with the topmost Authentication-Results line. It was added by the server that received the message for you, here mx.example.org, the recipient's own mail server. Lower Authentication-Results lines, if any, were added earlier by other systems, sometimes by the sender's, and carry less weight.
spf=pass smtp.mailfrom=bounce.example.net: SPF passed, but forexample.net, the attacker's domain. That proves nothing aboutexample.com.dkim=none: the message wasn't signed.dmarc=fail (p=REJECT) header.from=example.com: nothing authenticated the From domain. The real owner ofexample.compublishesp=reject, so this message should have been refused. If it reached the inbox anyway, the receiving server or a forwarding rule overrode the policy.
A DMARC fail on a message claiming to be from a real organization is the single strongest sign of spoofing.
2. From, Return-Path and alignment
The From address (payroll@example.com) is what you see in your inbox. The Return-Path (billing@bounce.example.net) is the envelope sender that SPF checked. They're on different domains, so even a passing SPF result doesn't cover the From address. DMARC calls this a lack of alignment. Legitimate services sometimes use their own bounce domain too, but then they sign with DKIM for the From domain, so DMARC still passes.
3. Reply-To
Replies to this message would go to payroll.help@example.net, not to example.com. A Reply-To on a different domain from the From address is a classic sign of payment fraud: the attacker can't receive mail at the spoofed address, so they redirect your reply. Newsletters and helpdesks do this legitimately too, so weigh it alongside the other results.
4. Received lines: the route, read bottom to top
Each server adds its Received line at the top, so the oldest hop is at the bottom. Reading upwards:
mail.example.netreceived the message from a device at the public address203.0.113.99(on a local network as192.168.1.20).mail.example.net(203.0.113.45) handed it tomx.example.org, the recipient's server.mx.example.orgdelivered it to the mailbox store.
Mail from example.com should arrive from example.com's own mail provider. Here it came from somewhere else entirely.
Two cautions. First, only Received lines added by your own provider are trustworthy; the sender can write fake ones below them, so treat the earliest IP as a lead, not proof. Second, many large providers don't record the sender's device IP at all, so the earliest address is often just the provider's server.
The timestamps also show how long each hop took. A delay of seconds is normal. Hours can mean a queue or a retry, and a negative delay usually means one server's clock is wrong.
5. Message-ID
The Message-ID is created by the sending system and often contains its host name, here mail.example.net. A mismatch with the From domain is a weak hint on its own, because many services generate IDs under their own domain, but it fits the rest of the picture.
Red flags checklist
- DMARC fails in the topmost Authentication-Results line, for a domain that belongs to a real organization.
- SPF or DKIM pass only for a different domain than the one in From.
- Reply-To on a different domain, especially on messages about payments, bank details, gift cards or passwords.
- A display name containing another email address, such as
"ceo@example.com" <random@example.net>. Many mail apps show only the display name, so the fake address is all you see. - A route that doesn't fit the sender: a message from a company that uses Microsoft 365 arriving from an unrelated hosting provider.
- Urgency and secrecy in the message itself. Headers can't tell you everything; the content still matters.
What passing results don't prove
SPF, DKIM and DMARC prove that a message really came from the domain in its From address. They don't prove that domain is the one you think it is. A phishing message from examp1e.com (with the digit one) or example-payroll.com can pass all three checks, because the attacker owns that domain and set it up properly. Read the From domain character by character.
A pass also doesn't help if the real account was taken over. A message sent from a compromised mailbox at example.com passes everything. If a "legitimate" message asks for something unusual, confirm it through a channel you already trust, such as a known phone number.
Forwarded messages and mailing lists
Forwarding changes the route: the forwarder resends the message from its own IP address, so SPF often fails, and mailing lists that edit the message can break DKIM. Some forwarders add ARC headers (ARC-Authentication-Results, ARC-Seal) that record what they saw before forwarding. Receivers may use ARC to accept a message that fails DMARC after a trusted forwarder. If you're checking a forwarded message, look at the ARC results as well as the final verdict.
Analyze a message's headers now
Paste the headers into the header analyzer to see the verdict, alignment, Reply-To and display-name flags, and the full route with delays. It runs entirely in your browser.