DNS records for iCloud+ custom email domains

icloud, apple, custom email domain, mx, spf, dkim, dns · 0 found this helpful

iCloud+ lets you send and receive email at your own domain, such as [email protected]. Apple tells you which records to create. This article shows what they look like and how to add them at Barbrick.

Important: Pointing MX to iCloud moves all mail for the domain to Apple. If you also have mailboxes at Barbrick on example.ca, they stop receiving. Use iCloud for a domain that does not use Barbrick mailboxes. You can't split one domain's mailboxes between iCloud and Barbrick, because all incoming mail goes wherever the MX records point.

Before you start

  • You need an iCloud+ subscription.
  • Your DNS must be managed at Barbrick. See Use Barbrick's nameservers.
  • Add the domain on an iPhone or iPad in Settings → [your name] → iCloud → iCloud Mail → Custom Email Domain, or on the web at icloud.com under Custom Email Domain.

Records for example.ca

Purpose Type Name Value TTL Priority
Verification TXT @ apple-domain=aBcDeFgHiJkLmNoP 3600
Mail delivery 1 MX @ mx01.mail.icloud.com 3600 10
Mail delivery 2 MX @ mx02.mail.icloud.com 3600 10
SPF TXT @ v=spf1 include:icloud.com ~all 3600
DKIM CNAME sig1._domainkey sig1.dkim.example.ca.at.icloudmailadmin.com 3600

The verification value is unique to your account, and the DKIM target includes your domain name. Copy every value exactly as Apple shows it.

DMARC is optional but recommended.

Type Name Value TTL
TXT _dmarc v=DMARC1; p=none; rua=mailto:[email protected] 3600

See DMARC.

Quickest way

The DNS page has a template that does steps 5 to 7 for you.

  1. Open Account → Hosting → your site → DNS.
  2. Under Moving email elsewhere?, find iCloud Mail and click Apply, then Apply template.
  3. We replace your MX and SPF records, and add Apple's DKIM record, and set Mail routing to Remote. Mailboxes here stop receiving new mail.
  4. Add the verification TXT record from iCloud settings, as in steps 1 to 3 below.

Steps

  1. In iCloud settings, choose to add a custom domain and enter example.ca.
  2. Copy the TXT verification value.
  3. Go to Account → Hosting → your site → DNS and add the TXT record.
  4. Back at Apple, continue. Apple shows the MX, SPF, and DKIM records.
  5. Delete the existing MX record that points to example.ca or mail.example.ca.
  6. Add the two MX records, the SPF TXT, and the DKIM CNAME.
  7. Open Account → Hosting → your site → Email, open the More tab, find Mail routing, select the domain, and choose Remote.
  8. Return to Apple and select Verify or Done.

Apple checks automatically. This may take up to an hour. Allow up to 24 hours.

Combine SPF

You may have only one SPF record. If your website also sends mail through Barbrick, merge them. Take the +a, +mx, +ip4:, and include: entries from the existing SPF record in Account → Hosting → your site → DNS, before you replace it, and add them to Apple's.

example.ca.  3600  IN  TXT  "v=spf1 include:icloud.com +a +mx +ip4:203.0.113.25 include:<Barbrick relay> ~all"

See SPF.

Check

dig MX example.ca +short
dig CNAME sig1._domainkey.example.ca +short
10 mx01.mail.icloud.com.
10 mx02.mail.icloud.com.
sig1.dkim.example.ca.at.icloudmailadmin.com.

If something goes wrong

  • Apple cannot verify the TXT. Check the name is the root (@) and the value is exact.
  • Mail not arriving. Old MX is still present, or mail routing is Local.
  • Duplicate SPF. Merge them into one record.

Was this helpful?

Still stuck? Ask us and we'll walk you through it.