Dns setup

Cloudflare Business Email DNS Setup: MX, SPF, DKIM & DMARC Guide (2026)

Set up Cloudflare DNS for Razix business email in under 5 minutes. Exact MX, SPF, DKIM, and DMARC records plus grey-cloud Proxy OFF rules.

Cloudflare Business Email DNS Setup: MX, SPF, DKIM & DMARC Guide (2026)

Setting up business email DNS on Cloudflare takes under 5 minutes and passes Razix's automated DNS verification in under 2 minutes once your MX, SPF, DMARC, and three DKIM CNAME records are published. The single rule most founders miss: every email-related CNAME or A record in Cloudflare must have Proxy status set to DNS only (grey cloud), and Cloudflare Email Routing must be turned off so MX queries resolve cleanly without proxy interference.

If you manage multiple product or client domains on Cloudflare, pairing Cloudflare's nameservers with Razix consolidates every brand into one unified inbox—starting at $29/month for 3 domains and 10 mailboxes instead of per-seat fees on every domain.


Cloudflare DNS Records Summary for Razix

Copy the exact values from your Razix Admin Panel → Domains → DNS Records screen into Cloudflare Dashboard → [Your Domain] → DNS → Records:

Record TypeName (Host)Content / TargetPriorityProxy StatusTTL
MX@[your-razix-inbound-mx-host]10N/A (DNS only)Auto (or 300)
TXT (SPF)@v=spf1 include:[razix-spf-include] ~allN/AN/AAuto (or 300)
CNAME (DKIM 1)[token1]._domainkey[token1].dkim.amazonses.comN/ADNS only (Grey cloud)Auto (or 300)
CNAME (DKIM 2)[token2]._domainkey[token2].dkim.amazonses.comN/ADNS only (Grey cloud)Auto (or 300)
CNAME (DKIM 3)[token3]._domainkey[token3].dkim.amazonses.comN/ADNS only (Grey cloud)Auto (or 300)
TXT (DMARC)_dmarcv=DMARC1; p=none; rua=mailto:dmarc@[yourdomain.com]N/AN/AAuto (or 300)

Note: Razix runs outbound sending on AWS SES and attachment storage on isolated AWS S3 buckets. Always paste the exact DKIM tokens and MX/SPF values displayed in your domain's DNS Records tab in Razix.


Multi-Domain Cost Math: 5 Cloudflare Domains & 18 Mailboxes

Founders using Cloudflare frequently hold 3 to 10 domains in one account—a core SaaS app, a docs domain, side projects, and a legacy brand. Here is how per-seat pricing compares against Razix when all 5 domains need real mailboxes (hello@, support@, billing@, founders@).

Cost & Infrastructure VariableGoogle Workspace (Business Starter)Razix (Pro Tier)
Active Domains5 separate domainsUp to 10 domains included
Mailboxes & Role Addresses18 paid seats (~$7.20/user/mo list)Up to 50 mailboxes included
Monthly Cost~$129.60 / month$79 / month
Annual Cost~$1,555.20 / year$948 / year
Monthly Email VolumeStandard seat limits100,000 outbound + 100,000 inbound
Attachment Storage25 MB MIME ceiling per email100 GB S3-backed (no 25 MB ceiling)
Metered OveragesRequires full seat/tier upgrade$0.0015/email and $0.25/GB

For smaller portfolios, Razix Starter ($29/mo) covers 3 domains and 10 mailboxes (25k out + 25k in, 15 GB storage), while Business ($199/mo) unlocks unlimited domains and mailboxes (250k out + 250k in, 250 GB storage). Compare providers in our guide to the best email hosting for multiple domains.


Three Cloudflare-Specific Traps That Break Email Delivery

Cloudflare is a reverse proxy and CDN first, and an authoritative DNS host second. Three Cloudflare defaults routinely break business email validation if left untouched.

1. Leaving Proxy Status ON (Orange Cloud) on DKIM CNAMEs

When you create a CNAME record in Cloudflare, Proxy status often defaults to Proxied (orange cloud). If a DKIM CNAME ([token1]._domainkey) is orange-clouded, Cloudflare stops returning the CNAME pointer to [token1].dkim.amazonses.com and instead synthesizes public Cloudflare edge A and AAAA IP addresses.

When AWS SES and Razix query _domainkey to verify domain ownership, they see Cloudflare edge IPs instead of the DKIM target—and verification fails indefinitely. Always click the orange cloud toggle to switch every DKIM CNAME (and any mail or smtp subdomain record) to DNS only (grey cloud).

2. CNAME Flattening at the Zone Apex (@)

Cloudflare applies CNAME flattening at the root domain (@) because RFC 1034 prohibits a CNAME record from coexisting with MX, NS, or SOA records at the apex. This does not interfere with Razix as long as MX and SPF live at @ and DKIM CNAMEs live on _domainkey subdomains.

However, if you previously switched CNAME Flattening to Flatten all CNAMEs under DNS → Settings, Cloudflare flattens subdomain CNAMEs into A/AAAA records—breaking DKIM resolution. Keep CNAME flattening on Flatten at apex (the default).

3. Active Cloudflare Email Routing Conflicts

If you previously tested Cloudflare Email Routing to forward hello@yourdomain.com to Gmail, Cloudflare locks your MX records and injects route1.mx.cloudflare.net, route2.mx.cloudflare.net, and route3.mx.cloudflare.net. Before adding Razix records, go to Email → Email Routing → Settings and click Disable Email Routing.


Step-by-Step: Configuring Cloudflare DNS for Razix

Step 1: Add Your Domain and Mailboxes in Razix

Log in to your Razix workspace, open Admin → Domains → Add Domain, and enter your root domain (acme.io, without https:// or www.). Create every mailbox and shared alias (support@, billing@, sales@) before switching DNS so incoming mail never bounces.

If you are migrating mail history from Google Workspace or Zoho first, complete your IMAP sync before swapping MX records—see our Google Workspace to Razix migration guide or Zoho Mail migration guide.

Step 2: Replace Legacy MX Records in Cloudflare

Open Cloudflare Dashboard, select your domain, and click DNS → Records:

  1. Delete any legacy MX records (SMTP.GOOGLE.COM, *.mail.protection.outlook.com, mx.zoho.com, or route1.mx.cloudflare.net) once your IMAP sync finishes.
  2. Click Add record, set Type to MX, Name to @, Mail server to the inbound MX hostname shown in Razix, Priority to 10, and TTL to Auto (or 5 min).

Step 3: Add the Three DKIM CNAME Records (Grey Cloud Only)

  1. Click Add record and select Type: CNAME.
  2. Paste only the subdomain prefix into Name ([token1]._domainkey—Cloudflare appends .yourdomain.com automatically).
  3. Paste [token1].dkim.amazonses.com into Target.
  4. Toggle Proxy status to OFF (grey cloud / DNS only) and click Save. Repeat for tokens 2 and 3.

Step 4: Merge Into a Single Valid SPF TXT Record

RFC 7208 allows only one v=spf1 TXT record at the apex. Two separate v=spf1 records trigger an immediate SPF PermError.

  • No existing SPF record: Add a TXT record with Name @ and Content v=spf1 include:[razix-spf-include] ~all.
  • Existing SPF record (such as Postmark, Resend, or Stripe): Edit that existing v=spf1 row to add Razix's include: mechanism inside the same string before ~all, removing retired mail-host includes like include:_spf.google.com.

Keep total DNS lookups inside your SPF record at 10 or fewer. Use our SPF record generator and 10-lookup counter to merge active senders without hitting a PermError—Razix's deliverability monitor also alerts you automatically if a future edit breaks SPF alignment.

Step 5: Add DMARC and Verify in Razix

Create a TXT record with Name _dmarc and Content:

v=DMARC1; p=none; rua=mailto:dmarc@[yourdomain.com]; fo=1

Click Refresh in your Razix domain records tab. Because Cloudflare propagates changes across its edge within seconds, Razix typically confirms verified MX, SPF, and DKIM status in under 2 minutes. After 48 hours of clean delivery, tighten p=none to p=quarantine or p=reject.

Verify Cloudflare propagation directly from your terminal if needed:

dig @1.1.1.1 yourdomain.com MX +short
dig @1.1.1.1 yourdomain.com TXT +short | grep spf1
dig @1.1.1.1 [token1]._domainkey.yourdomain.com CNAME +short
dig @1.1.1.1 _dmarc.yourdomain.com TXT +short

Or inspect live MX, unproxied DKIM, SPF, and DMARC status in our email DNS checker.

Hosting other domains elsewhere? Read our guides for Vercel DNS, Namecheap Advanced DNS, GoDaddy DNS, or AWS Route 53.


When Not to Switch: Honest Tradeoffs

Cloudflare + Razix is built for teams actively running mail across multiple domains, not every edge case:

  • Keep Google Workspace or Microsoft 365 if your team relies daily on Google Meet recordings, shared Drive permissions, or SharePoint/Teams on a single domain.
  • Use Cloudflare Email Routing if you only need a free one-way forwarder on a parked domain and never send authenticated replies from hello@yourdomain.com.
  • Consider Migadu if you hold 20 dormant domains that receive a few emails per month and live strictly in Thunderbird or Apple Mail. See our Razix vs Migadu comparison.

FAQ

Should DKIM CNAME records be proxied (orange cloud) in Cloudflare?

No. Every DKIM CNAME ([token]._domainkey) must stay on DNS only (grey cloud). Proxying turns the CNAME into Cloudflare edge IP addresses, preventing AWS SES and Razix from verifying your DKIM keys.

Can I keep Cloudflare Email Routing enabled alongside Razix?

No. Cloudflare Email Routing locks apex MX records to route1–3.mx.cloudflare.net. Disable Email Routing before adding Razix's MX record so incoming mail routes to your Razix mailboxes.

How fast does Razix verify Cloudflare DNS records?

Cloudflare updates its global authoritative edge in seconds. Once MX, SPF, and unproxied DKIM CNAMEs are saved, Razix typically validates the domain in under 2 minutes.

What happens if my SPF record exceeds 255 characters in Cloudflare?

Cloudflare automatically splits TXT strings longer than 255 characters into valid DNS chunks in its UI and API. Keep everything inside one v=spf1 record and stay at or below 10 DNS lookups.


Ready to unify your Cloudflare domains in one inbox? Connect your first domain on Razix and verify DNS in under 2 minutes, or compare Starter ($29/mo), Pro ($79/mo), and Business ($199/mo) tiers on our pricing page.

Switch to the email client built for momentum.

Connect your domains in under two minutes with automated record validation. No seat fees, no file limits, no inbox lag.