Domains and DNS
SPF, DKIM, DMARC, custom MAIL FROM, and inbound MX.
Early access
Record values below are examples. Live tokens come from POST /domains.
Adding a domain returns the exact DNS records to publish. We re-check every 5 minutes for 72 hours and show per-record pass/fail with the observed value. After that, POST /domains/{id}/verify checks on demand.
Records we ask for
Each record has a purpose and a required flag. Only DKIM is required.
- DKIM (
dkim, required) — one TXT atmailroom._domainkey.<domain>. We hold the key (BYODKIM), so a future move off SES does not change your DNS. Publishing it is what proves you control the domain. - Custom MAIL FROM (
mail_from, recommended) —bounce.<domain>MX + SPF TXT. This aligns SPF. Your root SPF record is never touched. - DMARC (
dmarc, recommended) —_dmarcTXT. Any valid policy passes the check. Start withp=noneand ramp toquarantine. - Inbound MX (
inbound, optional) — only if this domain should receive mail through Mailroom. Skip it for a domain that already receives mail elsewhere, or add a subdomain instead.
A domain is verified once DKIM is published and the provider confirms it can send. pending means DNS is right and the provider is still confirming, which usually takes a few minutes.
; examples — do not copy blindly
mailroom._domainkey.send.acme.dev. TXT "v=DKIM1; k=rsa; p=MIIBIjANBg…"
bounce.send.acme.dev. MX 10 feedback-smtp.us-east-1.amazonses.com
bounce.send.acme.dev. TXT "v=spf1 include:amazonses.com ~all"
_dmarc.send.acme.dev. TXT "v=DMARC1; p=none; rua=mailto:dmarc@acme.dev"
send.acme.dev. MX 10 inbound-smtp.us-east-1.amazonaws.comGmail (5k+/day) and Yahoo require aligned SPF + DKIM + DMARC, TLS, and a spam rate under 0.3%. We will not lift a domain past the free-tier cap without alignment. RFC 8058 one-click unsubscribe is required on broadcast.
Managed subdomain
New orgs get a zero-config inbound/outbound subdomain (name TBD, e.g. <slug>.mailroom-mail.com) so an agent can work before you verify DNS. Outbound from the shared domain has strict caps.
API
const domain = await mailroom.domains.create({ name: 'acme.dev' });
await mailroom.domains.verify(domain.data.id);
const snapshot = await mailroom.deliverability.diagnose({ domain_id: domain.data.id });A “write records via Cloudflare / Route 53 / Vercel” button is v1.1, not v1.