Hi guys, I’ve 4 websites running Cloudflare and a new one on the way so first of I’d like to appreciate all the good work that it’s been done with Cloudflare and how much this community has helped me in the past years, where I’ve lurked for answers while not being a registered user. However, today I had to create my own account and first topic because of the following issue:
We’ve a new website, which we setup our DNS Records according to what our Zone Editor shows in the cPanel, but something weird happened with the emails, and nothing seemed to arrive, until we turned off Cloudflare.
We’ve a A record named “webmail” in and a CNAME record named “mail” also in . As it’s a website with many many years, I haven’t made a lot of questions as why this records exist as they are, and we haven’t created any new MX record as no MX related to mail is shown in our Zone Editor. Still we would like to know how we can fix this so that we can enable Cloudflare and receive emails.
We’ve those MX records already in Cloudflare too, with their names being the domain. So apparently we’ve also the MX records setup along with the CNAME and A record as mentioned before. So why are the emails still not working when Cloudflare is enabled?
There’s no error message, the emails simply won’t arrive to our mailbox. We tried sending test emails from our personal emails (not from this domain emails) to all of the emails on this domain and none would arrive. We didn’t get any message claiming any error sending them but we kept checking that no new email ever arrived to our mailboxes. As a press website we receive dozens of communications every hour and we simply stopped receiving any new emails. There’s no error message, the emails simply won’t arrive to our mailboxes. So we disabled Cloudflare and reverted to the original name servers and all the emails that didn’t arrive before came through and appeared.
That is very strange. You could try pausing Cloudflare and see if it’s caused by something that is proxied. If that doesn’t work and all your DNS records match then you’ll need to reach out to your mail host for assistance with troubleshooting this.
Ironically I am having exactly the same problem with my domain. It’s been working successfully through Cloudflare for years. Then my hosting provider was acquired by Crazy Domains in November 21. Just last week however my email suddenly stopped working. I also go through cPanel (Plesk) but I have another domain which doesn’t go through Cloudflare on the same account which is working fine.
At this time I cannot tell which system is at fault, Cloudflare or Crazy Domains. What I can say is that Crazy Domains tells me to talk to Cloudflare and refuses to investigate further because it’s “not at their end”. Sigh.
Sounds to me like your e-mail client was configued to use proxied domain.com instead of unproxied (DNS-only) mail.domain.com for POP3/IMAP/SMTP.
I’d suggest you to double-check and set the “E-mail Routing” to “Remote/External” as far as you are using different e-mail provider? so cPanel would respect and treat the DNS “as-is” like that, instead of “local”, just in case (had issues with it on 3 domains).
even on cPanel upgrade, it reverted back to “local” instead of the set “remote” for “E-mail routing”
Make sure DNS records (MX) at Cloudflare for your domain(s) containt correct hostname (value).
Double-check which receiving/sending servera is your e-mail client using.
Otherwise, the SSL certificate expired?, and if it cannot be renewed via AutoSSL as far as it tries to renew it for www, non-www, mail, and any other sub-domain, if one hostname fails, the new SSL certificate will not be issued via cPanel (AutoSSL/Let’s Encrypt).
If that’s the reason, then as already suggested, temporary use the option “Pause Cloudflare for this site” from Cloudflare dashboard, wait for 20mins, try to renew SSL, upon success, deactivate this option
I’ve been quiet for a few days trying to work this out and test it but again the emails stopped coming, like I said before the webmail A record and the mail CName record are and the MX records are just the same as @domjh mentioned I don’t know what else to do.
I paused Cloudflare and the emails came through. So it must be something that shouldn’t be proxied right? What if the “webmail” A record should be “‘mail” instead just as CName is named “mail”? Although in the CPanel Zone Editor it says webmail to A and mail to CName