Unforgeable Electronic Mail and Sovereign .omenc Vaults: Eliminating SMTP Spoofing, Automated-Generator Impersonation, and Untrusted Client Leakage on Self-Verifying Virtual File Graphs
Replacing Hop-by-Hop Mail Relays, Server-Side DKIM Milters, and Plaintext IMAP Caches With End-to-End Plain-Sight Author Signatures, Human-vs-Generator Signer Separation, Legacy Quarantine Boundaries, and Native Cross-Platform Clients (OMVFS-MAIL-V1)
2-Minute Plain-English Summary
Electronic mail remains the backbone of business contracts, legal notices, and financial instructions, yet forty years of bolted-on patches (SPF, DKIM milters, DMARC) still fail to stop phishing and executive spoofing because they sign mail at transit servers rather than at the human author's device — and even worse, allow automated web forms or compromised relays to share the same corporate domain signature as real employees. At the receiving end, reading corporate mail through non-compliant legacy IMAP clients strips cryptographic envelopes into unverified plaintext caches. OMVFS-MAIL-V1 solves messaging at the root: every message is composed, signed, and X25519-sealed end-to-end inside an OMVFS-compliant client using the author's plain-sight keyring (WP-0003), human principals (Tier T3) are mathematically disjoint from automated form/service generators (Tier T2), legacy external SMTP arrives strictly inside an explicit quarantine tier, and self-healing O(1) index snapshots serve mailboxes over pure HTTPS without 24/7 IMAP/SMTP daemons.
- End of Server-Side Milter & DKIM Ambiguity: Messages are sealed into OMVFS01 .omenc envelopes and signed directly in client RAM by the author's personal plain-sight key (WP-0003) before a single byte leaves the device — transit relays never touch plaintext or hold domain-wide signing keys.
- Strict Human vs. Automated Generator Separation: Enforces disjoint cryptographic trust tiers and transcript prefixes between human principals (T3_CLIENT_PRINCIPAL) and web-form, CRM, or CI transactional mailers (T2_BACKEND_AUTHORITY), making it mathematically impossible for a compromised web form to impersonate an executive.
- Why Non-Compliant Legacy Clients Break Security Certainty: Proves formally that bridging plaintext out to legacy IMAP/SMTP mail apps severs the end-to-end verification chain, motivating a unified cross-platform native OMVFS client architecture (Flutter + WebCrypto/native FFI).
- Instant O(1) Forgery Spotting & Legacy SMTP Quarantine: Classifies every inbound item deterministically into VERIFIED_HUMAN_PRINCIPAL, VERIFIED_AUTOMATED_GENERATOR, or QUARANTINED_LEGACY_SMTP — isolating dark or legacy mail silos on contact.
- Zero-Daemon Serverless Mailbox Economics: Replaces stateful Postfix/Dovecot servers and exposed TCP ports (:25/:465/:993) with object-storage .omenc vaults and O(1) reconciled encrypted mailbox snapshots over HTTPS :443.
OMVFS01 nodes anchored via OMVFS-CERT-V1 (989d36b72e4b91…) and open 2+ devices (phone + laptop) to test the system as real attackers.1. Why 1982 SMTP, DKIM Milters, and Legacy Mail Clients Fail Security Certainty
leaf:04d936e00bdfHow authenticating mail servers instead of message authors leaves business email compromise, form-mailer spoofing, and relay snooping unsolved.
Beginning our progression from the simplest atomic unit of digital society — a single point-to-point message between two actors — reveals why higher-level systems (social networks, banking notifications, civil registries) remain chronically vulnerable. Almost every password reset, wire instruction, and legal notice ultimately traverses Simple Mail Transfer Protocol (RFC 5321, designed in 1982 for trusted academic networks with zero authentication).
Over four decades, the industry bolted Sender Policy Framework (SPF), DomainKeys Identified Mail (DKIM) milters, and DMARC onto SMTP. Despite massive operational complexity, multi-billion-dollar Business Email Compromise (BEC) losses continue to grow because legacy email violates three first-principles invariants:
- Server-Level rather than Principal-Level Signing: A DKIM milter signs mail at an outbound MTA gateway using a shared domain key. It proves only that some process authorized to use example.com's relay emitted the text — not which human employee composed it, nor whether a compromised web- server, CRM plugin, or MTA queue modified the body before signing.
- The Automated Form vs. Human Corporate Signature Gap: Modern organizations run contact forms, ticketing bots, billing scripts, and marketing mailers that legitimately emit mail under corporate domains. Under DKIM/SPF, an automated form generator often carries the exact same domain-level cryptographic authority as the Chief Financial Officer, allowing injection flaws or misconfigured templates to produce "cryptographically valid" spoofed internal mail.
- Hop-by-Hop Cleartext & Mutable Headers: Standard SMTP relays parse, wrap, and rewrite MIME headers at each hop; a single misconfigured milter whitespace canonicalization breaks signatures on legitimate mail while leaving display-name spoofing untouched.
- Plaintext Rest & Legacy IMAP Sync Sprawl: Even when transport TLS succeeds, legacy mail servers store messages in server-readable mbox/Maildir formats and synchronize full plaintext copies over IMAP (:993) onto third-party mobile and desktop apps whose local SQLite caches sit outside cryptographic envelope governance.
2. The Non-Compliant Client Boundary Theorem: Why Taking Mail Outside OMVFS Breaks Certainty
leaf:33a7e0e11b95Proving that translating sealed OMVFS vaults into legacy IMAP/SMTP bridges re-introduces forgery and plaintext exposure.
When migrating an organization onto encrypted object-storage vaults (WP-0002 + WP-0003), a tempting shortcut is to deploy a local or cloud IMAP/SMTP translation proxy so users can keep legacy third-party mail clients (such as generic mobile or desktop IMAP readers).
Formalizing the end-to-end verification chain proves why any non-OMVFS client boundary destroys deterministic security certainty:
Let an email lifecycle be a sequence of state transitions: AuthorKey --(e_1)--> Compose --(e_2)--> Store --(e_3)--> Render.
Define edge certainty Cert(e_k) in {0, 1} as 1 iff transition e_k is bound by an unforgeable
end-to-end cryptographic proof verified directly by the relying endpoint, and 0 otherwise.
1. Multiplicative Chain Certainty Law:
Cert_E2E(Author -> Reader) = prod_{k=1}^3 Cert(e_k)
2. Legacy IMAP/SMTP Proxy Bridge Collapse:
* Outbound SMTP Submission (Legacy App -> Bridge): App transmits unsigned MIME over password/token
auth; the bridge signs on the user's behalf ==> Cert(e_1) = 0 (bridge or stolen session can forge).
* Inbound IMAP Hydration (Bridge -> Legacy App): Bridge decrypts .omenc into raw RFC 5322 MIME and
strips OMVFS01 binary footers so legacy MIME parsers can render ==> Cert(e_3) = 0 (app cannot
cryptographically distinguish verified T3 human mail, T2 form mail, or injected local cache rows).
==> Cert_E2E = 0 * 1 * 0 = 0.
3. Native OMVFS Client Preservation:
Author unlocks plain-sight sk_A^sig in client RAM (Cert(e_1) = 1), stores immutable OMVFS01 .omenc
on object storage (Cert(e_2) = 1), and recipient's native OMVFS client verifies OMVFS01 + Ed25519 +
signer tier locally after X25519 unwrap in RAM (Cert(e_3) = 1) ==> Cert_E2E = 1 * 1 * 1 = 1.
3. Sovereign .omenc Mail Envelopes: Per-Recipient X25519 Key Wrapping & Thread DAG Binding
leaf:ca3a193541e5Sealing headers, rich bodies, attachments, and conversation lineage inside a single self-verifying OMVFS01 envelope.
In OMVFS-MAIL-V1, an email is not a loose stream of mutable text headers followed by base64 MIME boundaries. Every message m is a canonical JSON/binary payload packaged inside a self-verifying OMVFS01 .omenc envelope (WP-0002). Sensitive subject lines, participant lists, body text, and attachments are encrypted together under a fresh 256-bit Data Encryption Key (DEK) wrapped independently to each recipient's published X25519 public key (WP-0003), while reply/forward lineage forms a tamper-evident SHA-256 Directed Acyclic Graph (DAG):
Given sender principal A with unlocked plain-sight signing key sk_A^sig (epoch e_A) and recipient set
R = {B_1, ..., B_k} with published X25519 public keys {PK_{B_j}^enc}_{j=1}^k from their OMVFS keyrings:
1. Canonical Inner Message & Thread Lineage Binding:
M_plain = CanonJSON({
msgId, createdAtUtc, fromPrincipal: A, toPrincipals: R, subject, bodyMarkdown,
attachments: [ { name, mimeType, sizeBytes, contentSha256 } ],
inReplyToSha256: H_parent // 32-byte OMVFS01 digest of parent message ("" if thread root)
})
d_plain = SHA256(M_plain)
2. Fresh Ephemeral-Static X25519 Multi-Recipient Key Wrapping:
Sample message key K_msg <-$ {0,1}^256 and 96-bit AEAD nonce N_0 <-$ {0,1}^96.
C_body = AES-256-GCM.Enc_{K_msg}( N_0, M_plain, AAD = UTF8("OMVFS-MAIL-BODY-V1|" || msgId) )
For each recipient B_j in R union {A} (including sender's own Sent vault):
(esk_j, epk_j) <- X25519.KeyGen()
Z_j = X25519(esk_j, PK_{B_j}^enc)
KEK_j = HKDF-SHA256(Z_j, salt = epk_j || PK_{B_j}^enc, info = UTF8("OMVFS-MAIL-WRAP-V1|" || B_j))
W_j = AES-256-GCM.Enc_{KEK_j}( N_j, K_msg, AAD = UTF8(msgId || "|" || B_j) )
3. Outer Author Signature Over Plaintext & Ciphertext Digests:
sigma_A = Sign_{sk_A^sig}( UTF8("OMVFS-MAIL-SEAL-V1|" || Tier(A) || "|" || A || "|") || d_plain || SHA256(C_body) )
==> Quoting or replying to parent H_parent cryptographically anchors the entire prior conversation;
altering a single quoted word in a reply chain invalidates H_parent verification immediately.
4. Eliminating Form-Generator Impersonation: Disjoint Trust Tiers for Humans (T3) and Automated Services (T2)
leaf:2aa28b0cbaf9Making it mathematically impossible for web contact forms, CI pipelines, or transactional mailers to forge human executive signatures.
One of the sharpest operational failures in corporate email today is that automated mail generators — website contact forms, password-reset mailers, billing crons, bug-tracker notifications — sign outbound mail with the same domain authority as human staff. If an attacker exploits a template injection or header bug in a public web form, recipients' mail clients see a valid corporate signature.
OMVFS-MAIL-V1 eliminates this entire class of vulnerability by binding every signing key in the organization's directory (corporate/principals/<id>/keyring.omjson) to an immutable Signer Trust Tier enforced inside the signature transcript itself:
Partition organizational mail principals into two strictly disjoint key registries:
* K_human (Tier = T3_CLIENT_PRINCIPAL): Personal keys unlocked exclusively on human devices via
plain-sight passphrase/biometric PRF (WP-0003); private scalars NEVER exist on backend servers.
* K_auto (Tier = T2_BACKEND_AUTHORITY): Scoped service keys for automated generators
(e.g., generator:web-contact-form, generator:billing-receipts, generator:bug-tracker),
each restricted by FSNodeACL to an explicit allowedSenderPattern and templateSchemaId.
Invariant: K_human intersect K_auto == empty_set.
Verification Predicate on Recipient Client for Claimed Human Sender h in K_human:
AcceptAsHuman(m, h) <=>
( pk_signer in ActiveKeys(K_human, h) )
&& ( m.header.signerTier == "T3_CLIENT_PRINCIPAL" )
&& Verify_{pk_signer}( UTF8("OMVFS-MAIL-SEAL-V1|T3_CLIENT_PRINCIPAL|" || h || "|") || d_plain || d_cipher, sigma )
Impersonation Impossibility:
Suppose a compromised web form holding sk_form in K_auto attempts to emit a message claiming
fromPrincipal = "ceo@omtrek.com" with signerTier = "T3_CLIENT_PRINCIPAL":
* Case 1 (Signs with sk_form, claims pk_ceo): Signature verification fails (negligible 2^{-128} adv).
* Case 2 (Signs with sk_form, attaches pk_form): Key lookup pk_form in ActiveKeys(K_human, "ceo") == FALSE,
triggering deterministic client rejection ERR_SIGNER_TIER_IMPERSONATION.
5. Instant O(1) Forgery Spotting & The Legacy External SMTP Quarantine Gate
leaf:60a621784336Coexisting safely with the legacy internet by sealing inbound external SMTP inside an explicit quarantine boundary.
During global transition, organizations still need to receive messages from external partners whose domains have not yet adopted OMVFS-MAIL-V1 ("legacy or dark mail silos"). Classic mail servers dump external SMTP mail into the exact same inbox list as authenticated internal mail, relying on human eyes to spot subtle cousin-domain typos (e.g., rnicrosoft.com).
In OMVFS-MAIL-V1, the stateless inbound SMTP ingress gateway acts strictly as a Quarantine Airlock: it wraps external RFC 5322 payloads into an X25519-encrypted .omenc vault for storage privacy, attaches its recorded SPF/DKIM/DMARC telemetry as untrusted metadata, and stamps a non-escalatable quarantine classification that compliant clients render unmistakably:
- Zero Phishing Ambiguity in the UI: Quarantined legacy emails open in a sandboxed plain-reader view (external links disarmed with explicit domain warnings, remote tracking pixels blocked by default, and zero visual overlap with verified T3 human colleagues).
- Instant Cross-Organization Federation: The moment an external partner publishes /fstab.omjson + OMVFS-MAIL-V1 public keyrings on their domain, messages between the two companies upgrade automatically from QUARANTINED_LEGACY_SMTP to VERIFIED_HUMAN_PRINCIPAL with zero bilateral VPNs or central certificate authorities.
Every message m rendered by an OMVFS-MAIL-V1 client maps in O(1) time to one of three disjoint states:
ClassifyMail(m) =
| VERIFIED_HUMAN_PRINCIPAL if ValidOmvfs01(m) && AcceptAsHuman(m, m.fromPrincipal)
| VERIFIED_AUTOMATED_GENERATOR if ValidOmvfs01(m) && AcceptAsGenerator(m, m.generatorId, m.schemaId)
| QUARANTINED_LEGACY_SMTP if ValidOmvfs01(m) && m.originMode == "LEGACY_SMTP_AIRLOCK"
| REJECTED_FORGERY otherwise (corrupt footer, tier mismatch, or forged internal domain).
Strict Anti-Spoofing Rule for OMVFS-Enrolled Domains D_omvfs:
If Domain(m.claimedFrom) in D_omvfs AND m.originMode == "LEGACY_SMTP_AIRLOCK" :
ClassifyMail(m) := REJECTED_FORGERY (blocks external SMTP spoofing of OMVFS domains 100%).
6. Zero-Daemon Mail Infrastructure: Self-Healing O(1) Encrypted Mailbox Snapshots Over HTTPS
leaf:de855aa74957Eliminating 24/7 Postfix/Dovecot servers and O(N) bucket scans via atomic reconciled index snapshots.
Running legacy corporate email requires patching stateful SMTP/IMAP daemons, spam-assassin clusters, and search databases 24 hours a day — costing thousands of dollars annually even when zero messages arrive. Conversely, naively storing thousands of encrypted messages on object storage without a database would require O(N) GET requests on every inbox refresh.
OMVFS-MAIL-V1 achieves sub-second inbox opens at near-$0 idle cost by pairing immutable per-message .omenc/.omjson objects with a per-user reconciled snapshot node (users/<id>/mail/index-snapshot.omjson):
- Steady-State O(1) Inbox Open: Opening a 10,000-message mailbox executes exactly 1 prefix ListKeys call plus 1 conditional GET of index-snapshot.omjson. If the listed object key set matches the snapshot's key map, folder counts (Inbox, Sent, Archive, Quarantine, Trash) and sorted message headers return immediately with zero per-message reads.
- Self-Healing Delta Hydration: When an asynchronous serverless inbound hook delivers k new messages out-of-band, the next read detects the k-key delta, hydrates only those k metadata envelopes concurrently, and atomically persists the updated snapshot.
- Immediate Flag & Folder Consistency: Read/unread, star, archive, and trash mutations update the message metadata node and the in-place snapshot atomically under per-mailbox conditional ETag concurrency, preventing stale unread badges or lost session drops.
7. Native Cross-Platform OMVFS Client Specification: Why a Unified Flutter Client Replaces Legacy Mail Apps
leaf:09344b648456Delivering uncompromising end-to-end OMVFS verification across iOS, Android, macOS, Windows, Linux, and Web from a single memory-safe codebase.
Because Equation Set 1 proves that legacy third-party mail apps cannot preserve end-to-end cryptographic certainty, OMVFS-MAIL-V1 defines a clean, open client contract implemented once in a cross-platform Flutter + Dart OMVFS client library:
- Single Codebase Across All Six Platforms: Compiles to native ARM64/x86_64 machine code on iOS, Android, macOS, Windows, and Linux, and to WebAssembly/JavaScript in browsers — eliminating the need to maintain separate Swift, Kotlin, Electron, and webmail cryptographic stacks.
- On-Device Plain-Sight Vault & Hardware Secure Enclave Binding: Unlocks the user's WP-0003 plain-sight keyring strictly in client memory using platform biometrics (Secure Enclave / Keystore / WebAuthn PRF), never exporting private Ed25519 or X25519 scalars to servers.
- Pure HTTPS :443 Transport Everywhere: Operates cleanly over corporate firewalls, hotel Wi-Fi, and mobile networks via standard HTTPS capability endpoints and offline-capable local encrypted .omgz caches — requiring zero exposed IMAP/SMTP ports and zero mandatory VPN enrollment for personal devices.
- First-Class Visual Provenance UX: Renders cryptographic signer tiers (Human T3 vs. Automated T2 vs. Legacy Quarantine), thread-chain integrity checks, and one-tap OMVFS-CERT-V1 timestamp receipts (WP-0001) natively in every message header.
8. Multi-Epoch Key Rotation, Physical Endpoint Limits, and Four-Stage Migration Roadmap
leaf:1abcbe3a5174Preserving decades of historical mail across key rotations while migrating organizations smoothly off legacy mail servers.
Consistent with Companion White Papers WP-0001 through WP-0006, OMVFS-MAIL-V1 states explicitly both its unconditional cryptographic guarantees and its physical endpoint boundaries:
- Historical Readability Across Key Rotations: Because WP-0003 plain-sight keyrings retain prior X25519 decryption epochs (e_1..e_{k-1}) wrapped under MasterKEK while marking compromised signing epochs revoked at timestamp t_rev, rotating keys never bricks decades of archived .omenc emails, and pre-compromise signatures with anchored timestamps t < t_rev remain historically verifiable.
- Analog / Compromised-Endpoint Boundary: Mathematics guarantees 0% network spoofing, 0% form-to-human impersonation, and 0% storage-admin snooping. Once an authorized recipient decrypts a message onto their screen, preventing them from photographing the display requires organizational trust or Tier-3/4 legal watermarks rather than transport cryptography.
- Stage 1 — Serverless Vault Cutover & Web/PWA OMVFS Client: Replace EC2 Postfix/Dovecot servers with object-storage .omenc vaults, O(1) snapshot indexing, and corporate OIDC plain-sight webmail.
- Stage 2 — Disjoint T2 Generator Keys for Forms & CI: Issue scoped T2_BACKEND_AUTHORITY keys to every automated corporate form, billing engine, and issue tracker, eliminating shared domain DKIM keys.
- Stage 3 — Cross-Platform Native Flutter Mail App (Mobile + Desktop): Ship native iOS, Android, macOS, Windows, and Linux Flutter clients with offline encrypted caching and push notifications (blinded wakeups containing zero message plaintext).
- Stage 4 — Cross-Domain OMVFS-MAIL-V1 Federation: Discover partner domains automatically via /fstab.omjson so inter-company mail bypasses legacy SMTP entirely.
9. Enterprise Interoperability: Gmail/Outlook Coexistence, Corporate (t, n) eDiscovery Escrow & Metadata Limits
leaf:957427eb7997Solving real-world corporate email realities — external non-OMVFS recipients, employee offboarding, legal discovery, and honest SMTP metadata limits.
Because email is a global interoperability network, enterprises cannot abandon Gmail, Microsoft Outlook, mailing lists, or statutory legal discovery overnight. OMVFS-MAIL-V1 addresses these operational requirements without weakening internal cryptographic guarantees:
- External Gmail & Outlook Interoperability: Outbound mail to non-OMVFS domains transmits via standard TLS + DKIM/SPF/DMARC (AWS SESv2) while keeping the sender's Sent copy sealed in .omenc; confidential external messages can optionally dispatch a signed time-bounded web-viewer capability link rather than plaintext SMTP. Inbound external SMTP enters strictly into QUARANTINED_LEGACY_SMTP.
- Optional Corporate (t, n) eDiscovery & Employee-Offboarding Escrow: For company-owned mailboxes (distinct from personal private accounts), each message key K_msg is wrapped both to the employee's X25519 key and split into (t, n) GF(256) Shamir shares across independent organizational custodians (e.g., General Counsel, CISO, Executive Officer). Any single IT admin learns 0 bits; legitimate legal discovery or lost-key offboarding requires >= t custodian approvals and writes a mandatory non-deletable append-only reverse-audit receipt (audit/ediscovery/*.omjson) recording the warrant/case digest and approving custodians.
- Mailing Lists, Forwarding & Metadata Honesty: Internal distribution lists wrap K_msg per active group member or group epoch key so forwarding preserves inner signature verification. While internal OMVFS-to-OMVFS messages encrypt subjects and bodies inside .omenc, legacy external SMTP hops necessarily expose RFC 5321 envelope sender/recipient routing metadata to transit MTAs — stated explicitly so compliance teams never conflate internal vault confidentiality with legacy SMTP metadata anonymity.
Live Read-Only Verification Commands
Run in any terminal (or share with an AI coding assistant) to verify live headers and commitments:
# 1. Compute a domain-separated OMVFS-MAIL-V1 human-author vs automated-generator transcript digest:
printf "OMVFS-MAIL-SEAL-V1|T3_CLIENT_PRINCIPAL|%s|%s|%s|%s" "$SENDER_ID" "$RECIPIENTS_CSV" "$THREAD_PARENT_SHA" "$PAYLOAD_SHA256" | shasum -a 256
# 2. Verify HTTPS-only corporate mail entry and OMVFS-SITE-1 / CSP headers without legacy IMAP ports:
curl -sS -I https://mail.omtrek.com/ | head -n 15
# 3. Inspect public OIDC / key-discovery configuration backing corporate sovereign mailboxes:
curl -sS https://corporate.omtrek.com/oidc/.well-known/openid-configuration | head -n 20