---
title: "Email header analyzer"
url: "https://coldagentai.com/tools/email-header-analyzer.md"
canonical_url: "https://coldagentai.com/tools/email-header-analyzer"
last_updated: "2026-10-18"
type: "tool"
summary: "Paste raw email headers to see the delivery path, the delay at each hop, the originating IP and whether SPF, DKIM and DMARC passed. Runs in your browser."
related: ["https://coldagentai.com/tools.md", "https://coldagentai.com/tools/dkim-checker.md", "https://coldagentai.com/tools/spf-checker.md", "https://coldagentai.com/tools/dmarc-checker.md", "https://coldagentai.com/tools/mx-lookup.md", "https://coldagentai.com/tools/email-blacklist-checker.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# Email header analyzer

> **For AI agents:** the complete index of ColdAgentAI pages is [llms.txt](https://coldagentai.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Paste raw email headers to see the delivery path, the delay at each hop, the originating IP and whether SPF, DKIM and DMARC passed. Runs in your browser.

Every email carries a block of headers that records where it came from, which servers handled it and what each server concluded about its authenticity. Most mail apps hide that block. Paste it here and this page unfolds it, lists the servers in the order the message passed through them, times each hop, finds the first public IP address and explains the SPF, DKIM and DMARC results.

The headers you paste are read by code running in this page and are never sent to our servers or anyone else.

## Inputs

- The raw header block of one message, pasted as text, up to 500 KB.
- Include the Received lines and any Authentication-Results lines. The block ends at the first blank line, so pasting a whole message is fine: the body is ignored.

## How it works

- Unfolding: a header line that starts with a space or a tab continues the line above it, so the tool joins those lines before reading anything.
- Received chain: every Received header is collected and put in reverse, because each server adds its line on top. The first row is the server that first accepted the message and the last row is the one that delivered it to the mailbox.
- Per-hop delay: the time after the last semicolon of each Received line is converted to UTC using its own time zone offset, and the gap to the previous hop is the delay. A negative gap is shown as clock skew, not as an error.
- Originating IP: the tool reads the addresses in the from part of each Received line, starting with the earliest hop, and reports the first public one. Private, loopback, link-local, shared and multicast ranges are skipped, including the IPv6 equivalents such as fd00::/8 and fe80::/10.
- Authentication-Results: each header of that name is read on its own and labelled with the server that wrote it. The tool pulls out the spf, dkim and dmarc results and the domains involved, then checks whether the domains match the visible From domain.
- Encoded words: subjects and names written as =?charset?B?...?= or =?charset?Q?...?= are decoded to readable text.

## How to get the headers from your mail app

In Gmail on the web, open the message, click More next to Reply, choose Show original, and use Copy to clipboard in the window that opens.

In classic Outlook for Windows, double-click the message so it opens in its own window, choose File and then Properties, and copy the text from the Internet headers box. In the new Outlook and in Outlook on the web, select More actions at the top of the message, then View, then View message details.

Whichever app you use, paste the result into the box above. If you are checking a message your own team sent, send a test to a mailbox at a different provider first, so that a receiving server outside your own network adds its own results.

## Reading the delivery path

Each row of the path table is one server handing the message to the next. The from column is the name the sending server gave for itself, the by column is the server that wrote the line, and the IP column shows the address the receiving server recorded, which is harder to fake than the name.

Delays of a few seconds are normal. A hop that takes minutes usually means a queue, a greylisting delay or a security gateway scanning the message. A jump of many hours often points to a retry after a temporary refusal. Look at which two servers sit either side of the long gap, because that is where the message waited.

When the path shows a private address in the first hop, that is the sender's own network. The tool then moves to the next hop to find the first public address, and tells you which hop it came from.

## Reading SPF, DKIM and DMARC

SPF checks that the server that delivered the message is allowed to send for the domain in the envelope sender. DKIM checks a cryptographic signature that the sending domain added, which proves the signed parts were not changed afterwards. DMARC asks whether at least one of those two checks passed for a domain that matches the From address a person sees.

That last step is why a message can pass SPF and still fail DMARC: a mailing service may pass SPF for its own domain while the visible From is your brand. A DMARC fail with the From domain of a bank, a payment service or your own company is the classic sign of a spoofed message or of a legitimate service that was never set up for that domain.

The result words come from RFC 8601: pass, fail, softfail, neutral, none, temperror and permerror. A temperror is a lookup problem on the receiving side, so resend a test before drawing a conclusion.

## What to do next

If your own mail fails, fix the record that failed: publish or correct the SPF record, add the DKIM key your sending platform gives you, then add a DMARC record. The generators and checkers linked below cover each one. If a message sent to you looks spoofed, do not click anything in it and report it to your mail provider.

## Worked example

Input:

```
A four-hop header block from a sending service to a Gmail-style mailbox, with an Authentication-Results header (sample shown on this page).
```

Result:

```
From: Café Sender <news@sender.example>
To: grace@example.net
Subject: Your café receipt
Date: Tue, 14 Oct 2025 18:12:30 +0200
Message-ID: <a1b2c3@sender.example>
Return-Path: <bounce@sender.example>
Originating IP: 203.0.113.25 (hop 3)
Total transit: 10s
Hop 1: [192.168.1.23] -> relay1.sender.example (ESMTPSA)
Hop 2: relay1.sender.example -> mail-out.sender.example (ESMTP), delay 5s
Hop 3: mail-out.sender.example -> mx.example.net (ESMTPS), delay 3s
Hop 4: ? -> 2002:a05:6a20:1234:b0:1d3:5c0e:6a7f (SMTP), delay 2s
Authentication-Results from mx.example.net:
  DMARC passed for sender.example: the message was authenticated by a domain that matches the visible From domain.
  SPF passed: the sending server is allowed to send for sender.example.
  1 DKIM signature passed: the signed parts were not changed after the sender signed them.
```

## Limits

- Headers can be forged. Lines below the ones added by your own mail provider come from earlier servers, and a sender can invent them. Trust the Authentication-Results added nearest the top by the provider that delivered the message to you.
- The originating IP is the address the first public-facing server saw. If the sender used a mail service, a VPN or a corporate gateway, it names that network and not a person.
- Domain matching uses the rule that two domains are related when they are the same or one is a subdomain of the other. It does not use a public suffix list, so an unusual shared suffix can look related when a strict DMARC check would disagree.
- A clock that is wrong on one server shows up as a negative or very large delay. The tool reports it and does not guess which server is right.
- Pasted headers sometimes lose lines. If the Received lines are missing the tool says so and shows what it can.

## Questions

**Is it safe to paste my email headers here?**

The analysis runs in your browser and the text is never uploaded. Headers can contain addresses, server names and message IDs, so still avoid pasting them into tools that send them elsewhere. This page does not.

**Why does my message show more than one Authentication-Results header?**

Each server that checks the message can add its own. The tool labels each one with the server name that wrote it. Trust the ones added by the provider that delivered the message to you, normally the top ones, because a sender can add fake ones lower down.

**What does a negative delay mean?**

It means the time on one hop is earlier than the time on the hop before it. Two servers have clocks that disagree, or the line was altered. It does not mean the message traveled backward, and the tool flags it as clock skew.

**Why is no originating IP shown?**

Either every address in the Received lines is private or reserved, or the lines were removed. Some providers also hide the sender's address from the headers they add. In that case the earliest public server in the path is the best clue left.

**SPF passed but DMARC failed. How?**

DMARC needs the passing domain to match the visible From domain. SPF can pass for the domain of the sending service while the From shows your brand. Fix it by aligning SPF or, more reliably, by signing with DKIM using your own domain.

**Can this tell me who sent a message?**

It shows which servers handled it and whether the sending domain was authenticated. It cannot identify a person, and the originating address may belong to a mail service or a VPN.

## Sources

- [RFC 5322: Internet Message Format (header folding and unfolding)](https://www.rfc-editor.org/rfc/rfc5322.txt) (read 2026-10-18)
- [RFC 5321: Simple Mail Transfer Protocol (the Received time-stamp line)](https://www.rfc-editor.org/rfc/rfc5321.txt) (read 2026-10-18)
- [RFC 8601: Message Header Field for Indicating Message Authentication Status](https://www.rfc-editor.org/rfc/rfc8601.txt) (read 2026-10-18)
- [RFC 2047: MIME encoded words in message headers](https://www.rfc-editor.org/rfc/rfc2047.txt) (read 2026-10-18)
- [Gmail Help: Trace an email with its full header](https://support.google.com/mail/answer/29436?hl=en) (read 2026-10-18)
- [Microsoft Support: View internet message headers in Outlook](https://support.microsoft.com/en-us/office/view-internet-message-headers-in-outlook-cd039382-dc6e-4264-ac74-c048563d212c) (read 2026-10-18)

## Related tools

- [DKIM checker](https://coldagentai.com/tools/dkim-checker.md)
- [SPF checker](https://coldagentai.com/tools/spf-checker.md)
- [DMARC checker](https://coldagentai.com/tools/dmarc-checker.md)
- [MX lookup](https://coldagentai.com/tools/mx-lookup.md)
- [Email blacklist checker](https://coldagentai.com/tools/email-blacklist-checker.md)
- [DKIM generator](https://coldagentai.com/tools/dkim-generator.md)

## Related

- [Free cold email tools](https://coldagentai.com/tools.md)
- [DKIM Checker: Find and Test a DKIM Record](https://coldagentai.com/tools/dkim-checker.md)
- [SPF Checker with Lookup Tree and Lookup Count](https://coldagentai.com/tools/spf-checker.md)
- [DMARC checker with rollout steps](https://coldagentai.com/tools/dmarc-checker.md)
- [MX Lookup: Mail Servers, Provider and Fallback](https://coldagentai.com/tools/mx-lookup.md)
- [Email blacklist checker for domains and IPs](https://coldagentai.com/tools/email-blacklist-checker.md)
