Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_email-service

Distributed Email Service (SMTP MTA, IMAP/JMAP & Spam Pipeline)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Distributed Email Service (SMTP MTA, IMAP/JMAP & Spam Pipeline) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_email-service/opengraph-image)](https://archos.sageideas.dev/d/dgm_email-service)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_email-service)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_email-service" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Distributed Email Service (SMTP MTA, IMAP/JMAP & Spam Pipeline) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Mail Client / MTA"]
  n1_1["SMTP & JMAP Edge"]
  n2a_2["Anti-Spam & Virus"]
  n2b_3[("Outbound MTA Queue")]
  n3_4[("Mailbox & Blob Store")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. SMTP/API · TLS"| n1_1
  n1_1 -->|"2a. Filter msg · gRPC"| n2a_2
  n1_1 -.->|"2b. Queue mail · SMTP"| n2b_3
  n2a_2 -->|"3a. Store mail · SQL/S3"| n3_4
  n2b_3 -->|"3b. Apply · Async"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Mail Client / MTASTATELESS
    SMTP/TLS & JMAP/HTTPS
  • SMTP & JMAP EdgeSTATELESS
    SPF/DKIM/DMARC & auth
  • Anti-Spam & VirusSTATELESS
    ML classifier + sandbox scan
  • Outbound MTA QueueSTATEFUL
    Per-domain rate & bounce queue
  • Mailbox & Blob StoreSTATEFUL
    Sharded metadata + S3 bodies
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Mail Client / MTA → SMTP & JMAP Edge (SMTP/API)[TLS]
  2. SMTP & JMAP Edge → Anti-Spam & Virus (Filter msg)[gRPC]
  3. SMTP & JMAP Edge → Outbound MTA Queue (Queue mail)[SMTP]
  4. Anti-Spam & Virus → Mailbox & Blob Store (Store mail)[SQL/S3]
  5. Outbound MTA Queue → Mailbox & Blob Store (Apply)[Async]
  6. Mailbox & Blob Store → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →