Email domain check: SPF, DKIM, DMARC
If emails from your domain land in spam, the most common cause is missing or broken SPF, DKIM and DMARC records. Enter a domain to find out exactly what is not set up.
What the email check verifies
The check reads the DNS records that decide whether mail from a domain gets delivered or lands in spam: MX (where incoming mail goes), SPF (which servers may send mail for the domain), DKIM (the public key receivers use to check the signature on outgoing mail) and DMARC (what receivers should do with mail that fails these checks).
For SPF it also follows every include and redirect and counts the DNS lookups: by the standard, a record that needs more than 10 is invalid (PermError), and receivers ignore it. DKIM keys sit under a selector name that your mail provider chooses, so the check tries the common ones: default, google, selector1, selector2, k1 and dkim.
How to read the email result
- MX records: without MX the domain cannot receive mail.
- SPF: there should be exactly one record, ending in ~all or -all, with no more than 10 lookups. Two SPF records are an error.
- DKIM: a key found under a common selector is good. Not found may only mean that your provider uses another selector, so check its panel before you add anything.
- DMARC: p=none only monitors, while p=quarantine or p=reject protects the domain from spoofing.
- Gmail and Yahoo require SPF or DKIM from every sender, and SPF, DKIM and DMARC from bulk senders.
Further reading
- Emails going to spam
- SPF PermError: too many DNS lookups
- DKIM fail
- How to set up SPF in cPanel
- How to move DMARC from p=none to quarantine
Frequently asked questions
- Everything is green, but my emails still go to spam. Why?
- Authentication is needed, but on its own it is not enough. Check the sending IP against blacklists, its reverse DNS (PTR), the content and links in the message, and whether recipients mark your mail as spam.
- Do I need DMARC if I already have SPF and DKIM?
- Yes, if you send in bulk to Gmail or Yahoo: they require it. DMARC is also the only record that tells receivers to reject mail forged in your name. Start with p=none, read the reports, then move to quarantine.
- Can I check a domain I don't own?
- Yes. All these records are in public DNS. People often use this to see which mail provider a company uses or to work out why mail to it bounces.