I am attempting to setup my domain where Cloudflare forwards my emails (using Cloudflare Email Routing) and I use iCloud Custom Domains support to send emails.
MX records point to Cloudflare so thats all good. However, I need help setting up the SPF record. I know there can only be one SPF record.
Cloudflare recommends the following TXT record:
v=spf1 include:_spf.mx.cloudflare.net ~all
I’m not an expert on SPF, but as far as I know, asking your users to publish a record containing the “redirect” modifier is generally considered bad practice. With that said, this combined record should do the job:
I followed the instructions from iCloud at first in order to add the domain to iCloud. Once that was done, I removed the iCloud MX records from Cloudflare, also deleted the SPF and added the Cloudflare MX records plus the following SPF as advised: