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.
Reading the headers
- 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?
In which order should Received headers be read?
What does a DMARC fail tell you?
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.
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.