Email

Email Headers: How to Read Them

Learn to open full headers, trace a message's route, check authentication results and spot the signs of a forged sender.

Key takeaways

  • Headers are name and value pairs; some are written by the sender and some by the servers that handled the message.
  • Each server adds its own Received line at the top, so read the route from the bottom upward.
  • Trust the lines added by your own provider; anything below them could have been invented by the sender.
  • Authentication-Results summarizes the SPF, DKIM and DMARC checks and which domains they applied to.
  • A passing check proves a domain's involvement, and says nothing about whether the message is honest.

Email headers are the lines of technical information above a message's body. They record who the message claims to be from, which servers handled it, when each one did so and whether authentication checks passed. To investigate a suspicious or late message, open the full headers and read three things: the Authentication-Results line, the Received lines from bottom to top, and the addresses in From, Reply-To and Return-Path.

Your mail app hides most of this by default. Once you know where to look, a wall of text becomes a fairly readable logbook.

How to open the full headers

Menu names vary by version, but the options are usually found here:

Where you read mail What to look for
Webmail A menu on the open message with "Show original" or "View source"
Outlook desktop The message's properties or details window, under internet headers
Apple Mail on Mac The View menu, under Message, then all headers or raw source
Thunderbird View source for the selected message
Phone apps Often unavailable; open the message in webmail instead

When you need to send headers to a support team, use the raw source or save the message as an .eml file. Forwarding the message the ordinary way replaces most of the original headers with new ones.

Be aware that headers contain addresses, server names and sometimes IP addresses. Remove anything private before pasting them into a public forum.

The basic shape

Each header is a field name, a colon and a value. A long value can continue onto following lines that begin with a space or tab. The headers end at the first empty line. The overall format is defined in RFC 5322.

Return-Path: <[email protected]>
Received: from mail.example.net (mail.example.net [203.0.113.25])
        by mx1.example.com with ESMTPS id 7GH2K
        for <[email protected]>; Sat, 05 Dec 2026 14:02:11 +0000
Authentication-Results: mx1.example.com;
        spf=pass smtp.mailfrom=mail.example.net;
        dkim=pass header.d=example.net;
        dmarc=pass header.from=example.net
Received: from app01.internal (app01.internal [10.0.4.8])
        by mail.example.net with ESMTP id 99XY1;
        Sat, 05 Dec 2026 14:02:07 +0000
Date: Sat, 05 Dec 2026 14:02:06 +0000
From: Billing <[email protected]>
To: [email protected]
Reply-To: [email protected]
Message-ID: <[email protected]>
Subject: Your monthly statement
Key header fields and what they tell you
From: 1 Return-Path: 2 Reply-To: 3 Received: 4 Authentication-Results: 5 Message-ID: 6 Displayed author What your app shows. The sender's software writes it. 1 Bounce address Taken from the envelope sender at final delivery. 2 Reply target Where your answer goes if it differs from From. 3 Route log One entry per handling server, newest on top. 4 Check results The receiver's SPF, DKIM and DMARC verdicts. 5 Identifier A unique label used for threading and log searches. 6 From: 1 Return-Path: 2 Reply-To: 3 Received: 4 Authentication-Results: 5 Message-ID: 6 Displayed author What your app shows. The sender's software writes it. 1 Bounce address Taken from the envelope sender at final delivery. 2 Reply target Where your answer goes if it differs from From. 3 Route log One entry per handling server, newest on top. 4 Check results The receiver's SPF, DKIM and DMARC verdicts. 5 Identifier A unique label used for threading and log searches. 6

Who wrote which line

The most useful habit is asking who could have written each field.

The sender's software writes From, To, Subject, Date, Reply-To and usually Message-ID. Any of these can contain whatever the author chooses.

Servers add Received lines and similar trace information as they handle the message. Your provider adds its own Received lines and its authentication verdicts when the mail arrives. A good receiving system also removes or distrusts any pre-existing verdict that claims to be from itself.

So work from the top down when deciding what to trust. The top entries were added last, by your own provider. The moment the trail leaves systems you trust, everything below is a claim.

Reading the Received chain

Because each server inserts its line above the earlier ones, the oldest hop is at the bottom. A typical entry states:

  • from: the name the connecting machine gave, often followed in parentheses by what the receiver observed, including the IP address.
  • by: the server that accepted the message.
  • with: the protocol, where ESMTPS indicates SMTP over an encrypted connection and an A indicates the client authenticated.
  • id: a queue identifier useful for searching logs.
  • A timestamp, with a time zone offset.

The name after from is whatever the connecting machine announced. The IP address in brackets, recorded by the receiving server, is harder to fake. If a line on your own provider's server shows a connection from an address unrelated to the claimed sender, that is meaningful.

Finding delays

Convert the timestamps to one time zone and subtract neighbors, working upward. In the example above, four seconds separate the two hops. A gap of an hour between two lines means the message waited at that point, perhaps in a retry queue or a security scanner. The timestamp converter can help line up offsets. Server clocks are occasionally wrong, so a small negative gap usually means a clock problem.

How to investigate a message
1 Open the raw source Get the original headers, not a forwarded copy. 2 Check the verdicts Find your provider's authentication results near the top. 3 Compare addresses Look at From, Reply-To and Return-Path domains. 4 Walk the route Read Received lines bottom up and note timestamps. 5 Decide Act on the weight of evidence, and verify by another channel. Open the raw source Get the original headers, not a forwarded copy. 1 Check the verdicts Find your provider's authentication results near the top. 2 Compare addresses Look at From, Reply-To and Return-Path domains. 3 Walk the route Read Received lines bottom up and note timestamps. 4 Decide Act on the weight of evidence, and verify by another channel. 5

Understanding Authentication-Results

This header, standardized in RFC 8601, records what the receiving system checked.

  • spf=pass smtp.mailfrom=... means the connecting server was authorized by the envelope sender's domain. That domain may differ from the visible From. See SPF explained.
  • dkim=pass header.d=... means a signature verified using a key published by the d= domain. There can be several signatures. See DKIM explained.
  • dmarc=pass header.from=... means at least one of those passing checks matches the domain in the visible From. This is the strongest line of the three. See DMARC explained.

Other values include fail, softfail, neutral, none, temperror and permerror. none generally means the domain published nothing to check. temperror suggests a passing problem such as a DNS timeout.

You may also see ARC- headers. These let an intermediary such as a mailing list record what the results were before it altered or forwarded the message. A receiver decides whether to trust that record.

Which domain passed matters

A line can be full of the word "pass" and still tell you very little. Compare each reported domain with the one in the visible From.

What you see What it means
dmarc=pass header.from=example.com The visible domain is backed by an aligned SPF or DKIM pass
spf=pass for a different domain, no aligned DKIM Some server was allowed to send for its own domain, not for the one shown
dkim=pass header.d= a mailing service only The service signed it; the visible domain did not
dkim=fail with dmarc=pass SPF carried the result, or another signature did
dmarc=none or no DMARC entry The visible domain publishes no policy to evaluate

A pass with alignment tells you the domain owner's infrastructure, or someone with access to it, was involved. You still have to ask whether that domain is the one you expected.

A worked example

Say you receive the sample message above, which claims to be a monthly statement. Reading it in order goes like this.

First, the verdicts near the top were written by mx1.example.com, your own receiving server, so you can rely on them. SPF, DKIM and DMARC all pass for example.net.

Second, compare addresses. From and Return-Path belong to example.net and its mail subdomain, which fits. Reply-To, however, points to example.org, a different domain. Your answer would go somewhere other than the apparent sender.

Third, walk the route. The bottom entry shows an internal application server handing the message to mail.example.net. Four seconds later your provider received it from 203.0.113.25. Nothing odd there.

The conclusion is that the message really did pass through systems authorized by example.net, and that the reply address deserves a question. If you have never heard of example.net, the clean checks only confirm that a stranger configured their domain properly. If it is your actual supplier, the mismatched reply address could be a billing platform or a compromised account, and a phone call to a known number settles it.

Other fields worth knowing

Header What it is for
In-Reply-To and References Link a reply to earlier messages for threading
Content-Type Describes the body format and attachment boundaries
Content-Transfer-Encoding Says how content is encoded, often base64 or quoted-printable
List-Unsubscribe Gives mail apps a standard way to offer unsubscribing
Auto-Submitted Marks automatically generated messages
Fields beginning X- Custom additions, often spam scores from a particular product

Spam score headers mean something only within the system that added them. A score invented by an upstream sender carries no weight.

Red flags and false alarms

Signs that deserve caution:

  1. The display name says one organization, while the address domain is something unrelated.
  2. Reply-To points to a free mailbox or a different domain from a message that asks for money or credentials.
  3. DMARC fails for a domain that normally publishes a strict policy.
  4. The domain is a near miss, with a swapped letter or an added word. The IDNA and domain label inspector helps reveal look-alike characters.

And things that are often innocent: a Return-Path on a mailing service's domain, a Reply-To pointing at a help desk system, or a failed SPF check on a forwarded message whose DKIM signature still passes.

A fraudster can register their own domain and pass every check perfectly. A compromised real account passes them too. When a request involves payments or passwords, confirm it through a contact you already know. The wider set of warning signs is in how to spot a phishing email, and the mechanics of forged senders are in email spoofing.

If you run the receiving or sending system

Headers pair with server logs. Take the Message-ID or queue id and search the mail logs to see the exact SMTP reply at each stage. When a message you sent was filtered, send a test to a mailbox you control at the same provider and compare its authentication results. Confirm that the signing domain matches your From domain, and that the connecting IP is the one you expected.

Headers rarely explain why a spam filter made its decision, since content and reputation signals mostly stay private. They do let you rule out the mechanical causes first.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Email →

Latest news on this topic