Skip to content

Architecture

How Sypnia Mail is built: its parts, where Rust runs, and how they connect.

Applies to EngineCloud
View as Markdown
Figure. Sypnia Mail: the API and the SMTP relay, the engine's queue and sender, the transport, and where state lives.
  1. Your app calls the API, or an SMTP client talks to the relay.
  2. The engine checks, renders and queues the e-mail in Postgres.
  3. The sender hands it to Amazon SES (or SMTP) at the allowed pace.
  4. Delivery events and inbound mail come back and are recorded and sent to your webhooks.
Read this diagram as text

Apps call the Mail API; older apps use the SMTP relay. The engine is one Rust binary with the API, the SMTP relay, the template renderer, the queue, the sender, the event receiver, the webhook dispatcher, the inbound parser and the MCP server. It keeps domains, templates, e-mails, events and suppressions in Postgres and attachments and raw messages in S3-compatible storage. The transport is Amazon SES or any SMTP server.

PartLanguageOpen source
Mail engine: API, SMTP relay, renderer, queue, sender, events, inbound, MCPRust (axum, lettre, mail-parser); templates rendered with a Handlebars-compatible engineyes
@sypnia/mail and its React componentsTypeScriptyes
Deliverability guardrails and abuse review in Sypnia CloudRust and TypeScriptthe guardrail rules, yes; the review tools, no
ConsoleTypeScript (React)no

    Search pages, sections and terms