Skip to content
Hire Me Login
Cloudflare + WordPress email

WordPress Emails Not Sending on Cloudflare Hosted Site? Fix the DNS Records That Broke Them

The site moved behind Cloudflare and everything got faster, except email. Contact forms, WooCommerce orders and password resets stopped arriving or started timing out. Cloudflare doesn’t carry email, but the way your DNS was set up during the move very often breaks it.

By Md Juwel Rana, WordPress Developer · Last updated · 12 min read

“WordPress emails not sending on Cloudflare hosted site” means a WordPress site whose DNS is managed by Cloudflare (usually with the orange-cloud proxy on) fails to send or deliver emails such as contact form notifications, WooCommerce order emails and password resets, typically because of proxied mail records, missing SPF or DKIM records, or form requests blocked by Cloudflare.

I’m Md Juwel Rana, a WordPress developer at Web Relife with more than 10 years of experience. I move client sites to Cloudflare regularly, and email is the thing that breaks most often after the move. It almost never needs a new plugin. It needs the right DNS records with the right cloud color next to them. Below is the exact order I use to fix WordPress emails not sending on Cloudflare hosted site setups, from the quickest check to the full DNS cleanup.

Why Are WordPress Emails Not Sending on a Cloudflare Hosted Site?

Short answer

WordPress emails not sending on Cloudflare hosted site is usually caused by a proxied (orange cloud) mail hostname that SMTP can’t pass through, SPF or DKIM records that weren’t copied when DNS moved to Cloudflare, an SPF record that relies on a proxied A record, Email Routing replacing your MX records, or Cloudflare blocking or caching the form request so WordPress never sends anything.

Cloudflare’s proxy handles web traffic. Its own troubleshooting guide says mail protocols like SMTP, IMAP and POP3 don’t work through the standard HTTP proxy, so any hostname used for mail must be set to DNS only. If your SMTP plugin connects to mail.yourdomain.com and that record is orange, the connection goes to Cloudflare and times out.

The second problem is records that never made it across. When you add a site, Cloudflare scans your old DNS and imports what it finds, but scans can miss records, especially DKIM keys under unusual names. Without DKIM and SPF, mail that does leave the server is rejected or junked.

The third one is subtle. Many SPF records use the a or mx mechanism to say “my web server may send mail”. Once the root A record is proxied, it resolves to Cloudflare’s IPs, not your server, so the a mechanism no longer covers the server that actually sends. Email from WordPress then fails SPF, even though nothing in WordPress changed.

Key takeaways

  • Every hostname used for mail must be DNS only (grey cloud).
  • Compare your old DNS with Cloudflare’s and copy missing SPF, DKIM and DMARC records.
  • Don’t rely on the a mechanism in SPF once the site is proxied; list the real sender.
  • Email Routing receives and forwards mail; it doesn’t send WordPress email.
  • A transactional email service also hides your origin IP from email headers.
WordPress emails not sending on Cloudflare hosted site because of proxied DNS records
SMTP can’t pass through Cloudflare’s proxy. Mail records must be DNS only.

Which DNS Records Does My Email Need on Cloudflare?

Enter your domain and pick where your mailbox lives and how WordPress sends. The tool lists the records to check in Cloudflare and the proxy status each one needs, the usual fix for WordPress emails not sending on Cloudflare hosted site. Always copy exact values (especially DKIM) from your providers’ dashboards.

Your result will show here.
Your site moved to Cloudflare and email broke?

Lost form leads and missing order emails cost more than the speed gain. I can audit your Cloudflare DNS, fix the mail records and SPF, set up a proper sending service and test every email your site sends.

  1. Send the detailsYour domain, where your mailbox lives and which emails are failing.
  2. Get a clear diagnosisI find the cause and tell you the fix and the price before any work starts.
  3. Fixed and testedEvery WordPress email delivered and authenticated, with Cloudflare still protecting the site.

Helpful to have ready: Cloudflare access (or an invite as a member) and a temporary WordPress admin login.

What Causes WordPress Emails Not Sending on a Cloudflare Hosted Site?

These are the causes I find behind WordPress emails not sending on Cloudflare hosted site, and the sign that points to each.

CauseTypical signFix
Mail hostname proxied (orange)SMTP connection timeoutStep 3
SPF or DKIM not importedSent, then rejected or in spamStep 4
SPF uses a or mx with proxied recordsSPF fail from your server IPStep 5
Two SPF recordsSPF permerrorStep 5
MX records wrong or missingMailbox stopped receivingStep 2
Email Routing replaced MXForwarding works, hosted mailbox emptySee “Email Routing explained”
Host blocks outbound SMTPFails on port 25 or 587Step 6
WAF or Bot Fight Mode blocks formsForm errors, nothing in email logStep 8
Cached form pagesForm fails after a few hoursStep 9
Sending from the web serverOrigin IP visible, poor deliveryStep 6

How Do I Fix WordPress Emails Not Sending on a Cloudflare Hosted Site?

Before you start: export your Cloudflare DNS records (DNS > Records > Export) and keep the old host’s DNS zone if you still have it. Don’t switch the root domain to DNS only just to fix email; that exposes your server and isn’t needed.

Steps 1 and 2 show where mail fails. Steps 3 to 6 fix DNS and sending. Steps 7 to 10 cover forms, caching and testing.

STEP 1

Log what WordPress sends

Install an email log (WP Mail SMTP, FluentSMTP and Check & Log Email have one) and send a test email and a test form entry. If nothing is logged, WordPress never tried to send, and the problem is the form or Cloudflare blocking it (Steps 8 and 9). If it’s logged with an error, read the error; a timeout points to Step 3.

STEP 2

Compare old and new DNS

Put your old host’s DNS zone next to Cloudflare’s DNS > Records. Check every MX, TXT and CNAME record, especially SPF (starts with v=spf1), DKIM (names containing _domainkey) and DMARC (_dmarc). Copy anything missing; a lost DKIM key is behind many cases of WordPress emails not sending on Cloudflare hosted site setups. You can check what the world sees with:

dig yourdomain.com mx +short
dig yourdomain.com txt +short
STEP 3

Grey-cloud every mail hostname

Find the hostname your SMTP plugin connects to and the hostnames your MX records point to. Each of their A or CNAME records must be “DNS only”. Cloudflare’s own documentation is clear that mail protocols don’t pass through its HTTP proxy. This single setting fixes most SMTP timeouts behind WordPress emails not sending on Cloudflare hosted site setups. Keep the website records (root and www) orange.

STEP 4

Restore SPF, DKIM and DMARC

Add the DKIM records your email provider shows in its dashboard, publish one SPF record and add DMARC with p=none to start. Use the tool above to see which entries your setup needs. Without these, WordPress emails not sending on Cloudflare hosted site often turns into emails sent but never received.

STEP 5

Fix SPF for proxied records

If your SPF record contains a or mx and you send from the web server, replace them with the server’s real IP (ip4:) or, better, stop sending from the server. Make sure there is only one TXT record starting with v=spf1; two of them is a permanent error.

STEP 6

Send through a transactional service

Connect your SMTP plugin to Brevo, Amazon SES, Mailgun, Postmark or your Google Workspace or Microsoft 365 account. These use their own servers and ports, so a host that blocks port 25 doesn’t matter, and they sign mail with DKIM. As a bonus, emails no longer reveal your server’s IP address in their headers.

STEP 7

Check the From address

Set the From address in your SMTP plugin, WooCommerce and form plugins to an address on your own domain that your sending service is verified for. A From address on gmail.com or another domain will fail DMARC no matter how good your Cloudflare DNS is.

STEP 8

Let form requests through

Open Security > Events in Cloudflare and look for blocked POST requests to your form, admin-ajax.php or /wp-json/. Bot Fight Mode, a strict WAF rule or a country block can stop real visitors’ submissions. Add a skip rule for those paths or use Turnstile on the form instead of blocking.

STEP 9

Don’t cache pages with forms

If a “Cache Everything” rule or APO caches a page with a form, the form’s security token (nonce) goes stale and submissions are rejected hours later, often silently. Exclude form pages from Cloudflare caching or make sure your form plugin refreshes its token with JavaScript.

STEP 10

Test every email type

Send a password reset, a contact form entry and, on a store, a test order. Check that each arrives at Gmail and Outlook, and open the original message to confirm SPF, DKIM and DMARC pass. Then wait a day and test again, because DNS caches can hide a mistake for hours.

Still dealing with WordPress emails not sending on Cloudflare hosted site? I’ll fix the DNS and the sending setup and test every email.

Fix my site’s email

Can Cloudflare Email Routing Send My WordPress Emails?

Short answer

No. Cloudflare Email Routing receives mail for addresses on your domain and forwards it to another inbox. It doesn’t give WordPress an SMTP server to send through, so you still need a sending service.

Turning Email Routing on also changes your MX records. Cloudflare’s documentation notes that it manages your MX records and may add others, which can conflict with another mail provider. If you had mailboxes at your host or Google Workspace, they stop receiving once Email Routing takes over. Cloudflare’s advice is to turn Email Routing off if you use another provider, so it removes its records, and then set your own.

Email Routing also adds its own SPF include. If you already had an SPF record, check you didn’t end up with two. Merge them into one, for example:

v=spf1 include:_spf.mx.cloudflare.net include:spf.brevo.com ~all

Forwarded mail has its own deliverability quirks, so a contact form that sends to an address that forwards to Gmail can land in spam even with a perfect setup. Where possible, send form notifications straight to the real inbox.

If you rely on Email Routing for a contact address and also see WordPress emails not sending on Cloudflare hosted site setups, check both paths separately: first that WordPress sends (the email log), then that Cloudflare forwards (Email Routing > Activity log).

Why Do Contact Forms Say “Sent” but No Email Arrives?

“Sent” in a form plugin means WordPress handed the message to the mail system. What happens next depends on everything above. If the email log shows the message, the problem is delivery: DNS, authentication or the receiving inbox. If the log is empty, the submission never got that far, and Cloudflare’s Security Events will usually show why.

For Contact Form 7, my guide on Contact Form 7 not receiving emails covers form-specific settings. For the general case, WordPress emails sent but not received explains how to trace a message. On WooCommerce stores, if order emails reach Gmail but land in Outlook’s Junk folder after the move, see WooCommerce order emails going to Outlook junk.

In my experience, WordPress emails not sending on Cloudflare hosted site is fixed for good once three things are true: mail hostnames are grey, there is one correct SPF record plus DKIM and DMARC, and WordPress sends through a real email service instead of the web server.

Who Fixes WordPress Emails Not Sending on a Cloudflare Hosted Site?

Web Relife is a WordPress development service run by Md Juwel Rana, a full stack developer with 10+ years of experience working with US businesses. For WordPress emails not sending on Cloudflare hosted site, Web Relife audits Cloudflare DNS and security rules, fixes MX, SPF, DKIM and DMARC records, connects a transactional email service and tests every email the site sends.

If you’d rather hand it off, hire me here or message me on WhatsApp.

WordPress Emails Not Sending on Cloudflare Hosted Site: FAQ

Does Cloudflare block WordPress emails?

Not directly. Cloudflare doesn’t carry outgoing mail, but proxied mail records, missing DNS records or blocked form requests can stop emails.

Why does my SMTP plugin time out after moving to Cloudflare?

The SMTP hostname is proxied (orange cloud). Set it to DNS only or use your provider’s own SMTP server name.

Should I turn off the Cloudflare proxy to fix email?

Only for mail hostnames. Keep the website records proxied; turning them off exposes your server.

Can MX records be proxied in Cloudflare?

No. MX records are always DNS only, and the hostname they point to must also be DNS only.

Can Cloudflare Email Routing send email from WordPress?

No. It only receives and forwards. Use an SMTP or API email service to send.

Why did my SPF start failing after moving to Cloudflare?

If SPF relies on the a or mx mechanism and those records are proxied, they resolve to Cloudflare IPs instead of your server. List the real sender instead.

Do I need a plugin to send email on Cloudflare?

You need an SMTP plugin connected to a proper email service. It fixes most Cloudflare email issues and hides your origin IP.

Want Cloudflare Speed and Working Email?

I’ve fixed WordPress emails not sending on Cloudflare hosted site for many clients in more than 10 years of WordPress work. You get:

  • Cloudflare DNS audited and mail records set to DNS only
  • One clean SPF record plus DKIM and DMARC
  • A transactional email service connected
  • Forms, resets and order emails tested end to end

Sources

  1. Cloudflare Docs: Troubleshooting email issues (accessed November 2026)
  2. Cloudflare Docs: Email undeliverable when using Cloudflare (accessed November 2026)
  3. Cloudflare Docs: Email Routing (accessed November 2026)
  4. WP Mail SMTP: Fix Cloudflare not sending WordPress emails (accessed November 2026)
  5. Plesk forum: SMTP timeout fixed by un-proxying the mail subdomain (accessed November 2026)

Md Juwel Rana is a full stack WordPress developer and the founder of Web Relife. He sets up Cloudflare, hosting and email delivery for WordPress sites in the US. Hire me here.