Skip to Content
MailroomMailroom home

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.

  1. DKIM (dkim, required) — one TXT at mailroom._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.
  2. Custom MAIL FROM (mail_from, recommended) — bounce.<domain> MX + SPF TXT. This aligns SPF. Your root SPF record is never touched.
  3. DMARC (dmarc, recommended) — _dmarc TXT. Any valid policy passes the check. Start with p=none and ramp to quarantine.
  4. 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.com

Gmail (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.

On this page