Thinking In Bytes

Thoughts On Technology And Small Business

Fixing SPF for iCloud Custom Email Domains

Subscribers to Apple’s iCloud+ have the option of using custom domains with iCloud Mail. You can either purchase a domain through iCloud or bring your own domain. The experience here relates to the bring your own domain option.

Configuring the domain to work with iCloud Mail requires several new domain DNS records. I manage the DNS records for my domain on Netlify. Apple verifies these records before completing the setup.

DNS Records

The Apple instructions give these DNS entries:

  • TXT - Special Code to verify ownership
  • MX #1
  • MX #2
  • DKIM
  • SPF (TXT Record with SPF Value)

Apple’s SPF record details are: SPF Record Details

Note, the Value for this record includes double quotes.

Value: "v=spf1 include:icloud.com ~all"

The Problem: SPF Record Validation Failure

After entering all the DNS records per instructions, the SPF part of Apple’s validation failed.

I attempted to fix the SPF failure by:

  • Deleting the SPF DNS record, then adding it again
  • Abandoning the entire custom domain setup process and then restarting

Neither of these actions resolved the problem. I did some internet searches about the double quotes in the SPF Record Value. The wisdom of the internet said that the double quotes " are needed because there are spaces in the Value.

The Solution

For reference, my DNS records are managed by Netlify. Just to confirm that the double quotes really are needed, I decided to remove them from the SPF record and retry the validation. This fixed the SPF validation failure.

For my domain with DNS hosted on Netlify, I had to remove the double quotes from Apple’s provided Value.

After removing the double quotes, the SPF validation passed and the setup process finished. This is how the SPF record looks in Netlify: Working SPF Record