Free tech learning for everyone, from basics to pro

Digital ForensicsCyber SecurityIntermediate

Email forensics: reading headers, SPF, DKIM and DMARC results to trace a message

In short: Email forensics examines a message's headers, content and the logs around it. Investigators export the original message, read Received headers from the bottom up, check SPF, DKIM and DMARC results, compare From, Reply-To and Return-Path, and analyse links and attachments safely. Message traces and mailbox audit logs show who received and opened it.

Why emails need forensic examination

Email is the starting point of many incidents: phishing, business email compromise, fake invoices and malware. Investigators need to answer questions such as: who really sent this, did it pass security checks, who else received it, and did anyone click or reply? What the user sees in their inbox is only a small part of the story. The full message, with its headers, holds much more. The response side is covered in responding to phishing.

Getting the original message

Forwarding a suspicious email to IT changes its headers and can strip attachments. Instead, export the original message (for example "Show original" in Gmail or "View message source" or saving as an .eml or .msg file in Outlook), or collect it directly from the mail system using admin tools. Record a hash of the file and note who collected it and when, following normal chain of custody practice.

How an email travels, and where it leaves tracesSender'sclientcomposesmessageSendingserveradds ReceivedlineRelayseach adds alineReceivingserverchecks SPF,DKIM, DMARCRecipient'smailboxstores message
Figure 1. Each server adds a "Received" header, so the path can be read from the bottom up.

Reading the headers

Key email headers for investigatorsFromclaimed sender, easy to fakeReturn-Pathwhere bounces goReply-Towhere replies goReceivedservers on the pathAuthentication-ResultsSPF, DKIM, DMARCMessage-IDunique message ID
Figure 2. A mismatch between From, Reply-To and Return-Path is a classic sign of a spoofed or phishing email.
  • Received lines are added by each server; the bottom one is closest to the sender. Look for unexpected servers or countries.
  • Authentication-Results shows whether the message passed SPF (was the sending server allowed?), DKIM (is the signature valid?) and DMARC (do these line up with the visible From domain?). These are explained in DMARC, SPF and DKIM explained.
  • Compare From with Reply-To and Return-Path. A reply address at a free email service on a "supplier" message is a strong warning sign.
  • A message that passes every check can still be malicious if it came from a genuinely compromised account, so headers are one piece of evidence, not the whole answer.

Links, attachments and logs

Never open suspicious links or attachments on a normal computer. Extract URLs as text, check them in reputation services, and open attachments only in an isolated sandbox. Calculate file hashes to search for the same file elsewhere. Then use mail system tools: a message trace shows every recipient of the same message, and mailbox audit logs show actions such as opening, forwarding, deleting or creating inbox rules. Malicious forwarding rules are a common sign of a compromised mailbox. For hands-on practice, try the phishing analysis lab.

Real-world example: the changed bank details

A fictional construction company pays a large "supplier" invoice with new bank details, and the real supplier later says they never sent it. The investigator exports the original email. The From address shows the supplier's real domain, but the Reply-To points to a look-alike domain registered a week earlier, and DMARC failed because the supplier had no enforcing DMARC policy. A message trace finds the same email sent to the finance team only. Mailbox audit logs show no compromise of the company's own accounts. The evidence supports a spoofing attack, helps the bank's fraud team, and leads the company to require phone verification for any change of bank details.

Practice

Why should you not just forward a suspicious email to IT?
Forwarding changes the headers and may strip attachments; the original message should be exported or collected instead.
In which order should Received headers be read?
From the bottom up, because the bottom line is closest to the original sender.
What does a DMARC fail tell you?
The message did not properly align with the visible From domain's SPF or DKIM, so the sender may be spoofed.

Key takeaways

  • Export the original message rather than forwarding it.
  • Read Received headers from the bottom up to trace the path.
  • Check SPF, DKIM and DMARC results and compare From, Reply-To and Return-Path.
  • Analyse links and attachments only in isolated environments.
  • Message traces and mailbox audit logs show the wider impact.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: