MailCraft
Home Pricing Docs
Deliverability

DNS Setup (DKIM, Bounce CNAME, SPF, DMARC)

Configure DKIM, Bounce CNAME (MX + SPF), SPF, and DMARC so Gmail, Outlook, and corporate mail servers trust your domain.

1. DKIM (TXT) — Cryptographic Signing

Each sending domain gets a dedicated RSA-2048 keypair (private key encrypted at rest via versioned AES-256-GCM master keys). Publish the TXT record at:

Host:  <selector>._domainkey.example.com
Type:  TXT

Pre-Split ≤255-Character Strings

RSA-2048 DKIM records exceed the 255-byte DNS TXT string limit. Legacy DNS panels require splitting into quoted chunks of ≤255 characters:

"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..." "q7x9...IDAQAB"

The Sending Domains console provides both the pre-split quoted value and the single-line raw value (modern panels like Cloudflare and Route53 accept the raw value directly and split automatically).

2. Bounce Domain (CNAME) — VERP DSNs & SPF Alignment

Host:  bounce.example.com
Type:  CNAME
Value: <agent>.bounce.<platform-domain>

Why a Bounce CNAME?

  • Outbound messages use per-recipient VERP Return-Path: bounce+<verp_token>@bounce.example.com.
  • Receiving mail servers evaluate SPF against the Return-Path domain and deliver asynchronous DSNs to its MX record.
  • The platform CNAME target publishes both the bounce MX and the SPF TXT record, while bounce.example.com maintains relaxed DMARC alignment with From: ...@example.com.

If you also send email from the root domain via other services, merge the platform include: into your existing SPF record (never create two separate v=spf1 TXT records):

v=spf1 include:_spf.<platform-domain> ~all

4. DMARC (TXT)

Publish at _dmarc.example.com. Start with p=none to monitor reports before enforcing p=quarantine or p=reject:

Host:  _dmarc.example.com
Type:  TXT
Value: v=DMARC1; p=none; rua=mailto:dmarc@example.com