How to read email headers (and spot a fake email)
The sender name and address you see at the top of an email are easy to fake. They're just text the sender typed in. The headers underneath are much harder to fake convincingly, because servers you don't control add them along the way. Learning to read a few key lines tells you where a message really came from.
How to see an email's headers
- Outlook (desktop): open the message, then File → Properties, and copy the "Internet headers" box.
- Outlook on the web / new Outlook: open the message, click the three dots → View → View message source.
- Gmail: three dots → Show original, then "Copy to clipboard".
- Apple Mail: View → Message → All Headers.
- Thunderbird: View → Message Source.
It looks like a wall of jargon at first, but you only need a handful of lines.
The headers that matter
From
The sender you see in your inbox. It has two parts: a display name ("PayPal Security") and the actual address (service@paypal.com). Scammers often set a convincing display name with a completely unrelated address behind it, and many mail apps only show the name. Always look at the address itself.
Reply-To
If present, this is where your reply actually goes. A message "from" your bank with a Reply-To at a free-mail address is a big warning sign. (Mailing lists and helpdesk systems use a different Reply-To legitimately, so it's a clue rather than proof.)
Return-Path
The hidden "envelope" address where bounces go. It's often different from the From address for mail sent through newsletter services, which is normal, but it shows which system really sent the message.
Received
Every server that handles a message adds a Received line at the top, so you read
them from the bottom up: the lowest one is the sender's server, and the top one is your own provider
accepting it. Each line says which server passed it on, which one received it, and when.
The timestamps also show where delays happened, which is useful when an email arrives hours late. The analyser lists the hops in order with the delay at each one.
Authentication-Results
The most useful line of all. Your provider records here whether the message passed three checks:
- SPF: was it sent from a server the sender's domain authorises?
- DKIM: does it carry a valid signature from the sender's domain, so it wasn't altered?
- DMARC: do those checks line up with the domain in the From address?
dmarc=pass is the strongest sign that a message really comes from the domain it claims.
dmarc=fail on a message claiming to be from a bank, a delivery company or your own employer should make
you very suspicious. Our guide to SPF, DKIM and DMARC explains them in
more detail.
Message-ID
A unique reference created by the sending system, usually ending with that system's domain. A message claiming to be from a big company whose Message-ID ends in an unrelated domain is another clue.
Spam filter headers
Lines starting X- are added by individual systems. Two worth knowing: Microsoft 365 adds
X-MS-Exchange-Organization-SCL, a spam score from -1 to 9 (5 or more means it judged the message to be
spam), and SpamAssassin-based filters add X-Spam-Status and X-Spam-Score.
Spotting a fake: a quick checklist
- DMARC failed, or SPF and DKIM both failed, for a well-known company's domain.
- The address doesn't match the name, such as "HMRC" from refunds.hmrc@gmail.com.
- A lookalike domain: paypa1.com, micros0ft-support.com, or extra words like amazon-account-verify.com. Read the domain carefully, letter by letter.
- Reply-To on a different domain, especially a free-mail address.
- The first server has nothing to do with the sender. A "bank" email whose first hop is a cheap web server abroad. Use the analyser's IP links to look up who owns the sending server.
- Pressure and urgency in the message itself: "your account will be closed in 24 hours", "pay this invoice today".
What headers can't tell you
- Hacked accounts pass every check. If a scammer has broken into a real mailbox, a supplier's say, their emails come from the genuine account and pass SPF, DKIM and DMARC. This is how fake "our bank details have changed" invoices work. If an email asks you to pay money somewhere new, confirm by phone using a number you already have, never one in the email.
- The lowest lines can be invented. A sender can add fake
Receivedlines below their real server. The trustworthy part starts at the first server you know is genuine (the one your own provider recorded as handing over the message). - Headers don't check links or attachments. A message can pass every check and still link to a malicious website. Hover over links before clicking, and be wary of unexpected attachments.
Found a fake? What to do
- Don't click links, open attachments or reply.
- At work, report it to your IT team or use the "Report phishing" button if you have one, as others have probably received it too.
- In the UK, forward it to the National Cyber Security Centre at report@phishing.gov.uk. They check every report and take down scam websites.
- If you've already clicked or entered details, change that password straight away (and anywhere else you used it), and contact your bank if you entered card or payment details.