DNS records for iCloud+ custom email domains
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.comunder 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.
- Open Account → Hosting → your site → DNS.
- Under Moving email elsewhere?, find iCloud Mail and click Apply, then Apply template.
- 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.
- Add the verification TXT record from iCloud settings, as in steps 1 to 3 below.
Steps
- In iCloud settings, choose to add a custom domain and enter
example.ca. - Copy the TXT verification value.
- Go to Account → Hosting → your site → DNS and add the TXT record.
- Back at Apple, continue. Apple shows the MX, SPF, and DKIM records.
- Delete the existing MX record that points to
example.caormail.example.ca. - Add the two MX records, the SPF TXT, and the DKIM CNAME.
- Open Account → Hosting → your site → Email, open the More tab, find Mail routing, select the domain, and choose Remote.
- 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.
Still stuck? Ask us and we'll walk you through it.