SURYA·JS
◢ FIELD ENTRYtutorials13 OCT 2024

How to Create a Private Email Address for a Custom Domain Using Proton Mail and Cloudflare

A practical guide to setting up a private email address on your own domain using Proton Mail and Cloudflare DNS.

POSTED 13 OCT 2024READ 4 minWORDS 792
emailprivacyprotonmailcloudflare

If you want a more private and professional email setup, using your own domain with Proton Mail is a solid option.

It gives you a custom email address on a domain you control, while still benefiting from Proton Mail’s privacy-focused service. In this guide, I’ll walk through the setup process using Cloudflare DNS.

What you need before starting

Before you begin, make sure you have:

  • a custom domain name
  • a Proton Mail account with support for custom domains
  • access to your DNS settings in Cloudflare or another DNS provider

Why use Proton Mail with a custom domain?

A setup like this gives you a few useful benefits:

  • a more professional email identity
  • better control over your domain and email setup
  • Proton Mail’s privacy-focused ecosystem
  • separation between your domain ownership and your email provider

Step 1: Sign up for Proton Mail

  1. Visit the Proton Mail website.
  2. Choose a plan that supports custom domains.
  3. Finish the signup process.

Proton Mail Sign Up

Step 2: Add your custom domain

  1. Log in to Proton Mail.
  2. Open Settings using the gear icon in the top-right corner.

Proton Mail Settings Gear Icon

  1. Go to the Domain names section.

Proton Mail Domains Tab

  1. Click Add Domain and enter your custom domain.
  2. Confirm with your Proton Mail password when prompted.

Add Domain

Step 3: Verify your domain

Proton Mail will give you a TXT record to add to your DNS settings.

Proton Mail Verify TXT Record

  1. Log in to Cloudflare or your domain provider.

Domain Registrar Login

  1. Open the DNS management section.

DNS Management Tab

  1. Add the TXT record exactly as Proton Mail provides it.

Verify TXT Record

DNS Verification Added

  1. Return to Proton Mail and click Verify.

Domain Verified

Depending on DNS propagation, verification may take a few minutes.

Step 4: Create your email address

Once the domain is verified:

  1. Go back to the domain settings in Proton Mail.
  2. Open your custom domain.
  3. Click Add Address.
  4. Create the email address you want on that domain.

Add Address

Step 5: Add the required DNS records

After domain verification, you still need to configure the records that make email delivery and authentication work properly.

MX records

MX records tell the internet where your domain should receive email.

Add these two MX records:

MX record 1

  • Type: MX
  • Name/Host: @
  • Mail server: mail.protonmail.ch
  • Priority: 10

MX Record with Priority 10

MX record 2

  • Type: MX
  • Name/Host: @
  • Mail server: mailsec.protonmail.ch
  • Priority: 20

MX Record with Priority 20

MX Records Added

SPF record

SPF helps other mail servers verify that Proton Mail is allowed to send email for your domain.

Add this TXT record:

  • Type: TXT
  • Name/Host: @
  • Value: v=spf1 include:_spf.protonmail.ch ~all

SPF Record

SPF Record Added

DKIM records

DKIM adds a digital signature to your outgoing messages and helps prove they came from your domain.

Proton Mail will show you the DKIM records inside your domain settings.

DKIM Record Information

Add the DKIM records Proton Mail gives you, including entries like:

  • protonmail._domainkey
  • protonmail2._domainkey
  • protonmail3._domainkey

Use the public key value provided by Proton Mail for each record.

Adding DKIM Record

Important: if you are using Cloudflare, make sure these DNS records are DNS only and not proxied.

DKIM Record Added

DMARC record

DMARC tells receiving mail servers what to do if SPF or DKIM checks fail.

Add this TXT record:

  • Type: TXT
  • Name/Host: _dmarc
  • Value: v=DMARC1; p=quarantine

DMARC Record

Step 6: Wait for DNS propagation

After adding all the records, give DNS some time to update. This can take anywhere from a few minutes to several hours depending on propagation.

Step 7: Verify everything in Proton Mail

Once the DNS records have had time to propagate:

  1. Go back to Proton Mail.
  2. Open your domain settings again.
  3. Check whether Proton Mail marks the records as valid.

Proton Mail DNS Settings Verified

Step 8: Test the email address

Finally, send a few test emails:

  • send one from your new address
  • send one to your new address
  • check both sending and receiving

If both work, the setup is complete.

Final thoughts

Using Proton Mail with a custom domain is a nice balance between privacy and professionalism. Once the DNS records are in place, the setup is straightforward, and you end up with an address that feels much more personal and durable than a standard provider email.

If you want more control over your online identity, this is a setup worth having.

◢ FURTHER READING