Security records
Last updated May 5, 2026 Without email authentication records, anyone can send email that appears to come from your domain — a technique known as domain spoofing. To prevent this, you add DNS TXT records (text-based entries in your domain's DNS settings) that allow receiving mail servers to verify whether an email actually came from you:
- Sender Policy Framework (SPF) ↗︎: Lists the IP addresses and domains authorized to send email on behalf of your domain.
- DomainKeys Identified Mail (DKIM) ↗︎: Authenticates the sender's domain and verifies that email content was not altered in transit, using a cryptographic signature.
- Domain-based Message Authentication Reporting and Conformance (DMARC) ↗︎: Tells receiving servers what to do when SPF or DKIM checks fail (for example, reject or quarantine the email), and sends you aggregate reports about your email traffic.
Note
For additional background on email security records, refer to the introductory blog post ↗︎.
Create security records
To set up email security records:
- Log in to the Cloudflare dashboard ↗︎, and select your account and domain.
- Go to Email > DMARC Management.
- In Email record overview, select View records.
- Use the available options to set up SPF ↗︎, DKIM ↗︎, and DMARC records ↗︎. This page will also list any previous records you might already have in your account.
Edit or delete records
Refer to Manage DNS records for more information.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/dmarc-management/security-records/#page","headline":"Security records","description":"Learn how to configure SPF records, DKIM records, and DMARC records in your Cloudflare account to help improve email security.","url":"https://developers.cloudflare.com/dmarc-management/security-records/","inLanguage":"en","image":"https://developers.cloudflare.com/dmarc-management/security-records/og.png?v=9cbcb64541d8ff83","dateModified":"2026-05-05","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["DNS"]}
description: Review number of DNS lookups on your SPF records title: DNS lookup limit image: https://developers.cloudflare.com/dmarc-management/dns-lookup-limits/og.png?v=b1f774077ac21adc
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/dmarc-management/llms.txt
Use this file to discover all available pages before exploring further.
Docs