# How to set up email delivery to Apple’s Private Relay?

## About “Sign in with Apple” <a href="#h_79b4714366" id="h_79b4714366"></a>

Since iOS 13, the “[Sign in with Apple](https://support.apple.com/en-gb/HT210318)” feature allows developers to offer a new single sign-on (SSO) option. Just like Google / Facebook SSO, it allows users to create an account that will be tied to their Apple ID. Developers must include that option in their app if the app already offers other third-party SSO solutions.

<div align="center"><figure><img src="/files/iWcC9BciWMbr5AxCWXyr" alt="Inscription via apple private relay."><figcaption></figcaption></figure></div>

When logging in, users can choose to:

1. Share their email address (e.g. <firstname@domain.com>).
2. Or to hide it using the “Hide My Email” feature. That feature relies on Apple's private email relay service. It creates a unique, random email address that forwards emails to the users’ personal email address. Here is an example:

## Sending an Email to an Address Behind Apple’s Private Relay <a href="#h_95978d885f" id="h_95978d885f"></a>

Whether users decide to share their email addresses with the service or not, an additional setup is required to deliver emails to these email addresses.

You will need to declare to Apple the subdomain you are using, so Apple can whitelist it when forwarding the emails to the users.

To do so, you need to take the following steps:

{% stepper %}
{% step %}
Go to the [Apple Developer console](https://developer.apple.com/account/), click “Certificates” and then go to “Services” in the left panel.

<figure><img src="/files/eWKQsQhXWkAemn6vk7z1" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click “Configure” in the “Sign in with Apple for Email Communication” block.

<figure><img src="/files/dK1V48lkUPa9vzMKhH63" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Then, click “**+**”, type the list of bounce subdomains set up with Batch and save.

* **Strict alignment setup (default)**: Type your subdomain name (e.g. `subdomain.domain.com`):

<figure><img src="/files/CGcdJBZs3YfWkVNh5RqI" alt="Apple&#x27;s Private Relay setup for strict alignement"><figcaption></figcaption></figure>

* **Relaxed alignment setup**: In this case, SPF is evaluated on the bounce subdomain. Type your bounce subdomain name (e.g. `bounce.subdomain.domain.com`).

<figure><img src="/files/V7oHtn9r9uTkTDrOlHZc" alt="Apple&#x27;s Private Relay setup for relaxed alignement"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
From the subdomain list, click “(Re)Verify SPF” if it is not already green.

<figure><img src="/files/FbSukkZzF3fpKk00qUym" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
If the SPF is validated, send a test to an email address tied to an Apple account from the Batch dashboard:

<figure><img src="/files/KRcfaHc6mwXdQ64IQffD" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.batch.com/developer/technical-guides/how-to-guides/admin-setup-and-configuration/how-to-set-up-email-delivery-to-apples-private-relay.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
