Security records
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.
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.
Refer to Manage DNS records for more information.