How-to
Send to Apple Hide My Email addresses
Deliver email to Sign in with Apple private relay addresses (privaterelay.appleid.com) by registering your sending domain and return-path subdomain with Apple, then clear earlier bounces.
When someone signs in to your app or website with Sign in with Apple and chooses Hide My Email, you don’t get their real address. You get a relay address such as x7k2m9qp4d@privaterelay.appleid.com, and Apple forwards mail sent to it to the person’s real inbox.
Apple only forwards mail from senders that the app’s developer has registered. Email from any other sender bounces, even when your domain is verified in Emailit and every other email you send arrives. This guide shows what to register with Apple for mail sent through Emailit, and how to clean up the bounces from before.
Does this affect you?
Only if your app or website offers Sign in with Apple. To check, search your contacts or Email APIEmails for privaterelay.appleid.com. Bounced emails to those addresses mean the relay rejected your mail.
Hide My Email addresses that people create themselves with iCloud+, for example to sign up for a newsletter, aren’t tied to an app. They forward mail from any sender, so you don’t need to register anything for them.
What Apple checks
Apple’s private email relay accepts a message when it comes from a registered email source and is authenticated:
- SPF: the message’s envelope sender (return path) must pass SPF, and its domain must exactly match a domain you registered.
- DKIM: or the message must carry a valid DKIM signature whose
d=domain exactly matches the domain in theFromaddress.
Emailit sends every message with a return path on your emailit. subdomain, which has its own SPF record, and signs it with DKIM using your own domain as d=. See DNS records. Once your domain is verified in Emailit, both checks pass as soon as Apple knows about your domains. Register both:
| Register | Example | Why |
|---|---|---|
| Your sending domain | acme.com |
The domain in your From address. Emailit’s DKIM signature uses it as d=. |
| Its return-path subdomain | emailit.acme.com |
The envelope sender of every message. SPF passes on this host. |
If you send from a subdomain, register that subdomain and its own return-path host instead, for example mail.acme.com and emailit.mail.acme.com. Register each sending domain you use with Sign in with Apple users.
Register your domains with Apple
You need access to the Apple Developer account that owns your app’s Sign in with Apple setup.
-
Open the email settings. Sign in to your Apple Developer account and go to Certificates, Identifiers & Profiles. Select Services in the sidebar, then Configure under Sign in with Apple for Email Communication.
-
Add your domains. In the Email Sources section, select the add button (+). Enter your domains as a comma-separated list, for example
acme.com, emailit.acme.com, then select Next. -
Register them. Check the list and select Register. Domains don’t need a verification file on your website.
-
Check SPF. The Email Sources table shows whether each domain passed Apple’s SPF check.
emailit.acme.compasses with Emailit’s SPF record. If your root domain fails, see Troubleshooting.
An individual developer account can register up to 32 email sources, and an organization account up to 100. You can also register single email addresses, but registering the domains covers every address you send from them.
Clear earlier bounces
Before you registered, Apple bounced your mail to relay addresses. Emailit suppresses an address after a second hard bounce within 24 hours, or after a late bounce report, so some of these addresses are now on your suppression list with the type recipient. Remove them so Emailit sends to them again.
Go to Email APISuppressions, search for privaterelay.appleid.com, select the rows and select Delete suppressions.
Find the suppressed relay addresses with List suppressions:
curl -G https://api.emailit.com/v2/suppressions \
-H "Authorization: Bearer $EMAILIT_API_KEY" \
--data-urlencode "email.ends_with=@privaterelay.appleid.com" \
--data-urlencode "limit=100"Then remove each one with Delete a suppression, using its sup_ ID or the email address.
Then send the important emails again, such as a pending account confirmation. See Suppressions for more ways to manage the list.
Test the setup
- Sign in to your app with Sign in with Apple on a test Apple Account and choose Hide My Email.
- Trigger an email to that account, such as a welcome email.
- In Email APIEmails, check that the email to the
privaterelay.appleid.comaddress isdelivered, then check that it arrived in the test account’s inbox.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Emails to privaterelay.appleid.com bounce, all others arrive. |
Your domains aren’t registered with Apple. | Register your sending domain and its emailit. subdomain. |
Still bouncing after you registered acme.com. |
The return-path subdomain isn’t registered. Apple matches the envelope sender exactly, so acme.com doesn’t cover emailit.acme.com. |
Register emailit.acme.com too. |
| Bouncing for one sending domain only. | You send from a subdomain or another domain that isn’t registered. | Register that domain and its own emailit. host. |
| Apple’s SPF check fails for your root domain. | The root domain has no SPF record. | Publish an SPF record on the root domain for the services that send from it, such as your mailbox provider. Emailit doesn’t need to be in it. |
| Bounces continue for everyone, including normal addresses. | Your domain isn’t verified in Emailit, so SPF or DKIM fails. | Fix the records shown in Email APIDomains. See Domain verification. |
| Emails are delivered but one person doesn’t get them. | That person can stop forwarding or change the forwarding address for your app in their Apple Account settings. | Nothing to fix on your side. Ask them to update their email address in your app. |
Apple also emails the Account Holder and admins of your developer account from time to time about relayed mail it couldn’t deliver. They can turn these notifications off with Settings on the Sign in with Apple for Email Communication page.
Related
- DNS records: the return path, SPF and DKIM records Apple relies on.
- Bounces and complaints: how Emailit classifies bounces and when it suppresses an address.
- Suppressions: view, delete and import suppressions.