IGRS Intel Grid Research Station LogoIGRS
Intel Grid Research Station
How to Analyze Email Headers

How to Analyze Email Headers: Trace the Sender & Spot Spoofing (Step by Step)

Almost every phishing case, fraudulent invoice and impersonation complaint starts with one artefact: an email. The visible From line is the easiest part of an email to fake, so the real story lives in the headers — the metadata trail that records where the message came from, every server it passed through, and whether it survived authentication. This guide walks through reading that trail end to end: extracting the raw headers, following the relay chain to the originating IP, interpreting SPF, DKIM and DMARC, and recognising the patterns that betray a spoof. You can follow along live with the free, in-browser IGRS Email Header Analyzer.

Step 1 — Get the raw headers

You need the full, unrendered header block, not just what the mail client shows by default.

Paste the block into the analyzer, or read it manually using the steps below.

Step 2 — Read the Received chain from the bottom up

Each mail server that handles a message stamps a Received: line at the top of the header block. That means the list is in reverse chronological order: the lowest Received line is the earliest hop — usually closest to the true origin — and the topmost is your own inbox server. Reverse the order mentally (the analyzer does this for you and numbers the hops oldest-first) and note three things at each hop: the sending host (from), the receiving host (by), and the timestamp. Unusual gaps between timestamps, or a first hop from a network that has nothing to do with the claimed sender, are worth a closer look.

Step 3 — Identify the originating IP

Walk up from the bottom and take the first public IP address you encounter — private ranges such as 10.x, 192.168.x and 172.16–31.x are internal and can be skipped. That earliest public IP is your best candidate for where the message actually entered the mail system. Treat it as a strong lead, not a verdict: large providers, relays and forwarders can sit in front of the true sender. Profile it further — network owner, hosting vs residential, abuse history — with the IGRS IP Lookup.

Step 4 — Check authentication: SPF, DKIM, DMARC

Modern mail servers record their verdicts in an Authentication-Results: header. The three checks answer different questions:

CheckWhat it provesA “fail” suggests
SPFThe sending IP is authorised to send for the envelope domainMail sent from an unlisted server (spoof, or a forwarder)
DKIMThe message carries a valid cryptographic signature and was not alteredTampering, or an unsigned/forged message
DMARCSPF/DKIM align with the visible From domain, under the domain’s policyStrong indicator of spoofing or unaligned sending

A DMARC fail on a message claiming to come from a bank or government domain is one of the clearest red flags you will find. Be aware, though, that legitimate mailing lists and forwarding can break SPF or DKIM, so weigh authentication against the rest of the evidence rather than treating one failure as conclusive.

Step 5 — Hunt for spoofing red flags

Beyond authentication, three header-level patterns frequently expose impersonation:

A worked example

Consider a message whose visible From is "YourBank Security" <[email protected]>, but whose headers show Return-Path: [email protected], Reply-To: [email protected], an Authentication-Results line reading spf=fail; dkim=none; dmarc=fail, and an earliest public hop from 198.51.100.23. Every signal points the same way: the envelope and reply domains do not match the displayed bank domain, all three authentication checks fail, and the entry point is an unrelated server. This is a textbook spoof, and the originating IP is the lead to profile and preserve. Pasting these exact headers into the analyzer returns a HIGH RISK verdict with each of these flags itemised.

From finding to evidence (India)

Header analysis routinely underpins action under Indian law. Sending an email while impersonating another person or brand can attract Section 66D of the IT Act, 2000 (cheating by personation using a computer resource) and Section 319 of the Bharatiya Nyaya Sanhita, 2023 (cheating by personation), with Section 318 BNS covering the underlying cheating where money is lost. To trace the sender’s network, the originating IP supports a production request to the relevant provider under Section 94 of the Bharatiya Nagarik Suraksha Sanhita, 2023. Crucially, when the headers or the analysis are to be relied on in a proceeding, preserve the original message and accompany any electronic record with a certificate under Section 63 of the Bharatiya Sakshya Adhiniyam, 2023. Where the incident qualifies, report to CERT-In within the prescribed timelines.

▸ TRY IT NOW

Paste a suspicious email’s headers into the free IGRS Email Header Analyzer — it runs entirely in your browser, surfaces the originating IP, relay path, SPF/DKIM/DMARC and spoofing flags, and never uploads your data.

Free IGRS tool. Found the originating IP in the headers?
  • IP & ISP Lookup — find the ISP, ASN, WHOIS range, abuse contact and location of an IP, with VPN and Tor checks.
  • VPN & Tor IP Checker — paste up to 1,000 IPs and see which are NordVPN, Proton VPN, Mullvad, Surfshark and other VPN servers or Tor exits.
Keyless, open data, runs in your browser. Guide: how to check whether an IP is a VPN, proxy or Tor.

Frequently Asked Questions

Can you find the real sender of an email from its headers?
Often, yes — the Received chain records each server that handled the message, and the earliest public IP is usually closest to the true origin. Large providers, relays or anonymisation can obscure this, so treat the originating IP as a strong lead rather than absolute proof.
What do SPF, DKIM and DMARC failures mean?
SPF validates the sending IP against the domain's authorised senders, DKIM verifies a signature over the message, and DMARC ties both to the visible From domain. A fail — especially DMARC — strongly suggests spoofing or forwarding abuse, though legitimate mailing lists can also break SPF.
Is analysing email headers legal?
Analysing the headers of an email you have lawfully received is legal and is a standard investigative step. Acting on the findings — such as accessing third-party systems — requires proper authorisation.
Does the IGRS Email Header Analyzer upload my email?
No. It runs entirely in your browser using client-side JavaScript; the headers you paste are never sent to or stored on any server, which makes it safe for sensitive case material.