Site Monitors

How to check SPF, DKIM and DMARC for a domain

Updated October 26, 2026 · 8 min read

When a client says their emails keep going to spam, the site is usually fine. The cause is almost always three DNS records that tell receiving mail servers a message is genuine: SPF, DKIM and DMARC. Since 2024, large mailbox providers have made them a requirement for anyone who sends in volume.

What each one does

1. Check SPF

SPF is a TXT record on the bare domain that starts with v=spf1. Look it up:

dig +short TXT example.com

A typical record looks like this:

v=spf1 include:_spf.google.com include:amazonses.com ~all

What to check:

2. Check DKIM

DKIM keys live at a name that includes a selector your mail service chooses, so you can't list them. You have to know the selector, which the service's setup page shows. For a selector called google:

dig +short TXT google._domainkey.example.com

You should get a long value starting v=DKIM1 with a key after p=. An empty p= means the key was withdrawn. Each service that sends email for the domain needs its own DKIM record, and the setup page of each one gives the exact name and value to add.

3. Check DMARC

DMARC is a TXT record at _dmarc under the domain:

dig +short TXT _dmarc.example.com

A good starting record:

v=DMARC1; p=none; rua=mailto:dmarc@example.com

4. Send a test message

Send an email from the domain to a Gmail address, open it, choose Show original, and look for SPF: PASS, DKIM: PASS and DMARC: PASS at the top. If any say FAIL or NEUTRAL, that record is the one to fix.

Common mistakes

Keep watching it

These records break when someone changes email provider, adds a new service or moves DNS, and nobody checks afterwards. Site Monitors runs a daily health scan on each site that flags a missing or weak SPF or DMARC record, looks for DKIM, checks security headers, and emails you when something new appears.

Get alerted before it expires

Create a free account and we'll watch your certificates and domains for you, and email you before anything expires. Free for up to 5 sites.