Email Header Analysis: How to Check If an Email Is Really From Who It Claims

By Published 8 min read

Short answer: Email header analysis means opening the full header (Show original in Gmail, View message details or Properties in Outlook) and checking the Reply-To address, the first Received line added by your provider, and the Authentication-Results for SPF, DKIM and DMARC. A passing SPF or DKIM result only matters if it is for the same domain as the visible From address.

The name and address you see at the top of an email are whatever the sender chose to type. The header underneath, which most people never open, records how the message actually travelled and whether the receiving mail server could verify it. For anyone who handles payments, a few minutes with the header can be the difference between paying a real supplier and paying a fraudster.

The stakes are not small. The FBI's Internet Crime Complaint Center reported in September 2024 that business email compromise, in which criminals impersonate suppliers, executives or partners to redirect payments, accounted for more than 55 billion US dollars in exposed losses worldwide between October 2013 and December 2023. This guide shows you how to open and read a header in Gmail and Outlook, what the important lines mean, and walks through a fake-invoice example.

How do you view the full email header?

Gmail (browser)

  1. Open the email.
  2. Next to Reply, click More (the three dots), then Show original.
  3. The full header opens in a new tab. Use Copy to clipboard to copy it, and keep the original email in the mailbox.

Google also offers a free analyser in its Admin Toolbox (Messageheader), where you can paste the header to see the hops laid out.

Outlook

  • New Outlook and Outlook on the web: open the message, select the More actions (three dots) menu, then View and View message details.
  • Classic Outlook for Windows: double-click the message to open it in its own window, then File and Properties. The header is in the Internet headers box. Copy it into Notepad to read it comfortably.

Which header lines matter?

A raw header is long and intimidating, but only a handful of fields answer the question "is this really from who it claims?"

FieldWhat it tells youCan the sender fake it?
FromThe address shown to youYes, freely
Reply-ToWhere your reply will actually goYes, and fraudsters use it
Return-PathThe envelope sender (bounce address) used in the SMTP conversation; this is the domain SPF checksSet by the sending system
ReceivedOne line added by each server that handled the messageThe lines added by your own provider's servers are reliable; lower lines can be forged
Authentication-ResultsThe receiving server's verdict on SPF, DKIM and DMARCThe one added by your own provider is trustworthy
DKIM-SignatureA cryptographic signature; the d= value names the signing domainOnly someone with the domain's private key can produce a valid one
Message-IDAn identifier assigned when the message was created; often hints at the sending systemYes

Reading Received lines

Each mail server that handles a message adds a Received line at the top. So you read them from the bottom up to follow the journey from sender to you. Each line typically says "from [server] by [server] with [protocol]; [date]". Start from the top and work down through the lines added by your own provider (Google or Microsoft servers) until you reach the first server outside it: that is the machine that handed the message to your provider, and it is the most reliable clue to the true origin. Lines below that point were added by systems you cannot verify and may be invented.

Reading SPF, DKIM and DMARC results

The Authentication-Results field, defined in RFC 8601, is added by a receiving mail server to report the outcome of authentication checks. It looks like this:

Authentication-Results: mx.google.com; spf=pass smtp.mailfrom=...; dkim=pass header.d=...; dmarc=pass header.from=...

  • SPF checks whether the server that sent the message is authorised by the domain in the envelope sender (Return-Path). Results include pass, fail, softfail and neutral, among others.
  • DKIM checks a cryptographic signature. A pass means the signed parts of the message were not altered and the signature belongs to the domain in d=.
  • DMARC, defined in RFC 7489, ties these to the visible From address. A message passes DMARC only if SPF or DKIM passes for a domain that aligns with the From domain. A domain owner publishes a policy of none (monitor only), quarantine or reject for messages that fail.

The key insight: SPF and DKIM can both pass for a completely different domain. A fraudster sending from their own lookalike domain will get spf=pass and dkim=pass for that domain. That is why you must check which domain passed, not just the word "pass", and why DMARC alignment matters.

Worked example: the fake invoice

Here is a typical business email compromise pattern. The names, domains and addresses below are illustrative. Your accounts team receives this:

From: "Ravi Kumar, Accounts" <accounts@supplier-example.in>

The email says the supplier's bank account has changed because of an "audit", attaches a PDF invoice with new bank details, and asks for payment today. The display name and signature match the real contact. Here is what the header shows, with the noise removed:

Reply-To: ravi.accounts.supplier@freemail-example.com

Return-Path: <billing@supp1ier-example.in>

Authentication-Results: mx.google.com; spf=pass smtp.mailfrom=supp1ier-example.in; dkim=pass header.d=supp1ier-example.in; dmarc=fail header.from=supplier-example.in

Received: from mail.supp1ier-example.in (203.0.113.45) by mx.google.com ...

Reading it step by step:

  1. Reply-To differs from From. Any reply, including your "please confirm the new account", goes to a free webmail address. This alone justifies stopping.
  2. The envelope domain is a lookalike. "supp1ier" uses the digit 1 in place of the letter l. Lookalike domains also use extra hyphens, swapped letters, or a different ending.
  3. SPF and DKIM pass, but for the lookalike. The fraudster set up email authentication correctly on their own domain. The passes prove nothing about the real supplier.
  4. DMARC fails for the real domain. The visible From domain did not align with any authenticated domain. If the real supplier had published a reject policy, this message might have been blocked outright; here it got through, which suggests their policy is none or quarantine.
  5. The first external Received line shows the true sending server, which belongs to the lookalike domain, not the supplier's usual mail provider.

Verdict: fraudulent. The right response is not to reply to the email. Phone the supplier on a number you already have on file, not one in the email, and confirm whether their bank details have changed.

A quick checklist for finance teams

  • Does Reply-To match From? If not, why?
  • Read the sender domain letter by letter. Compare it with earlier genuine emails from the same supplier.
  • In Authentication-Results, which domain passed SPF and DKIM? Does DMARC pass for the From domain?
  • Has the first external Received line changed compared with the supplier's earlier emails?
  • Is the email asking for a change of bank details, urgency, or secrecy? Treat that as a reason to verify by phone, whatever the header says.

Limits of header analysis

Header analysis catches spoofing and lookalike domains well. It does not catch a genuinely compromised mailbox: if a criminal has logged into your supplier's real account, the email will pass every check because it really did come from their system. That is why the strongest control is procedural. Never change payment details on the strength of an email alone; verify through a known phone number, and require a second person to approve changes. The FBI's advisory makes the same point: verify changes in account information through secondary channels or two-factor authentication. If a fraudulent payment has already gone, contact your bank immediately to request a recall, and in India, report it on 1930.

Protect your own domain too

Fraudsters can just as easily pretend to be you to your customers. Publish SPF and DKIM for every system that sends mail as your domain, then move your DMARC policy from none to quarantine and eventually reject once legitimate mail is confirmed to pass. Email authentication is worth checking as part of any security testing and remediation exercise.

How Cehpoint can help

If your company has paid a fake invoice or suspects a mailbox compromise, our cyber crime investigation team can investigate with court-admissible digital forensics, looking at headers, mailbox audit logs and login records to establish whether the email was spoofed or sent from a compromised account, and preserving the evidence properly. To detect and respond to threats on an ongoing basis, see our managed SOC and detection and response service.

Frequently asked questions

Can an email pass SPF and DKIM and still be fake?

Yes. SPF and DKIM only show that a message was authorised or signed by some domain. A fraudster using a lookalike domain can set both up correctly and pass. What matters is whether the authenticated domain aligns with the visible From address, which is what DMARC checks. A genuinely compromised mailbox will also pass all three checks, so verify payment changes by phone.

Can I find the sender's IP address from the header?

Usually you can find the IP address of the server that handed the message to your provider, in the first external Received line. With webmail services the sender's own device IP is often not included. A server IP can point to a hosting provider or mail service, but identifying the person behind it normally needs records that only the police can obtain from the provider.

What does Reply-To mean in an email header?

Reply-To tells your email program where to send replies. Legitimate senders use it for help desks or mailing lists, but fraudsters use it to make an email appear to come from a real person while replies go to an address they control. If Reply-To differs from the From address on an email about payments, treat it as a warning and verify independently.

Is email header analysis enough evidence for a police complaint?

It is useful supporting evidence. Keep the original email in the mailbox and save a copy of the full header (from Show original in Gmail, or the message details in Outlook) rather than forwarding it, because forwarding loses header details. Include the header, the fake invoice and the payment details in your complaint. For a company, mailbox audit logs and login records usually make the case much stronger.

Need help with this?

Tell us what you are dealing with. We reply with a plain plan, and where it makes sense, a working demo before you commit.