.eml file
A file that stores one complete email, headers and body, as plain text in the standard internet message format.
In more detail
Saving a suspicious message as an .eml file keeps every header, which a mail program's normal view hides. The file can be opened in a text editor or parsed by a program. It is a common way to hand a phishing sample to a security team as evidence.
Example
with open("invoice.eml", "rb") as f:
msg = BytesParser(policy=policy.default).parse(f)Related terms
- email header — The lines at the top of an email that record who sent it, who it is for, where replies and bounces go, and what checks it passed on the way.
- Authentication-Results header — An email header added by the receiving mail server that records whether the message passed sender checks such as SPF, DKIM and DMARC.
- evidence — The records, files and outputs that show a control really exists and works, collected so that someone else can check it.
Taught in
- Social Engineering, Phishing & Human Defense — Cybersecurity Fundamentals, GRC & Cryptography
- Data Loss Prevention & Egress Monitoring — Cybersecurity Fundamentals, GRC & Cryptography