Metadata and MIME structure¶
The generating client sets Date, Message-ID, singleton headers, list/Resent context and MIME declarations.
H10, the additional H13 content comparison and H14 have been active on ratemymail.eu since 2026-10-13. H10 detects reused Message-IDs only in local history: 24 hours from first observation, at most 10,000 entries. H13 compares declared and detected content types in addition to MIME structure checks. H14 compares only with RateMyMail's own reference. These signals establish neither spam nor identity.
Setup¶
Prepare your values and Debian packages. CLI tests inspect only your own local files and configuration.
Create the synthetic message or use your own original message. Generate singleton headers once, Date with a timezone and Message-ID with a domain. Use a MIME library for encoding and boundaries.
Test¶
set -euo pipefail
. /root/mailserver.env
python3 - <<'PY'
from email.parser import BytesParser
from email.policy import default
from email.utils import getaddresses, parsedate_to_datetime
from pathlib import Path
import os, re
raw = Path("/root/mail-tests/sample.eml").read_bytes()
message = BytesParser(policy=default).parsebytes(raw)
for name in ("From", "To", "Date", "Message-ID", "Subject"):
assert len(message.get_all(name, [])) == 1, name
assert parsedate_to_datetime(str(message["Date"])).tzinfo is not None
assert re.fullmatch(r"<[^<>\s]+@[^<>\s]+>", str(message["Message-ID"]))
assert message.get_content_type() == "text/plain"
assert message.get_content_charset() == "utf-8"
assert "synthetic" in message.get_content()
assert not message.defects
print("PASS: singleton headers, date, Message-ID, charset and readable MIME content are correct.")
PY
This test covers the concrete example. Complex list, Resent, DSN/MDN and nested MIME messages require tests with their actual generating applications. It does not assess spam or personal identity.
Individual header checks¶
Configure these rules in the generating mailclient or application; there is no universal Debian switch. H10 and H14 are not implemented in RateMyMail.
H01 Singleton headers: setup¶
Setup instructions for Singleton headers .
H01 Singleton headers: test¶
Run the CLI test for Singleton headers with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.
H02 Header and address syntax: setup¶
Setup instructions for Header and address syntax .
H02 Header and address syntax: test¶
Run the CLI test for Header and address syntax with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.
H03 Sender / Reply-To: setup¶
Setup instructions for Sender / Reply-To .
H03 Sender / Reply-To: test¶
Run the CLI test for Sender / Reply-To with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.
H04 Signature coverage: setup¶
Setup instructions for Signature coverage .
H04 Signature coverage: test¶
Run the CLI test for Signature coverage with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.
H05 HELO / PTR: setup¶
Setup instructions for HELO / PTR .
H05 HELO / PTR: test¶
Run the CLI test for HELO / PTR with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.
H06 Transport boundary: setup¶
Setup instructions for Transport boundary .
H06 Transport boundary: test¶
Run the CLI test for Transport boundary with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.
H07 Remote authentication results: setup¶
Setup instructions for Remote authentication results .
H07 Remote authentication results: test¶
Run the CLI test for Remote authentication results with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.
H08 Date and time: setup¶
Synchronize the sender clock and generate Date with a timezone. DKIM t= and x= must be sensible. Remote Received timestamps remain unconfirmed.
Setup instructions for Date and time .
H08 Date and time: test¶
Run the CLI test for Date and time with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.
H09 Message-ID / threads: setup¶
Give each new message a new valid Message-ID; delivery retries may retain the ID. In-Reply-To and References must refer to actual messages rather than invented threads.
Setup instructions for Message-ID / threads .
H09 Message-ID / threads: test¶
Run the CLI test for Message-ID / threads with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.
H11 Recipient context: setup¶
Setup instructions for Recipient context .
H11 Recipient context: test¶
Run the CLI test for Recipient context with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.
H12 Lists, Resent, DSN / MDN: setup¶
List applications must set List-Id, List-Post, Auto-Submitted and Resent groups for the actual context. Each Resent group needs its own Date and From context; DSN/MDN requires a suitable report MIME type. Do not invent these declarations afterwards.
Setup instructions for Lists, Resent, DSN / MDN .
H12 Lists, Resent, DSN / MDN: test¶
Run the CLI test for Lists, Resent, DSN / MDN with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.
H13 MIME / transfer encoding: setup¶
Setup instructions for MIME / transfer encoding .
H13 MIME / transfer encoding: test¶
Run the CLI test for MIME / transfer encoding with your own original message. The linked expected output and limits also apply here. For list, Resent or report contexts, additionally use a message from the actual application; the synthetic singleton example does not fully cover these roles.