How to set up DNS records with OVH

If you own a domain — for example, mydomain.com — ProtonMail allows you to create a custom email address that uses your domain name instead of the regular @protonmail.com, @protonmail.ch, or @pm.me. 

To set up a custom domain email address with OVH and use it to exchange emails, you need to change your domain DNS records.

If you are interested in other domain registers, you can read our guides for Amazon Web ServicesGoDaddyCloudflareNamecheap, Gandi, and Google Domains.

If you own a domain from a different registrar, set your custom email address with the help of our guides for DNS records setup and anti-spoofing measures (SPF, DKIM, and DMARC).

Add your custom domain in ProtonMail

1. Log into your Proton Account at account.protonmail.com and go to Settings -> Organization -> Custom Domains.

2. Select Add Domain. This will take you to step 1 of the setup wizard.

3. Type in your domain name and Next.

4. Enter your Proton password and Submit.

Verify that you own the domain

1. Log in to your OVH account, go to Domains, select the DNS zone tab, and Add an entry.

2. Select the TXT record type and go Next.  

3. Create the following record:

Subdomain: Leave empty.
TTL: Select a low value to update your DNS record faster.
Value: Go back to the ProtonMail custom domain setup window. Copy the text in the VALUE / DATA / POINTS TO column and paste it in the Value field

4. Go Next to save the record. Go back to the ProtonMail setup window and Verify your domain.

Please note that you may have to wait up to 24 before you can move on to the next step.

Create MX records in OVH

1. Similar to the steps above, access the DNS zone in Domains and Add an entry. 

2. Select the MX record type. Then, enter and save the following values:

Subdomain: Leave empty.
TTL: Select a low value to update your DNS record faster.
Priority: 10
Target: mail.protonmail.ch.
Note: Include the dot (.) at the end of the target field.

3. Create a second MX record using these values:

Subdomain: Leave empty.
TTL: Select a low value to update your DNS record faster.
Priority: 20
Target: mailsec.protonmail.ch.
Note: Include the dot (.) at the end of the target field.

Create SPF, DKIM, and DMARC records

For security reasons, we recommend adding SPF and DKIM records. Setting up DMARC is an optional, advanced feature.

Read more about SPF, DKIM, and DMARC.

SPF and DMARC records are set up in a similar way to setting up TXT records.

1. Access the DNS zone in Domains and Add an entry. 

2. To set up the SPF record, select the TXT record type. Then, enter and save the following values:

Subdomain: Leave empty.
TTL: Select a low value to update your DNS record faster.
Value: v=spf1 include:_spf.protonmail.ch mx ~all

3. To set up the DKIM record, select the CNAME record type. Then, enter and save the following values:

Subdomain: protonmail._domainkey
TTL: Select a low value to update your DNS record faster.
Target: Go back to the DKIM section in ProtonMail custom domain setup window. Copy the text in the VALUE / DATA / POINTS TO column and paste it in the Value field

To add a second and third DKIM record, repeat these steps with the appropriate record names “protonmail2._domainkey” and “protonmail3._domainkey”.

4. To set up the DMARC record, select the TXT record type. Then, enter and save the following values:

Subdomain: _dmarc
TTL: Select a low value to update your DNS record faster.
Value: Go back to the DMARC section in ProtonMail custom domain setup window. Copy the text in the VALUE / DATA / POINTS TO column and paste it in the Value field

Choose your email address

Add your new address in the ProtonMail window by choosing your username, the display name, and your email signature.

You should now be able to use your new custom domain email address.