# Sypnia Mail documentation > Sypnia Mail sends the e-mails your app needs (confirmations, receipts, password resets, alerts) and gives your domain real inboxes: hola@, soporte@, one per person or shared by a team. Your domain is set up for you, bounces and complaints are handled, every e-mail can be followed from sent to delivered, and your inboxes are read in Sypnia, in your mail app or by an agent. Sypnia comes two ways, and every page says which one it is about: - **Sypnia Mail engine** (open source, with your own amazon ses or smtp): Ingest, storage, aggregation, problem grouping, sessions, replay data and uptime checks. You read it through: The HTTP API, the MCP server, the CLI and the Console: one built-in page with the problems list and the session replay viewer. - **Sypnia Cloud** (hosted by us, paid with credits): The same engine, run by us. You read it through: The full app: replay player, performance, uptime, daily summary, search and teams. Every page is also plain Markdown: add `.md` to its address (`https://mail.docs.sypnia.com/start/open-source-and-cloud.md`). All pages in one file: https://mail.docs.sypnia.com/llms-full.txt ## Start here What Sypnia Mail is, how it works, what is open source and what is Sypnia Cloud, and the quickstarts. - [Start here: overview](https://mail.docs.sypnia.com/start.md): Section index for Sypnia Mail: transactional e-mail on Amazon SES (or SMTP when self-hosted): sending domains with DKIM/SPF/DMARC (automatic with Sypnia Domains), send API and SMTP relay, templates, events and webhooks, suppression list, inbound parsing, deliverability guardrails; used by Sypnia Data auth as a provider. [Engine, Cloud] - [What Sypnia Mail is](https://mail.docs.sypnia.com/start/what-it-is.md): What Sypnia Mail is: sending domains (DKIM, SPF, DMARC), send API and SMTP relay, templates (variables, versions, preview, per language), events (sent/delivered/bounced/complained/opened/clicked) in log and webhooks, suppression list, inbound to webhook as JSON, deliverability guardrails; transactional only (no newsletters/bulk on shared reputation); Data auth can use Mail as provider; Domains sets records; Files attachments by path. [Engine, Cloud] - [How it works](https://mail.docs.sypnia.com/start/how-it-works.md): How Mail works: POST https://mail.api.sypnia.com/v1/emails (key, verified sender domain, suppression check, limits → 202 with id) → render template to HTML + text, optional tracking, project queue respecting plan rate and warm-up → Amazon SES with your DKIM and return path → events (delivery, bounce, complaint) recorded, hard bounces/complaints suppressed, webhooks. SMTP relay smtp.mail.sypnia.com 587/465; templates/events/suppressions in Postgres; bodies kept for retention. [Engine, Cloud] - [Open source and Sypnia Cloud](https://mail.docs.sypnia.com/start/open-source-and-cloud.md): Mail engine vs Cloud: engine sends via your SES (starts in sandbox; you request production access) or any SMTP, reputation yours, inbound with your SES rules, no console; Cloud uses Sypnia SES already out of sandbox (or yours via connection), shared reputation protected by guardrails, inbound included, console; same API/SDK/SMTP/templates. [Engine, Cloud] - [Quickstart: Sypnia Cloud](https://mail.docs.sypnia.com/start/quickstart-cloud.md): Mail Cloud quickstart: npx @sypnia/mail login; domains add laespiga.co (automatic records with Sypnia Domains, else 3 DKIM CNAMEs, return-path MX+TXT, DMARC TXT); templates create --subject --html; keys create server --scope send; createMail({apiKey}).send({from, to, template, data}); mail events --email shows queued → sent → delivered. Needs a domain of your own (no shared sending domain); 10 free e-mails a month per organization, then credits; new domains start with a low quota. [Cloud] - [Quickstart: self-host](https://mail.docs.sypnia.com/start/quickstart-self-host.md): Mail self-host quickstart: clone sypnia-mail, docker compose up (engine :7600, Postgres, Mailpit :8025 catches mail); set SYPNIA_MAIL_TRANSPORT=ses (IAM role or keys) or smtp; new SES accounts are in the sandbox (verified recipients only, 200/day) — request production access in your SES console. [Engine] - [How Sypnia uses it](https://mail.docs.sypnia.com/start/how-sypnia-uses-it.md): Dogfooding: Telemetry (the pilot, built on Sypnia end to end) sends its Cloud alert e-mails and daily summaries through Sypnia Mail's send API from alerts@telemetry.sypnia.com (domain verified in Mail, records written by Sypnia Domains), templates problem-alert and daily-summary (versioned, English and Spanish), an idempotency key per alert so a retry never sends twice, case send-alert / send-daily-summary on each send, bounces suppressed and visible in the case's trace. Sign-in e-mails of Telemetry's Data project go through the sypnia_mail provider. Sypnia's own mail leaves from a region apart from customers' mail. support@sypnia.com is a shared inbox in Sypnia Mail; Sypnia Agent drafts replies, a person sends; requests for missing features become Cases proposals. Self-hosted Telemetry engines can use Sypnia Mail as a sender on their alert webhook. Rest of the suite: Data sign-in e-mails (sypnia_mail), App's approval e-mails after 30 minutes unseen, Domains renewal reminders, Agent task updates, Learn, account e-mails from auth.sypnia.com. [Engine, Cloud] ## Sending domains Verifying your domain: DKIM, SPF and DMARC, done for you when the domain is in Sypnia Domains. - [Sending domains: overview](https://mail.docs.sypnia.com/domains.md): Verifying your domain: DKIM, SPF and DMARC, done for you when the domain is in Sypnia Domains. [Engine, Cloud] - [Verify a domain](https://mail.docs.sypnia.com/domains/verify-a-domain.md): Mail domain verification: DKIM (3 CNAMEs ._domainkey), SPF on return path (MX + TXT on bounce.), DMARC (TXT _dmarc) aligned → meets Gmail/Yahoo sender requirements; mail domains add checks every few minutes for 72 h until verified; only verified domains can send; subdomains verifiable separately; with Sypnia Domains records automatic, minutes; DMARC p=none with reports, suggest quarantine after 2 weeks clean. [Engine, Cloud] - [DNS records reference](https://mail.docs.sypnia.com/domains/dns-records.md): Mail DNS records: 3 DKIM CNAMEs ._domainkey → .dkim.amazonses.com, MX bounce. 10 feedback-smtp.us-east-2.amazonses.com, TXT bounce. v=spf1 include:amazonses.com ~all, TXT _dmarc v=DMARC1; p=none; rua=mailto:dmarc@.inbound.mail.sypnia.com; tokens via mail domains records; keep existing DMARC and add rua; mail domains check. [Engine, Cloud] ## Sending The send API, templates, attachments, scheduling and the SMTP relay. - [Sending: overview](https://mail.docs.sypnia.com/sending.md): The send API, templates, attachments, scheduling and the SMTP relay. [Engine, Cloud] - [The send API](https://mail.docs.sypnia.com/sending/send-api.md): Mail send API: mail.send({from, to, cc, bcc, replyTo, subject, html, text | template+data, tags, idempotencyKey}); checks scope send (403), verified from domain (422 domain_not_verified), suppression (skipped, suppressed[]; 422 all_suppressed), ≤50 recipients (400), ≤10 MB (413), rate/daily limit (429 retry-after); 202 {id, suppressed} = queued; idempotencyKey dedupes 24 h; sendBatch up to 100 personal messages; tags up to 10 keys returned on events. [Engine, Cloud] - [Templates](https://mail.docs.sypnia.com/sending/templates.md): Mail templates: name, subject, HTML, optional text (generated from HTML); {{var}} Handlebars-style (#if, #each, escaping); preview with data; versions: sends use published, templates publish/rollback --to N, pin template@3; per-language versions chosen by locale with default fallback; templates pull/push to mail/templates// (subject.txt, body.html, body.txt, meta.json); templates as React components (@sypnia/mail/react, rendered by templates push); Data sign-in e-mails: Data provider sypnia_mail with a from on a verified domain, templates stay in Data, Mail sends, logs with tag kind=auth., suppresses bounces, counted with the organization's mail (10 free a month, then credits). [Engine, Cloud] - [Attachments and scheduling](https://mail.docs.sypnia.com/sending/attachments-and-scheduling.md): Mail attachments: inline content (base64 in API) or file: files://bucket/path from Sypnia Files (read with project access at send time); total ≤10 MB; executable types refused 415; inline images via inline:true + cid; scheduledAt up to 30 days ahead, mail.cancel(id) while scheduled. [Engine, Cloud] - [SMTP relay](https://mail.docs.sypnia.com/sending/smtp-relay.md): Mail SMTP relay: smtp.mail.sypnia.com (or engine host), 587 STARTTLS or 465 TLS, user sypnia, password = key with smtp scope (mail keys create --scope smtp); same checks as API (verified from, suppression, limits, events); X-Sypnia-Tags header, X-Sypnia-Template + X-Sypnia-Data (JSON); for WordPress, CMS, legacy apps, devices. [Engine, Cloud] ## Events What happened to each e-mail: the log, webhooks, bounces and complaints, and the suppression list. - [Events: overview](https://mail.docs.sypnia.com/events.md): What happened to each e-mail: the log, webhooks, bounces and complaints, and the suppression list. [Engine, Cloud] - [The event log](https://mail.docs.sypnia.com/events/event-log.md): Mail events: queued, scheduled, sent, delivered, delivery_delayed (SES retries up to 12 h), bounced (hard/soft), complained, opened, clicked, rejected, canceled; mail events filters --to --since --tag --type; open tracking is unreliable (proxies, blocked images) — trend only; open/click tracking off by default; bodies kept for plan retention, events longer without body. [Engine, Cloud] - [Webhooks](https://mail.docs.sypnia.com/events/webhooks.md): Mail webhooks: mail webhooks create --events …; POST JSON {id, type, createdAt, email {id,to,from,subject,tags}, bounce {kind, code, message}}; header sypnia-signature t=…,v1=HMAC-SHA256 over t.body, verifyWebhook(request, secret) rejects >5 min; 2xx within 10 s; retries with backoff 24 h then undelivered + webhooks replay; ordered per e-mail; dedupe by id; paused after 3 days failing; Sypnia Run function target run://name. [Engine, Cloud] - [Bounces, complaints and suppression](https://mail.docs.sypnia.com/events/bounces-and-suppression.md): Mail suppression list per project: hard_bounce (remove manually), complaint (only at person request), soft_bounce_repeated (5 in 7 days; auto-removed after 14 days), manual, unsubscribed; mail suppressions ls/add/rm; automatic and cannot be disabled; one-click List-Unsubscribe and {{unsubscribe_url}} for optional e-mail kinds; account/receipt/reset e-mails exempt. [Engine, Cloud] - [Use cases and traces](https://mail.docs.sypnia.com/events/use-cases.md): Case attribution in Mail: send option case or header Sypnia-Case (send, sendBatch, SMTP relay header Sypnia-Case); inside a request traced by @sypnia/telemetry the SDK reads the active case and sends traceparent, so case can be omitted. Stored on the e-mail (case, trace id); events carry case; mail events --case . A case file declares its e-mails: mail: { sends: [order-ready] } (template names); the Cases check reports a case that sends a template it does not list, or lists one it never sends. Spans: mail.send