TL;DR: Pick a checker that resolves SPF, DKIM and DMARC, flags the usual misconfigurations, and gives you the record to paste; verify it yourself with dig. For a one-scan option with readable fixes see CyberScore Labs' free email check, or use MxToolbox or dmarcian for single-record lookups.
Check it yourself first
Any checker is reading DNS you can read too. Replace example.com:
dig +short TXT example.com | grep -i "v=spf1" dig +short TXT _dmarc.example.com dig +short TXT selector1._domainkey.example.com You want exactly one v=spf1 record, a v=DMARC1 record, and a DKIM key at your provider's selector. The DKIM selector name differs per provider, so a tool that cannot guess it will show "not found" for a perfectly good key.
A DMARC record looks like this:
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com" p= is the policy (none, quarantine, reject). The record format is in RFC 7489.
What goes wrong
- Two SPF records. SPF allows one per domain; a second makes the result invalid. Merge them.
- Too many lookups. RFC 7208 caps DNS-querying mechanisms at 10. Every
include:for a mail service counts toward it. - DMARC stuck at
p=none. It satisfies Google's bulk-sender rule but does not stop spoofed mail being delivered. - Short DKIM keys. Google's guidelines specify at least 1024 bits and recommend 2048.
- Subdomains. With no record of their own they inherit the parent policy, as dmarcian's inspector notes.
How to verify a checker
Feed it a domain where you know the answer. Break one thing on a test subdomain, for example publish a second SPF record under test.example.com, then see whether the tool reports it and what it tells you to do. Good tools name the problem and give the corrected value. Weak ones print the raw TXT and stop.
Worked example (illustrative numbers)
A domain sends through 3 services. dig shows two v=spf1 records and no _dmarc answer. You merge to one SPF record, publish p=none with a rua mailbox, and read reports for about 4 weeks. The reports list a 4th sender you forgot; you add its include, re-check, then move to p=quarantine.
Tool types
| Type | Example | Use it for |
|---|---|---|
| Record lookup | MxToolbox | Debugging one record |
| Inspector plus reporting | dmarcian | Heading toward enforcement |
| Sender visibility | Valimail Monitor | Finding every service sending as you |
| Multi-record scan with fixes | CyberScore Labs | A first look for owners and agencies |
I build CyberScore Labs, so weigh that. It is an outside-in, read-only scan: it reads your mail provider and the SPF, DKIM, DMARC, MTA-STS and TLS-RPT records. It does not process DMARC aggregate reports, so it does not replace a reporting service.
Rollout
- Fix records until the scan is clean.
- Publish
p=nonewith aruaaddress. - Read reports, add each legitimate sender to SPF or DKIM.
- Move to
p=quarantine, thenp=reject.
Re-check with dig after each DNS change, since propagation can lag.
Related questions
Does a passing check mean I am safe? No. It covers records, not lookalike domains or stolen passwords.
Can I scan a client's domain? Only with permission to check it. Reading public DNS is harmless, but you should still ask first.
Should I go straight to p=reject? No. Start at p=none, read the reports, and tighten in stages so legitimate mail is not blocked.
![[AWS] Illustrated Guide to What's Changed in Ops Agent: Organizing the Renaming, Code Change Risk Analysis, Expert and Cross-Team Surveys [Ops Agent]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fqiita-user-contents.imgix.net%252Fhttps%25253A%25252F%25252Fcdn.qiita.com%25252Fassets%25252Fpublic%25252Farticle-ogp-background-afbab5eb44e0b055cce1258705637a91.png%253Fixlib%253Drb-4.1.1%2526w%253D1200%2526blend64%253DaHR0cHM6Ly9xaWl0YS11c2VyLXByb2ZpbGUtaW1hZ2VzLmltZ2l4Lm5ldC9odHRwcyUzQSUyRiUyRnMzLWFwLW5vcnRoZWFzdC0xLmFtYXpvbmF3cy5jb20lMkZxaWl0YS1pbWFnZS1zdG9yZSUyRjAlMkYxOTI5NDklMkYxYmVjZGE4YTRmMWRiOWU5OTQyZDljOGMwYjZkZDA3NjkwMTM2NjgwJTJGbGFyZ2UucG5nJTNGMTc0MTQ4MzQxMD9peGxpYj1yYi00LjEuMSZhcj0xJTNBMSZmaXQ9Y3JvcCZtYXNrPWVsbGlwc2UmYmc9RkZGRkZGJmZtPXBuZzMyJnM9MDZlM2QxY2EzNTVhN2Y4N2M2ZTQxY2RlYzdmN2M0ODI%2526blend-x%253D120%2526blend-y%253D462%2526blend-w%253D90%2526blend-h%253D90%2526blend-mode%253Dnormal%2526mark64%253DaHR0cHM6Ly9xaWl0YS1vcmdhbml6YXRpb24taW1hZ2VzLmltZ2l4Lm5ldC9odHRwcyUzQSUyRiUyRnMzLWFwLW5vcnRoZWFzdC0xLmFtYXpvbmF3cy5jb20lMkZxaWl0YS1vcmdhbml6YXRpb24taW1hZ2UlMkYxZTIwZGI1ZTdlNDA3ZWFlN2I5NzBlYzk5OTg4MGRjOGMzY2MwZjY0JTJGb3JpZ2luYWwuanBnJTNGMTY2NzI3NDk2Mz9peGxpYj1yYi00LjEuMSZ3PTQ0Jmg9NDQmZml0PWNyb3AmbWFzaz1jb3JuZXJzJmNvcm5lci1yYWRpdXM9OCZiZz1GRkZGRkYmYm9yZGVyPTIlMkNGRkZGRkYmZm09cG5nMzImcz04OTI0NDcwMDk1MDMyZjUxYmZlNzE3ZjVkOGUzYmE3ZA%2526mark-x%253D186%2526mark-y%253D515%2526mark-w%253D40%2526mark-h%253D40%2526s%253D0db13b4aef231a19bc684897cf15021a%3Fixlib%3Drb-4.1.1%26w%3D1200%26fm%3Djpg%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjEuMSZ3PTk2MCZoPTMyNCZ0eHQ9JUUzJTgwJTkwQVdTJUUzJTgwJTkxJUU1JTlCJUIzJUU4JUE3JUEzJTIwT3BzJTIwQWdlbnQlRTMlODElQUYlRTQlQkQlOTUlRTMlODElOEMlRTUlQTQlODklRTMlODIlOEYlRTMlODElQTMlRTMlODElOUYlRTMlODElQUUlRTMlODElOEIlMjAlRTYlOTQlQjklRTclQTclQjAlRTMlODMlQkIlRTMlODIlQjMlRTMlODMlQkMlRTMlODMlODklRTUlQTQlODklRTYlOUIlQjQlRTMlODMlQUElRTMlODIlQjklRTMlODIlQUYlRTUlODglODYlRTYlOUUlOTAlRTMlODMlQkIlRTUlQjAlODIlRTklOTYlODAlRTUlQUUlQjYlRTMlODMlQkIlRTMlODMlODElRTMlODMlQkMlRTMlODMlQTAlRTYlQTglQUElRTYlOTYlQUQlRTglQUElQkYlRTYlOUYlQkIlRTMlODIlOTIlRTYlOTUlQjQlRTIlODAlQTYmdHh0LWFsaWduPWxlZnQlMkN0b3AmdHh0LWNvbG9yPSUyMzFFMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT01NiZ0eHQtcGFkPTAmcz0zZWJmYjNlNzM1M2FmNTkyZTRmMGRjNmE5YmFkZWRiNw%26mark-x%3D120%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjEuMSZ3PTgzOCZoPTU4JnR4dD0lNDBOYW5hXzc3NyZ0eHQtY29sb3I9JTIzMUUyMTIxJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTM2JnR4dC1wYWQ9MCZzPTg1YzQ4MzUyMmVkMGVhNmYxYjhkZjU5MjVjYzhiNjQz%26blend-x%3D242%26blend-y%3D454%26blend-w%3D838%26blend-h%3D46%26blend-fit%3Dcrop%26blend-crop%3Dleft%252Cbottom%26blend-mode%3Dnormal%26txt64%3DS0RESeOCouOCuOODo-OCpOODq-mWi-eZuuOCu-ODs-OCv-ODvOagquW8j-S8muekvg%26txt-x%3D242%26txt-y%3D539%26txt-width%3D838%26txt-clip%3Dend%252Cellipsis%26txt-color%3D%25231E2121%26txt-font%3DHiragino%2520Sans%2520W6%26txt-size%3D28%26s%3D5b0e56b77e36f5eee922c03d15aeeff1)
