PUBLIC WORK / 2026

MailForensics

Trace an outbound email across application logs, Postfix, filters and relays. MailForensics links message identifiers and queue handoffs into one timeline.

TYPE

Outbound mail forensics CLI

STACK

Python · Postfix · Rspamd

STATUS

v0.5.2 · Alpha · PyPI

CORRELATION

Follow one message.

A message can change queue IDs as it passes between mail services. MailForensics follows Message-IDs, application correlation IDs and Postfix queued as handoffs to connect those stages. Events are joined through identifiers; nearby timestamps alone do not merge two messages.

A trace can combine mail logs, journald, JSONL application events, Rspamd or milter activity, and live or saved postqueue -j queue state.

OUTPUT

Read the delivery trace.

mailforensics explain shows the delivery stages, timings and outcome.mailforensics trace opens the full event timeline. Both the analysis and its source evidence are available in JSON or a self-contained HTML report.

MailForensics terminal demo showing a deferred outbound email traced through application, Postfix, Rspamd, relay, and live queue state
Demo output for a deferred message, including its current queue state.

LIMITS

What delivery status means.

Postfix status=sent records acceptance by the configured next hop: SMTP, LMTP or a local delivery service. It does not establish where a provider placed the message in the recipient's mailbox.

Queue inspection distinguishes an old deferred log entry from a message still waiting at capture time. If downstream logs are missing, the report leaves that part of the trace unresolved. The CLI runs locally and reads logs and queue state without modifying them.

INSTALL

Try MailForensics.

Requires Python 3.11+. Live journald and Postfix queue inspection run on Linux; saved files can be analysed independently. The built-in demo works without a mail server.

PYPI / MAILFORENSICS0.5.2
python -m pip install mailforensics