Greetings,
Thank you for asking.
I am sorry to hear you are experiencing an issue with receiving and/or sending e-mails while using Coudflare for your domain name.
Is the CNAME proxied ?
Kindly, try switching e-mail related DNS records like A autoconfig
, A autodiscover
, A mail
, A webmail
to (DNS-only).
Make sure your MX record for your domain is pointed to an unproxied ( cloud)
mail.domain.com
.
Double-check your e-mail client MS Outlook and make sure you’re using mail.domain.com
for POP3/IMAP/SMTP.
Usually, the MX
record should point to a hostname such as mail
, and the A
(or CNAME
) type record for that hostname should be set to (DNS Only).
Furthermore, if you recently moved your domain to your Cloudflare account, I could try to troubleshoot at first sight without knowing anything other as it could be related to either:
- Wrongly setup e-mail related DNS records at the DNS tab of Cloudflare dashboard for your domain name
- Possibly missing some TXT /CNAME records (for SPF , DKIM, DMARC if so?)
- You are using a hostname like
yourdomain.com
which is(proxied) rather than the unproxied
(DNS-only) like
mail.yourdomain.com
(possible this one not existing or isinstead of being
) at the DNS tab of Cloudflare dashboard, in your e-mail client for sending/receiving server (MS Outlook, Mozilla Thunderbird, etc.)
May I suggest checking below article if your e-mail records (usually the A mail and the MX record) are configured properly while you are using Cloudflare for your domain name:
Regarding Cloudflare 521 error, may I suggest you to try looking into below articles to troubleshoot the issue:
Furthermore, before moving to Cloudflare, was your Website working over HTTPS connection?
May I ask what SSL option have you got selected under the SSL/TLS tab at Cloudflare dashboard for your domain ( Flexible, Full, Full Strict … )?
Here is a way to re-check if you correctly setup the SSL for your domain with Cloudflare:
In case you do not have an SSL certificate, you can use Cloudflare SSL, if so, kindly make sure you follow the instructions as follows on the below article to setup an SSL certificate using Cloudflare Origin CA Certificate:
Last but not least, kindly have a look here for more information regarding correct SSL settings at the SSL/TLS tab on Cloudflare dashboard:
Furthermore, do not skip below step and kindly re-check if Cloudflare is allowed to connect to your origin host to as follows in the below article:
Nevertheless, Cloudflare IP addresses list can be found here: