Cloudflare blocks email connection

I recently started using cloudflare as CDN but since then I can’t connect to my mail account that comes with the webserver anymore. The mail server is hosted together with my website at For email access I use gmail (POP3) and linked the address [email protected] to gmail as described here. Everything worked fine until I added cloudflare but since then I just see that gmail fails to connect to the mail server: “Connection timed out”.

All original DNS entries were successfully transferred to cloudflare - especially MX and the TXT entries for DKIM, DMARC and

I played around a lot with the DNS entries but I’m close to giving up. I don’t see any issue with them but obviously I fail to understand what exactly is wrong.

I’d be super glad to hear any hints !
Thanks so much! :slight_smile:

Cloudflare only proxies HTTP/S traffic, so the DNS records used for email have to be DNS-only.

Your MX record points to a record that is proxied, so you cannot receive emails. Create a new record that is not proxied, and point your MX record to it to solve this.

The records you use for POP3/IMAP/SMTP also need to be DNS-only.


oh wow thank you so much! It works fine now! have a great day! :slight_smile:


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.