521 upstream error.

Hello! I have been using my email address for almost a year and now I can't receive any emails through with this error coming through - does anyone have a fix?
No description
22 Replies
Chaika
Chaika•15mo ago
If you go to Email Routing -> Overview -> Activity log, what do you see there about the email? Magic link: https://dash.cloudflare.com/?to=/:account/:zone/email/routing/overview
Monsterting
MonstertingOP•15mo ago
Just a long list of errors with emails not being received
Chaika
Chaika•15mo ago
You should be able to click and expand and potentially get some more info
Monsterting
MonstertingOP•15mo ago
Unknown error: permanent error (521): 5.3.0 Upstream error, please check https://developers.cloudflare.com/email-routing/postmaster for possible reasons why. 4VMNw1vgNMRt Is the rejected reason
Chaika
Chaika•15mo ago
What's the destination you're forwarding it to? a gmail?
Monsterting
MonstertingOP•15mo ago
Its setup through the custom email feature with iCloud+ rather than Gmail
Chaika
Chaika•15mo ago
If you're using the custom email feature with ICloud, shouldn't be using Email routing you're forwarding to an address on the same domain as its recieving on?
Monsterting
MonstertingOP•15mo ago
Okay, so would I just need to remove the email routing then?
Chaika
Chaika•15mo ago
you'd need to restore the records back to the icloud defaults https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-registrar/icloud-custom-email-domains/ shows a screenshot of what they should look like, -- probably just have the wrong MX Records/need to recreate
iCloud Custom Email Domains · Cloudflare Support docs
With iCloud Custom Email Domain , you can now purchase a custom domain right from iCloud Settings through Cloudflare and have it automatically set up …
Monsterting
MonstertingOP•15mo ago
Thank you ! I will give this ago and see it it works Hello! that has not worked
Chaika
Chaika•15mo ago
I still see Cloudflare's email routing MX records at gardnerindustries.co.uk. In some cases, gmail/etc may cache the records for a bit as well, wouldn't expect it to work instantly
Monsterting
MonstertingOP•15mo ago
I have these at the top of the DNS records page now
No description
Monsterting
MonstertingOP•15mo ago
So do I need to have anything set if I look in, Email routing - routes? I'm just getting address does not exist now errors.
Chaika
Chaika•15mo ago
Your MX addresses are still unchanged You need to disable email routing entirely, and replace the email routing MX records with the icloud ones in the screenshot of the guide. You also are lacking the spf record looks like, also in that guide
Monsterting
MonstertingOP•15mo ago
I have removed the custom address from email routes and I have deleted the destination email
Chaika
Chaika•15mo ago
that's not enough, when you enabled Email Routing it replaced your MX Records, which decide where mail goes to. Right now, mail is just going to Email routing still and broken. To switch back to ICloud handling your email, you need to disable Email Routing and replace the MX Records
Monsterting
MonstertingOP•15mo ago
Shall I delete the current records and just create new ones?
Chaika
Chaika•15mo ago
The current MX Records pointing to Cloudflare, yea. You'll be unable to modify them unless you disable Email routing first though (under Email -> Email routing -> settings)
Monsterting
MonstertingOP•15mo ago
Okay I have done that, assuming I need to add the records shown in that link you sent?
Chaika
Chaika•15mo ago
yea the two MX records going to mx01 and mx02 icloud. You should also have a txt record on your domain starting with v=spf1, if you don't, copy that. The DKIM one as well, which looks like it just needs to be same name, but content of sig1.dkim.<yourdomain>.at.icloudmailadmin.com, so sig1.dkim.gardnerindustries.co.uk.at.icloudmailadmin.com in your case
Monsterting
MonstertingOP•15mo ago
Thank you very much! I will enter that and see what happens and come back to you Hello! I made those changes and it seems to have resolved the issue 😀 thanks so much for your help!
user2350972087
user2350972087•10mo ago
Hello. Looks like I am not alone, but I am getting the following error: Unknown error: permanent error (521): 5.3.0 Upstream error, please check https://developers.cloudflare.com/email-routing/postmaster for possible reasons why. Oi8dHH3nG3C2 Does anyone have experience with this?

Did you find this page helpful?