Add SPF, DKIM and DMARC records at Cloudflare

Your domain's DNS is managed at Cloudflare, so that is where the three records go. Here is where to click and what to type in each box.

Open the form for a new record

  1. Sign in to Cloudflare and choose your domain.
  2. Open DNS, then Records.
  3. Choose Add record and set the Type to TXT.

If your email provider gives you CNAME records for DKIM, set their Proxy status to DNS only. A proxied record answers with Cloudflare's own address and DKIM stops working.

Good to know at Cloudflare

  • @ in the Name box means the domain itself.
  • Paste the value without quote marks. Cloudflare adds them itself.
  • A long DKIM value is stored as several shorter pieces. That is normal: mail services join them back together.

What to type in each box

  • Type: TXT, for all three records. If your email provider gives you CNAME records for DKIM, choose CNAME for those.
  • Name: for a record on the domain itself, such as SPF, type @. For DMARC, type _dmarc. For DKIM, use the name your email provider gives you.
  • Content: paste the value exactly as given, with no extra quote marks.
  • TTL: leave it as it is.

The three records to add

  • SPF: one TXT record on the domain itself. The value comes from your email provider; the provider guides below give it.
  • DKIM: one or more records your email provider generates for you in its settings.
  • DMARC: one TXT record named _dmarc. Start with the value below.
TXT record named _dmarc
v=DMARC1; p=none;

If your domain already has a record starting v=spf1, edit it instead of adding a second. Two SPF records cancel each other out.

Check it worked

Changes can take up to an hour to show. Then run the check here: it reads all three records and tells you if anything is still missing.