Email

Set up SPF, DKIM and DMARC at Proton Mail

In short. With a custom domain, Proton Mail has you publish a verification TXT record, two MX records, an SPF TXT, three DKIM CNAMEs and, optionally, a DMARC TXT. The DKIM and DMARC host names are documented, but the SPF, DKIM and DMARC values only appear inside your account (Settings, Domain names): copy them, do not guess them.

SPF lists the servers allowed to send for your domain, DKIM signs every message, and DMARC tells recipients what to do with messages that fail both. Proton documents all of it in its "custom domain" help pages.

Last verified: November 30, 2026, against Proton's official help pages.

Before you start

In your Proton account, open the settings, go to the domain names section and add your domain: the wizard shows the Verify, MX, SPF, DKIM and DMARC tabs. Records are published in the console of whichever service manages your domain's name servers, which is not always your registrar. Proton also says to create all existing addresses in Proton first: once the MX records change, mail sent to an address that does not exist in Proton is not delivered.

The verification TXT goes on @ and starts with protonmail-verification=; the full value is specific to your domain and only appears in the Verify tab. If your console rejects @, Proton says to enter the full domain name (for example example.com). Use a low TTL if the console allows it.

The two MX records, according to Proton's Cloudflare page, sit on @:

example.com.  MX  10  mail.protonmail.ch.
example.com.  MX  20  mailsec.protonmail.ch.

Delete other MX records, or at least give mail.protonmail.ch the lowest priority number.

1. SPF

In the SPF tab, create a TXT on @ (or on example.com if @ is rejected) with the value shown in the "Value / Data / Points to" column of the Proton console. That value is not written in the help pages, so we do not reproduce it here. One rule is explicit at Proton: keep only one SPF record on the domain. If another service also sends for you (invoicing, newsletter), merge the mechanisms into that single TXT instead of creating a second one.

2. DKIM

The DKIM tab asks for three CNAMEs. Their host names are documented:

protonmail._domainkey.example.com.   CNAME  (target shown in the DKIM tab)
protonmail2._domainkey.example.com.  CNAME  (target shown in the DKIM tab)
protonmail3._domainkey.example.com.  CNAME  (target shown in the DKIM tab)

The targets only appear in the interface. Copy them one by one and publish all three. If your console rejects a target ending in a dot, remove the trailing dot. On Cloudflare, Proton requires the "DNS only" state (grey cloud) for these CNAMEs: otherwise, the page says, the record will not propagate.

3. DMARC

Proton presents DMARC as an optional, advanced feature, but the DMARC tab gives you the record ready to use. Create a TXT whose host is _dmarc and paste the value from the console. Proton's page recommends a p=quarantine policy for most domains. Our advice, which is not Proton's: if other services send for your domain, start with p=none and read the reports before tightening.

Then tighten DMARC step by step

Start with p=none and read the reports for one to two weeks. When all your legitimate senders pass, move to p=quarantine, then to p=reject after several clean weeks. Otherwise a forgotten sender, such as an invoicing tool, would see its emails sent to spam or rejected.

Common mistakes

  • Changing the MX records before creating the addresses in Proton: messages to unknown addresses are not delivered.
  • Keeping old MX records with a lower priority number than Proton's: mail keeps arriving at the old host.
  • Two SPF records on the same domain: only one is allowed, and Proton says so explicitly.
  • A proxied DKIM CNAME (orange cloud on Cloudflare): the record does not propagate.
  • Publishing only one or two DKIM CNAMEs: Proton asks for three.
  • Entering the wrong host: if @ is rejected, use the full domain; for DKIM and DMARC, keep protonmail._domainkey and _dmarc as they are and check the result in the record list.
  • Clicking Next too early: wait a few minutes after saving; if verification fails, try again about an hour later.

Check that it works

Proton says verification is automatic and that a green check mark appears for each record. To check yourself, after propagation (a few minutes to a day for MX records, sometimes 1 to 3 days depending on the old host):

dig TXT example.com +short
dig CNAME protonmail._domainkey.example.com +short
dig TXT _dmarc.example.com +short
nslookup -type=TXT example.com
nslookup -type=CNAME protonmail._domainkey.example.com

You should see one line starting with v=spf1, a target for each of the three DKIM CNAMEs, and one line starting with v=DMARC1. For a full test, send an email to a Gmail address, open it, choose Show original: SPF, DKIM and DMARC should show PASS.

Free tool. DMARC checker · SPF checker · DKIM checker

Check your domain for free. AttackScout reads your public SPF, DKIM and DMARC records and tells you what to change. Run the free check · Pricing

Frequently asked questions

Proton Mail: which SPF value should I publish?

The one in the SPF tab of your Proton account. The help page does not write it out: it only gives the host (@) and the rule of a single SPF record.

Proton Mail: is DMARC mandatory?

No, Proton presents it as an optional, advanced feature. It is still useful: SPF and DKIM alone do not tell recipients what to do on failure.

Proton Mail: why three DKIM CNAMEs?

Proton asks for protonmail, protonmail2 and protonmail3 under _domainkey. Publish all three, with the targets copied from the DKIM tab.

Proton Mail: my DKIM CNAME does not propagate on Cloudflare, what now?

Switch the record to "DNS only" (grey cloud).

Sources

Accessed on 11/30/2026.

Get the free alerts