DKIM / SPF Annotated Email (EML)
An email annotated with DKIM-Signature, Received-SPF, and Authentication-Results headers (all reporting pass) — for testing email-authentication header parsing. The DKIM signature value is a sample placeholder, not real cryptography.
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Return-Path: <maya@brightside.example>
Received-SPF: pass (brightside.example: 203.0.113.7 is authorized)
client-ip=203.0.113.7;
Authentication-Results: mx.meridiansupply.example;
spf=pass smtp.mailfrom=brightside.example;
dkim=pass header.d=brightside.example;
dmarc=pass header.from=brightside.example
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brightside.example;
s=jan2026; h=from:to:subject:date:message-id;
bh=SAMPLEbodyHashBase64Placeholder=;
b=SAMPLEsignatureBase64Placeholder0000000000000000000000000000000000/PLACEHOLDER=
From: Maya Chen <maya@brightside.example>
To: Sam Rivera <sam@meridiansupply.example>
Subject: Meeting confirmation
Date: Thu, 15 Jan 2026 09:10:00 -0800
Message-ID: <dkim-conf01@brightside.example>
SGkgU2FtLAoKQ29uZmlybWluZyBvdXIgbWVldGluZyBvbiB0aGUgMjB0aC4gVGhpcyBtZXNzYWdl
IGNhcnJpZXMgc2FtcGxlCkRLSU0tU2lnbmF0dXJlLCBTUEYsIGFuZCBBdXRoZW50aWNhdGlvbi1S
ZXN1bHRzIGhlYWRlcnMgZm9yIHRlc3RpbmcgZW1haWwKYXV0aGVudGljYXRpb24gcGFyc2luZy4g
VGhlIHNpZ25hdHVyZSB2YWx1ZSBpcyBhIHBsYWNlaG9sZGVyLCBub3QgcmVhbCBjcnlwdG8uCgpN
YXlhCg==
Specifications
- Headers
- DKIM-Signature, Received-SPF, Authentication-Results, Return-Path
- Note
- DKIM signature is a sample placeholder
What is a .eml file?
An EML file is a single email message stored in the RFC 822 / MIME format — plain-text headers (From, To, Subject, Date, Message-ID) followed by the body, which may be plain text, HTML, or a multipart structure with alternative bodies and file attachments encoded in base64.
How to use this file
Use an example EML to test email header parsing, MIME decoding, HTML-part handling, attachment extraction, and EML-to-other-format conversion.
Code examples
from email import policy
from email.parser import BytesParser
msg = BytesParser(policy=policy.default).parse(open("dkim-signed.eml", "rb"))
print(msg["subject"], msg["from"])Related files
- emlBounce / Non-Delivery Report (EML)A bounce / non-delivery report (NDR) — a multipart/report message with a human-readable notice, a message/delivery-status part, and the original headers — for testing bounce parsing and delivery-status extraction.

- emlEmail with Attachment (EML)A multipart/mixed email with a base64-encoded CSV file attachment — for testing attachment detection, decoding, and extraction from an EML message.

- emlHTML Newsletter Email (EML)An HTML newsletter email (multipart/alternative) with a table-based responsive layout and a List-Unsubscribe header — for testing HTML-email rendering, sanitising, and marketing-email parsing.

- mboxMBOX Mailbox — six-message threadA larger mbox mailbox with a six-message back-and-forth thread — for testing mailbox splitting, thread reconstruction, and pagination over more than a couple of messages.

- mboxMBOX Mailbox (three-message thread)An mbox mailbox concatenating a short three-message email thread with the classic 'From ' separator lines and >From body escaping — for testing mailbox splitting and thread reconstruction.

- emlMeeting Invitation with iCalendar (EML)A meeting-invitation email carrying an iCalendar (.ics) VEVENT with METHOD=REQUEST — for testing calendar-invite detection, ICS extraction, and RSVP handling.

Generated by generation/email_extra.py. Free for any use, no attribution required — license.