Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Troubleshooting

SPF, DKIM and DMARC check: how to test all three

Check the records with DNS lookups: TXT at the domain for SPF, TXT at _dmarc for DMARC, and TXT at selector._domainkey for DKIM. Then confirm real behavior by sending a message to an outside mailbox and reading Authentication-Results for spf=pass, dkim=pass and dmarc=pass.

The short answer
  • SPF at the root, DMARC at _dmarc, DKIM at selector._domainkey. All TXT.
  • A record can exist and still fail, so test a real message too.
  • You need the selector to look up DKIM. Take it from a message header.
Try the spf record checkerFree, live, no signup

Where is each record and how do you query it?

Record locations and what valid looks like
CheckDNS name (TXT)Valid starts with
SPFyourdomainv=spf1
DKIMselector._domainkey.yourdomainv=DKIM1
DMARC_dmarc.yourdomainv=DMARC1

What is the quickest full check?

  1. 01

    Test SPF

    Run the SPF checker. Look for exactly one record, no permerror and under 10 lookups.

  2. 02

    Test DMARC

    Run the DMARC checker. Confirm the policy, rua address and tags parse.

  3. 03

    Send a real message

    Send to a Gmail address you control, not to yourself on the same system.

  4. 04

    Open the original

    In Gmail, Show original. Read the Authentication-Results header.

  5. 05

    Find the DKIM selector

    Take s= from the DKIM-Signature header and look up the key with the DNS lookup.

  6. 06

    Compare domains

    The domain behind each pass should match your From domain for DMARC alignment.

What does a passing header look like?

Authentication-Results, abbreviated
Authentication-Results: mx.google.com;
  dkim=pass header.i=@example.com header.s=google;
  spf=pass smtp.mailfrom=example.com;
  dmarc=pass (p=QUARANTINE) header.from=example.com

What do common results mean?

spf=softfail or fail

The sending IP is not in the record. Add the sender or check for forwarding.

dkim=fail or none

Key missing, wrong selector or message modified after signing. See DKIM selector.

What does a healthy setup look like?

  • One SPF record, ending in ~all or -all, within the 10-lookup limit
  • DKIM keys published for every service that sends as you
  • A DMARC record with a policy and a rua mailbox you actually read
  • dmarc=pass with an aligned domain in recent received headers
  • Mail from each third-party service tested separately

Records change after you check

A passing check today says nothing about next month. DNS monitoring keeps a history of every DNS record change per domain, so an edited SPF or DMARC record is visible after the fact.

Which result in a header means what?

Authentication-Results values
ValueMeaningTypical cause
passThe check succeededWorking setup
failThe check ran and failedUnauthorized IP, broken signature
softfailSPF weak negativeIP not listed but record ends ~all
noneNo record foundMissing record or wrong name
permerrorRecord cannot be evaluatedTwo SPF records, over 10 lookups, syntax error

Which mistakes make checks misleading?

  • Testing by sending to your own mailbox on the same provider
  • Checking only the root domain when mail is sent from a subdomain
  • Looking up the wrong DKIM selector
  • Trusting a single checker without reading a real header

Common questions

How do I check if my SPF record is working?

Query the TXT record at your domain for exactly one v=spf1 string, run it through an SPF checker, then send a test mail and read spf=pass in the receiving Authentication-Results header.

How do I check if DKIM is set up?

Get the selector from the s= value in a sent message DKIM-Signature header, query TXT at selector._domainkey.yourdomain for a v=DKIM1 record, and look for dkim=pass in the received headers.

How do I check my DMARC record?

Query TXT at _dmarc.yourdomain. It should return one record starting v=DMARC1 with a p= value. An online DMARC checker also validates the tags.

Why does my DMARC check pass but mail still lands in spam?

Authentication is only one factor. Reputation, content, complaint rate and sending patterns also matter. Make sure spam rates and one-click unsubscribe meet the Gmail and Yahoo rules.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.