Analysis · Overview

Email headers: how to read a message’s headers to reconstruct its route and verify its authenticity

How email headers are analysed in digital forensics: Received lines read from the bottom, Message-ID, Date and time zones, Return-Path and Reply-To, SPF, DKIM and DMARC results, ARC, Italian certified email headers, procedure, tools, mistakes, value in court, a case of an altered message, checklist and frequently asked questions.

Beneath the text of every email there is a part that mail programs hide: the headers. They contain the declared sender and the recipient, but above all the message’s route: every server it passes through adds a line with its own name, the address it received the message from, the date and the time, like a postmark. Next to them are the message’s unique identifier and the results of the authenticity checks carried out on arrival.

For a forensic expert, headers are often the decisive evidence. They show whether an email really left from the domain it claims, whether it was altered after sending, and whether the times one party describes are compatible with those recorded by the servers. But they must be read methodically: some lines are reliable, others could have been written by anyone.

RFC 5322the standard defining the format of email messages and their headers
2007year of the first DKIM specification, the domain signature protecting a message’s text and headers
2024year from which Gmail and Yahoo require SPF, DKIM and DMARC from bulk senders

What headers tell you

Route
Received lines show the servers passed through, with date and time.
Declared identity
From, Reply-To and Return-Path state who claims to have written and where replies go.
Identifier
The Message-ID distinguishes the message from all others and is generated by the sending system.
Timing
Date and Received allow you to reconstruct when the message was sent and received.
Authentication
SPF, DKIM and DMARC results recorded by the recipient’s server.
Program used
Fields such as User-Agent or X-Mailer sometimes reveal the sender’s software.

To acquire the message correctly see email acquisition, for converting times dates and time zones; the basic entries are email headers and Message-ID.

Email headers

The pages of this topic

01 How it works

Email headers: how they work

How email headers work: fields written by the sender’s program and fields added by servers, Received lines read from the bottom up, envelope and visible headers, SPF, DKIM, DMARC and ARC, Italian certified email headers, what can be forged.

02 Step-by-step procedure

Email headers: analysis procedure

The procedure for analysing email headers: acquiring the original message, computing the hash, extracting the headers, reconstructing the route, converting times, verifying DKIM and preserving the key, checking identifiers and addresses, comparing with other copies, writing the report.

03 Tools

Email headers: tools

The tools for reading and verifying email headers: mail program features, header analysers, command-line DKIM verification, DNS queries, IP address registries, caution with online services.

04 Pitfalls to avoid

Email headers: mistakes to avoid

The most common mistakes in header analysis: trusting From, reading Received lines from the top, believing every line, ignoring time zones, working on printouts or forwards, verifying DKIM too late, mistaking SPF for authenticity, treating a failed DKIM as proof of forgery.

05 Value in court

Email headers: value in court

The value of email headers in proceedings: original file and printouts, disowning, proof of integrity through DKIM, results of checks on arrival, certified email receipts, limits in attributing a message to a person, provider data.

06 Case study

Email headers: a case

A guided case: in a commercial dispute an email confirming a discount is disowned; Message-ID, Received lines, results of checks on arrival and a fresh DKIM verification show the message was sent, but its text changed after receipt.

07 Checklist

Email headers: checklist

The checklist for the forensic analysis of email headers: acquiring the original file, reconstructing the route, DKIM verification with key preservation, checks on identifiers and addresses, conclusions and attachments.

08 FAQ

Email headers: frequently asked questions

Short answers to the most common questions about email headers and their use as evidence.

↑