mirror of
https://github.com/LogicLabs-OU/OpenArchiver.git
synced 2026-04-06 00:31:57 +02:00
Add SMTP Journaling as an Ingestion Source for GoBD-Compliant Email Archiving #18
Open
opened 2026-04-05 16:16:10 +02:00 by MrUnknownDE
·
0 comments
No Branch/Tag Specified
main
gh-pages
v0.5.1-dev
v0.4.3-release
ee-legalhold
ee-retention
v0.4.3-dev
wayneshn-patch-1
v0.4.3-pre
v0.4.2-fix
v0.4.2-dev
v0.4.1-dev
mailbox-processing-opt
v0.4.0-fix
ee-init
docs-ocr
v0.3.x-fixes
issue-templates
security-update
create-funding-yml
display-versions
attachment-ocr
docs
user-api-key
demo-mode
v0.3.0
system-settings
wip
CLA-v2
role-based-access
dev
v0.5.0
v0.4.2
v0.4.1
v0.4.0
v0.3.4
v0.3.3
v0.3.2
v0.3.1
v0.3.0
v0.2.1
v0.2.0
v0.1.2
v0.1.1
v0.1.0
Labels
Clear labels
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
documentation
documentation
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
help wanted
help wanted
improvement
improvement
question
question
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
MrUnknownDE
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github/OpenArchiver#18
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gpappsoft on 3/7/2026
Summary
This proposal requests the addition of SMTP journaling as a dedicated ingestion method in OpenArchiver. SMTP journaling is the technically most reliable and legally most defensible approach to capturing all email traffic in real time — a requirement under GoBD (Grundsätze zur ordnungsmäßigen Führung und Aufbewahrung von Büchern, Aufzeichnungen und Unterlagen in elektronischer Form sowie zum Datenzugriff), the German principles governing audit-proof electronic record keeping.
Background & Motivation
OpenArchiver currently supports ingestion via IMAP sync, Microsoft Graph API, and file uploads (PST/EML). While these methods are useful for bulk imports and continuous mailbox synchronization, they have a fundamental limitation from a compliance perspective: they operate at the mailbox level after delivery, which means emails can theoretically be deleted, altered, or missed before the archiver captures them.
Under GoBD, businesses in Germany are required to archive all tax-relevant business correspondence in a manner that is:
Journaling is the most reliable and legally secure method for this, as the email server automatically creates an additional copy of every incoming and outgoing email during transport — before the message reaches or leaves the user's mailbox. This means even if a user deletes an email immediately after receiving it, the journal copy has already been safely captured.
IMAP-based retrieval, by contrast, is suitable for retrieving historical data but cannot guarantee complete real-time capture. Only journaling can provide the completeness guarantee required for full GoBD compliance.
Proposed Solution
Implement an SMTP journaling receiver as a new ingestion connector in OpenArchiver. The system would work as follows:
1. SMTP Listener Service
OpenArchiver exposes a dedicated SMTP endpoint (e.g., on port 25 or a configurable port). Mail servers (Exchange, Postfix, Zimbra, Google Workspace, Microsoft 365, etc.) are configured to BCC or forward a journal copy of every inbound/outbound message to this endpoint.
2. Ingestion Pipeline
Messages arriving at the SMTP listener are immediately:
.emlfiles (preserving the original format, as required by GoBD)3. TLS Encryption in Transit
The SMTP listener must enforce TLS to protect email contents during the journaling relay, preventing tampering in transit.
4. Audit Logging
Every ingestion event via the journal endpoint is written to an append-only audit log, recording source IP, message ID, timestamp, and hash — supporting the traceability requirement of GoBD.
GoBD Compliance Checklist Addressed by This Feature
.eml+ SHA-256 hash; no post-ingest modificationCompatibility
SMTP journaling is supported natively by all major mail server platforms:
always_bccorrecipient_bcc_mapsdirectiveThis makes the feature mail-server-agnostic and valuable for a wide range of self-hosted deployments.
Deliverables / Scope
Why This Matters for OpenArchiver
OpenArchiver's stated goal is legally compliant email archiving. For German businesses (and businesses operating under comparable regulations in Austria and Switzerland), SMTP journaling is not a "nice to have" — it is the only method that fully satisfies GoBD. Adding this feature would:
💡 A Note on Market Opportunity for Open-Source Businesses
For open-source companies or freelancers offering managed hosting, support, or consulting services around OpenArchiver — particularly those based in Germany, Austria, or Switzerland — this feature represents a significant commercial opportunity.
GoBD compliance is not optional for German businesses. Every company subject to German tax law that uses email for business correspondence is legally required to archive it in an audit-proof manner. This affects hundreds of thousands of SMEs across Germany alone. The market for GoBD-compliant email archiving is well-established, currently dominated by proprietary commercial solutions that often come with significant licensing costs.
A self-hosted, open-source archiving solution with verifiable SMTP journaling and GoBD compliance would be a compelling offering for:
The key selling point is straightforward:
This message resonates strongly with German IT buyers, who place high value on data sovereignty, transparency, and regulatory certainty.
Adding SMTP journaling would be the final piece that transforms OpenArchiver from a useful tool into a complete GoBD compliance solution — and a serious open-source alternative to commercial products in a market where such alternatives are currently almost nonexistent.