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
[](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_5COMPONENT STACK (6)
- Mail Client / MTASTATELESSSMTP/TLS & JMAP/HTTPS
- SMTP & JMAP EdgeSTATELESSSPF/DKIM/DMARC & auth
- Anti-Spam & VirusSTATELESSML classifier + sandbox scan
- Outbound MTA QueueSTATEFULPer-domain rate & bounce queue
- Mailbox & Blob StoreSTATEFULSharded metadata + S3 bodies
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Mail Client / MTA → SMTP & JMAP Edge (SMTP/API)[TLS]
- SMTP & JMAP Edge → Anti-Spam & Virus (Filter msg)[gRPC]
- SMTP & JMAP Edge → Outbound MTA Queue (Queue mail)[SMTP]
- Anti-Spam & Virus → Mailbox & Blob Store (Store mail)[SQL/S3]
- Outbound MTA Queue → Mailbox & Blob Store (Apply)[Async]
- Mailbox & Blob Store → Downstream & OTel (Emit /)[OTLP/API]