Skip to content
Novus Examples
eml1.1 KB

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.

Preview — first 26 lineseml
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.

How to use this file for testing

“DKIM / SPF Annotated Email (EML)” is a deterministic Novus Examples fixture for Email parsing. Standards-compliant RFC 822 messages — plain, multipart text+HTML, and with an attachment — plus an MBOX mailbox, for testing header parsing, MIME decoding, attachment extraction, and mailbox splitting.

Documented properties for this file: EML · 1,163 bytes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Email fixtures use fixed dates, message IDs, and MIME boundaries so runs are reproducible, and every address is fictional. Test header parsing, MIME decoding, attachment extraction, and EML/MBOX conversion against the documented structure.

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"])

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