Samprix

Guide

Set up SPF, DKIM and DMARC for Proton Mail

The verification, MX, SPF, DKIM and DMARC records Proton Mail needs for a custom domain, and where to copy them.

Updated

To send and receive mail as your own domain with Proton Mail, your domain’s DNS needs four kinds of record: MX so mail reaches Proton Mail, SPF to say Proton Mail may send as you, DKIM so Proton Mail can sign your mail, and DMARC to tell receivers what to do with mail that fails. Proton Mail lists the records it wants under Proton Mail settings → Domain names → your domain → Review.

The examples use example.com: put your own domain in its place. In the Name column, @ means the domain itself; some DNS hosts want that field left empty instead.

The records at a glance

TypeNameValuePriority
MX@mail.protonmail.ch10
MX@mailsec.protonmail.ch20
TXT@v=spf1 include:_spf.protonmail.ch ~all
CNAMEprotonmail._domainkeyprotonmail.domainkey.<unique>.domains.proton.ch
Shape only: copy yours from Proton Mail.
CNAMEprotonmail2._domainkeyprotonmail2.domainkey.<unique>.domains.proton.ch
Shape only: copy yours from Proton Mail.
CNAMEprotonmail3._domainkeyprotonmail3.domainkey.<unique>.domains.proton.ch
Shape only: copy yours from Proton Mail.
TXT_dmarcv=DMARC1; p=none; rua=mailto:dmarc-reports@example.com

1. Verify the domain

Proton asks for a TXT record starting protonmail-verification= before it accepts mail for the domain.

2. MX: receive mail at Proton Mail

Delete any MX records left from a previous provider (or from your domain registrar), then add these. Mixing old and new MX records sends some of your mail to the old place.

TypeNameValuePriority
MX@mail.protonmail.ch10
MX@mailsec.protonmail.ch20

3. SPF: allow Proton Mail to send

Add one TXT record at the domain itself:

v=spf1 include:_spf.protonmail.ch ~all

A domain can have only one SPF record. If you already have one, add include:_spf.protonmail.ch to it instead of creating a second, and add the includes of any other service that sends as you (a newsletter tool, a help desk). The SPF record generator builds the combined record and counts its lookups.

4. DKIM: sign your mail

  1. Sign in to Proton Mail on the web and open Settings → All settings → Domain names.
  2. Find your domain and click Review (or Edit), then open the DKIM tab.
  3. Copy the three CNAME records and add them at your DNS host.
  4. Proton checks the records itself; the DKIM status turns green once it sees them.

The CNAME records look like this:

TypeNameValue
CNAMEprotonmail._domainkeyprotonmail.domainkey.<unique>.domains.proton.ch
Shape only: copy yours from Proton Mail.
CNAMEprotonmail2._domainkeyprotonmail2.domainkey.<unique>.domains.proton.ch
Shape only: copy yours from Proton Mail.
CNAMEprotonmail3._domainkeyprotonmail3.domainkey.<unique>.domains.proton.ch
Shape only: copy yours from Proton Mail.

The CNAME targets are unique to your domain, which is why they can’t be shown here.

5. DMARC: decide what happens to forged mail

Add one TXT record named _dmarc:

v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com

p=none changes nothing about delivery: it asks receivers to send you reports, so you can see what sends as your domain. Create the report mailbox first, or use an address you already read. Once the reports show only mail you recognise passing, move to p=quarantine and then p=reject, as described in moving DMARC to p=reject.

6. Check it works

New records usually show up within minutes, but can take up to an hour or two (longer if you replaced records with a long TTL). Run the email domain health check: it recognises Proton Mail from your MX records and lists anything still missing, with the exact record to add. To see a record reach resolvers around the world, use the DNS propagation checker.

Things to watch with Proton Mail

  • Proton checks DMARC as part of the setup and shows a warning until you publish one.

Where to add the records

Step-by-step instructions for the record editor at common DNS hosts:

Not sure who hosts your DNS? It’s usually where you bought the domain, unless you moved its name servers. The WHOIS lookup shows the name servers, and the health check names the host for you.

All tools