Guide per mail provider

Set up the SPF record for iCloud Mail

For receivers to accept mail from iCloud Mail with your domain as sender, the domain’s SPF record has to name the iCloud Mail sending servers. This guide shows the value iCloud Mail specifies and what to watch when publishing it.

iCloud Mail: all records at a glance

The SPF value for iCloud Mail

For custom domains with iCloud Mail Apple names the SPF record v=spf1 include:icloud.com ~all, as a TXT record on the apex domain. Apple recommends a TTL of 3600 seconds for all records.

If an SPF record already exists, for example from the web host or a newsletter tool, it is not replaced: Apple describes inserting include:icloud.com into the existing record, before ~all. A second TXT record with v=spf1 would invalidate both.

DNS
v=spf1 include:icloud.com ~all

How to set up SPF for iCloud Mail

The SPF record is created at the domain’s DNS host:

  • Check at the DNS host whether a TXT record with v=spf1 already exists for the apex domain.
  • If there is none: create a TXT record for the apex domain (@) with the value above.
  • If there is one: insert include:icloud.com before ~all in the existing record.
  • Finish the setup in the iCloud settings and cross-check with the SPF checker.

Publishing at the DNS host

The SPF record is a TXT record on the apex domain. Where you create it depends on who manages the domain’s DNS zone; the name server part of the domain check shows that. The guides per host below walk through the respective DNS editor.

Verify and keep an eye on it

The SPF checker below resolves the record completely, counts the DNS lookups and shows whether iCloud Mail is included. DomainWarn keeps checking the record afterwards and alerts you when it changes, becomes invalid or breaks the lookup limit.

Frequently asked questions

What is the SPF record for iCloud Mail with a custom domain?
v=spf1 include:icloud.com ~all as a TXT record on the apex domain. With an existing record, include:icloud.com is added before ~all.
Can I keep iCloud Mail and my web host in the same SPF record?
Yes. Both mechanisms go into the same record, for example v=spf1 include:icloud.com include:_spf.example-host.com ~all. Two separate SPF records are invalid.
What happens if there are two SPF records?
Then SPF is invalid for the domain and receivers evaluate neither record. All senders belong in a single TXT record with v=spf1.
Check now

Free SPF record check and lookup: syntax, includes, the 10 DNS lookup limit and the closing qualifier. Shows whether your domain blocks forged senders.

DomainWarn checks SPF, DKIM, DMARC, DNS and certificates of all client domains regularly and reports changes before mail lands in spam.

Monitor this domain continuously14-day free trial, no credit card.

Publishing at your host

The mail provider specifies the value; it is created at the domain’s DNS host. Pick your host for the way to the DNS editor.

All hosts at a glance

The same guide for other mail providers

All mail providers at a glance