📬 InboxFix KitAll guides

SPF + DKIM + DMARC for iCloud+ Custom Email Domain and Mailgun

Updated 2026-11-18. Lookup counts measured live from public DNS on that date.

Using iCloud+ Custom Email Domain for your inbox and Mailgun to send? You need one SPF record covering both, DKIM in both, and one DMARC record. Mailgun needs include:mailgun.org in the same record.

TypeHostValue
TXT@v=spf1 include:icloud.com include:mailgun.org ~all
TXT_dmarcv=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com; adkim=r; aspf=r

SPF lookups used by this record: 10 of 10 (measured 2026-11-18). You have room for 0 more.

DKIM: turn it on in both services

iCloud+ Custom Email Domain: iCloud Settings > Custom Email Domain > your domain > View DNS records: publish the CNAME sig1._domainkey exactly as shown.

Mailgun: Mailgun > Sending > Domains > your sending domain > DNS records: publish the TXT DKIM record (selector shown, often k1 or pic) and the SPF TXT on the sending (sub)domain > Verify DNS settings.

Then tighten DMARC

After 2-4 weeks of reports showing both iCloud+ Custom Email Domain and Mailgun passing, change the DMARC record to p=quarantine, and later p=reject.

Check your own domain in 5 seconds

Free SPF, DKIM and DMARC check. If something is broken, get the exact records for your setup (€29 one-time).

FAQ

Can I have two SPF records?

No. A domain must publish exactly one TXT record starting with v=spf1. Two records cause a permanent error and SPF fails for every email. Merge all include: entries into one record.

Should I use ~all or -all?

Use ~all (softfail) while you are setting things up and reading DMARC reports. Once every legitimate sender passes, -all is stricter. DMARC policy matters more than the SPF qualifier for most receivers.

How do I check that iCloud+ Custom Email Domain + Mailgun passes?

Send an email to a Gmail address, open it, click the three dots and choose Show original. You want SPF: PASS, DKIM: PASS and DMARC: PASS.

How long do DNS changes take?

Usually 5 to 60 minutes, depending on the TTL of the old record. Some registrars take a few hours.

Will adding Mailgun break my iCloud+ Custom Email Domain email?

Not if you edit the existing SPF record instead of adding a second one, and stay under 10 lookups.