Email Domain Security (SPF/DKIM/DMARC)
Email authentication protocols prevent attackers from sending spoofed emails that appear to come from your domain.
Results in 1–3 minutes · Free · No signup required
Want the result for your own site? Free Email Security Checker — paste your domain, get the report.
Why It Matters
Without SPF, DKIM, and DMARC, attackers can send phishing emails impersonating your domain. This damages your reputation and enables fraud.
How We Check
We query DNS for SPF, DKIM, and DMARC records and verify proper configuration including policy strictness.
Good vs Bad Values
| Value | Verdict | Why |
|---|---|---|
v=spf1 include:_spf.google.com -all | Good | SPF names the authorised senders and hard-fails everything else. Replace the include with the provider you really use. |
v=spf1 include:_spf.google.com ~all | Good | A soft fail is accepted by this check. With DMARC enforcement it is a common, safe choice because DMARC makes the final decision. |
_dmarc.example.com TXT "v=DMARC1; p=reject; rua=mailto:dmarc@example.com" | Good | Enforcing policy with a reporting address. Receivers reject mail that fails both SPF and DKIM alignment. |
_dmarc.example.com TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com" | Good | Failing mail goes to spam. A fine stop on the way to p=reject once reports look clean. |
_dmarc.example.com TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com" | Weak | Monitoring only. This check fails it, since spoofed mail is still delivered. It is a start, not an end state. |
v=spf1 ?all or v=spf1 +all | Bad | ?all says nothing and +all authorises the entire internet to send as your domain. |
No SPF record on the domain | Bad | Receivers have nothing to check the sending server against, and Gmail and Yahoo require authentication from bulk senders. |
No _dmarc record | Bad | Without DMARC the domain owner has no say in what happens to spoofed mail and receives no reports about it. |
How to Fix
Set up SPF to list authorized mail servers. Configure DKIM signing. Add DMARC with p=quarantine or p=reject policy. Start with p=none for monitoring.
Zone file — a complete starting set for a domain whose mail goes through Google Workspace:
example.com. 3600 IN TXT "v=spf1 include:_spf.google.com -all"
_dmarc.example.com. 3600 IN TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com; adkim=r; aspf=r"
google._domainkey.example.com. 3600 IN TXT "v=DKIM1; k=rsa; p=<public key from the admin console>"
For Microsoft 365 the SPF include is include:spf.protection.outlook.com; other providers publish their own. If several services send mail, put all includes in the single SPF record. Cloudflare: add these as plain TXT records; they cannot be proxied. Route 53: each TXT value must be wrapped in double quotes, and values longer than 255 characters are split into several quoted strings in the same record.
Move to enforcement in steps. Run p=none for a few weeks and read the aggregate reports sent to the rua address, fix every legitimate source that fails, then raise the policy. The first line is the quarantine step, the second replaces it once quarantine looks clean:
_dmarc.example.com. 3600 IN TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"
_dmarc.example.com. 3600 IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc@example.com"
Verify what resolves:
dig +short TXT example.com | grep spf1
dig +short TXT _dmarc.example.com
Common Mistakes
- Publishing two SPF records on one name. SPF allows exactly one `v=spf1` record; two cause a permanent error. Merge them into one.
- Jumping to `p=reject` on day one. Legitimate senders you forgot (a CRM, a helpdesk, an invoicing tool) get rejected. Start with `p=none` and read the reports first.
- Setting DMARC but never configuring DKIM at the provider. DMARC passes on either an aligned SPF or an aligned DKIM result; relying on SPF alone breaks with forwarding.
- Putting DMARC on the wrong name. The record lives at `_dmarc.<domain>`, not on the bare domain, and its value has to start with `v=DMARC1`.
- Assuming this check proves DKIM. DKIM keys sit under a selector chosen by the provider (`selector._domainkey.domain`), which cannot be discovered from outside, so this check reads only SPF and DMARC. Confirm DKIM from a real message header.
- Ignoring domains that never send mail. A parked or web-only domain should still publish `v=spf1 -all` and `p=reject` so nobody can use it for phishing.
Frequently Asked Questions
What is Email Domain Security (SPF/DKIM/DMARC)?
Email authentication protocols prevent attackers from sending spoofed emails that appear to come from your domain.
Why does Email Domain Security (SPF/DKIM/DMARC) matter for website security?
Without SPF, DKIM, and DMARC, attackers can send phishing emails impersonating your domain. This damages your reputation and enables fraud.
How do I fix Email Domain Security (SPF/DKIM/DMARC) issues?
Set up SPF to list authorized mail servers. Configure DKIM signing. Add DMARC with p=quarantine or p=reject policy. Start with p=none for monitoring.
Related Security Checks
Related Tool
Email Security Checker
Run all 2 related checks with our free email security checker
Check Your Website Now
Run a free security scan to check for Email Domain Security (SPF/DKIM/DMARC) issues and 61 other security checks.
Scan Your Website Free