Cloudflare Email Routing: Free Email on Your Custom Domain
Set up Cloudflare Email Routing on your custom domain for free: fix the MX conflict error, forward to Gmail, add DMARC and test it step by step.
By marouaneTech · Published · 8 min read
Cloudflare Email Routing gives you free email addresses on your custom domain, like hello@yourdomain.com, and forwards everything they receive to an inbox you already have, such as Gmail. It only receives and forwards: to send or reply from that address, you need a separate sending service.
Last verified: November 2026.
I'm marouaneTech, and this is exactly how I set up hello@devtoolpick.com, including the error that stopped me halfway and the old registrar records I had to delete to fix it.
What you need before you start
- A domain that uses Cloudflare DNS. My domain is registered at Namecheap, with its nameservers pointed to Cloudflare. I covered that switch in how I moved my domain's DNS to Cloudflare.
- An inbox to forward to. I used my Gmail.
- A look at your existing email records. If your registrar had email forwarding switched on, its old MX and SPF records are still in your DNS, and they will block the setup. That's exactly what happened to me in step 3.
Step 1: Add your domain to Email Routing
In the Cloudflare dashboard, I went to Email Service → Email Routing, selected Onboard Domain and chose devtoolpick.com. Cloudflare's docs list the same path under Compute → Email Service → Email Routing.
Step 2: Verify your Gmail as a destination address
Email Routing only forwards to addresses you've proven you own. I added my Gmail under Destination addresses. Cloudflare sent a verification email to it, and I clicked Verify email address in that email.
Until you do this, any rule that points to the address stays disabled.

Step 3: Existing non-Cloudflare MX records conflict with Email Routing
When Cloudflare tried to add its email records, it stopped with this error:
Existing non-Cloudflare MX records conflict with Email Routing. Remove or update them and try again.Cause: Cloudflare had copied my old mail records from Namecheap's free email forwarding when I added the domain, and Email Routing needs Cloudflare's own MX records on the root domain. My DNS still had:
| Type | Name | Value | Priority |
|---|---|---|---|
| MX | @ | eforward1.registrar-servers.com | 10 |
| MX | @ | eforward2.registrar-servers.com | 10 |
| MX | @ | eforward3.registrar-servers.com | 10 |
| MX | @ | eforward4.registrar-servers.com | 15 |
| MX | @ | eforward5.registrar-servers.com | 20 |
| TXT | @ | v=spf1 include:spf.efwd.registrar-servers.com ~all |
The fix:
- Open DNS → Records for your domain in the Cloudflare dashboard.
- Delete every MX record that doesn't point to Cloudflare. For me, that was all five
eforwardrecords. - Delete the old SPF record if its mail service is gone: a domain should have only one SPF record, and Namecheap's no longer did anything once its forwarding was gone. If you still send mail through another provider, don't delete its SPF entry: merge Cloudflare's
include:into your existing record instead. - Go straight back to Email Routing and run the setup again, so Cloudflare adds its own records (step 4).
Cloudflare's domain configuration docs explain the rule: Email Routing needs Cloudflare's own MX records on the root domain, and it can't be used together with an external mail server.
Do the deletion and the next step back to back. Between them, your domain has no MX records, so mail sent in that window can bounce.
Step 4: The DNS records Cloudflare adds
With the old records gone, I ran the setup again and Cloudflare added these to the root domain:
| Type | Name | Value | What it does |
|---|---|---|---|
| MX | @ | route1.mx.cloudflare.net (priority 85) | Receives your mail |
| MX | @ | route2.mx.cloudflare.net (priority 67) | Receives your mail |
| MX | @ | route3.mx.cloudflare.net (priority 97) | Receives your mail |
| TXT | cf2024-1._domainkey | DKIM public key | Signs forwarded mail |
| TXT | @ | v=spf1 include:_spf.mx.cloudflare.net ~all | Authorizes Cloudflare to forward for your domain |
The priorities are assigned by Cloudflare, so yours may differ. You don't need to type any of these yourself.

Step 5: Create the hello@ rule (and keep catch-all off)
Under Routing Rules, I created a rule with the email pattern hello, the action Send to an email, and my Gmail as the destination.

Cloudflare also offers a catch-all rule. It forwards "every email sent to your domain, including misspelled local parts" to one destination. I left it disabled.
My reason: with catch-all on, every made-up address at my domain is accepted and forwarded, including whatever spammers guess. With only hello@, mail to any other address isn't delivered to me. If you'd rather not miss typos, catch-all can also drop mail instead of forwarding it.

Step 6: Add a DMARC record
DMARC tells receiving mail servers what to do with mail that claims to come from your domain but fails authentication. It also sends you reports. In DNS → Records, I added a TXT record named _dmarc:
v=DMARC1; p=none; rua=mailto:hello@devtoolpick.comp=none only monitors: nothing gets blocked, and the aggregate reports go to hello@, which forwards them to my Gmail. It's a safe first policy while you learn what sends mail as your domain.
Cloudflare also has a free DMARC Management feature that reads these reports for you. It's "Available on all plans" for domains on Cloudflare DNS.
The _dmarc record appears in the DNS screenshot in step 4.
Step 7: Test it
My proof came from real mail. Messages sent to hello@devtoolpick.com by outside senders, including an automated notification from an external service, arrived in my Gmail.
To test yours right away, send a message to your new address from a different account. On the first test, check your spam folder too.
If nothing arrives, open the Email Routing Activity Log. It lists each received message with its action, such as Forwarded, Dropped or Rejected, and you can expand one to see its SPF, DKIM and DMARC results.
What Email Routing can't do
Email Routing is a forwarder, not a mailbox. Three limits matter:
- You can't send or reply as
hello@. Replies go out from your Gmail address. To send from your domain, you need a separate sending service set up with its own DNS records, and Gmail's "Send mail as" or another mail client. I haven't set one up, so I'm not recommending a provider. - There's no mailbox. Cloudflare says it doesn't store or read your emails. Its Email Routing setup screen says: "Private by design. We don't store or look into your emails." Your forwarded mail is kept only in your Gmail.
- It replaces other mail servers. You can't run Email Routing alongside another provider's MX records on the same domain.
For DevToolPick, receiving is enough for now. If you need full mailboxes, see what email costs on top of hosting.
Bonus: sending form leads from a Worker
There's one kind of sending Email Routing does allow on the free plan: a Worker can email your own verified destination addresses. The contact form on my services page uses this. A small Worker checks each inquiry, then emails it to my verified address through a send_email binding:
"send_email": [{ "name": "CONTACT_EMAIL" }]await env.CONTACT_EMAIL.send(new EmailMessage(SENDER, env.CONTACT_TO, rawEmail));CONTACT_TO is my verified Gmail, stored as a Worker secret. One lesson from launch: secrets must be added as runtime Variables and Secrets on the Worker, not as build variables. The form failed until I fixed that.
Cloudflare's docs now recommend a newer structured send() method. The EmailMessage API I use is still supported for backward compatibility.
FAQ
Can I send email from my domain with Cloudflare Email Routing?
No. It only receives and forwards. To send or reply as you@yourdomain.com, add a separate sending service. A Worker can email your own verified addresses, which is enough for contact form notifications.
Is Cloudflare Email Routing really free?
Yes. Cloudflare lists it as available on Free and Paid plans, with unlimited inbound routing. You pay only for the domain itself.
Does it work with Gmail?
Yes. I forward hello@devtoolpick.com to my Gmail. You verify the Gmail address once by clicking the link Cloudflare sends.
Should I turn on catch-all?
Only if you want mail to any address at your domain. It also forwards spam sent to made-up addresses. I keep it off and use one hello@ rule.
Do I need SPF, DKIM and DMARC?
Cloudflare adds the SPF and DKIM records for you during setup. DMARC is a separate TXT record you add yourself. p=none is a safe start because it only reports.
Can I forward to more than one inbox?
Each rule sends to one destination address, but you can create several rules: up to 200 per domain, with up to 200 verified destination addresses per account.
Sources (checked 5 November 2026)
Prices, limits and quotes in this guide come from these official pages. The date is when I last checked each one against what the guide says.
- Cloudflare: Email Routing overviewchecked
- Cloudflare: Email Service pricingchecked
- Cloudflare: Email Service limitschecked
- Cloudflare: Route emailschecked
- Cloudflare: Email routing addresseschecked
- Cloudflare: Domain configurationchecked
- Cloudflare: Email Routing analyticschecked
- Cloudflare: Email Routing postmasterchecked
- Cloudflare: Send emails from Workerschecked
- Cloudflare: DMARC Managementchecked