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
Every workspace gets <workspace>.mailroomapi.com, which sends and receives with no DNS work, so an agent can start before you verify anything. Use your own domain for mail customers should recognise.
Receiving on your domain
To give an agent an address like support@help.acme.com, add the optional receiving MX record for that domain, then pick the domain when you create the agent. Use a subdomain if your main domain already gets mail elsewhere (Google Workspace, Microsoft 365): its MX record decides where all of that domain's mail goes.
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 });Cloudflare
If your DNS is on Cloudflare, paste a Cloudflare API token on the domain's page and Mailroom writes the records for you (POST /domains/{id}/auto-configure). It never overwrites a record that is already there. You can also send the records to whoever runs your DNS with Share. Route 53 and Vercel are not supported yet.