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.

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.