Email headers: frequently asked questions
Short answers to the most common questions about email headers and their use as evidence.
Can email headers be forged?
In part, yes: a sender can write anything in the sender fields and even invent Received lines. They cannot, however, forge the lines added by the recipient’s servers or a valid DKIM signature.
Do headers reveal the sender’s IP address?
Sometimes: some providers include it, many webmail services do not. In any case an IP address leads to a connection, not directly to a person.
Is a printout of an email with its headers enough?
It is better to produce the original file with its hash: a printout can be disowned and does not allow the checks to be repeated.
What does it mean if DKIM verification fails?
That the message changed after signing or that the key is no longer available. Before speaking of forgery, forwarding, mailing lists and filters that modify messages must be ruled out.
For how long can a DKIM signature be verified?
As long as the domain publishes the key used, which is usually replaced after months or years. That is why it must be saved straight away.
Are certified email headers different?
Yes: the message arrives in an envelope signed by the provider, with headers indicating the type of envelope or receipt and a file with the certification data.
The pages of this topic
Back to the overviewEmail 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.
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.
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.
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.
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.
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.
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.