SPF/DKIM/DMARC: 10 Most Common Errors + How to Test

TL;DR – Executive summary

E-mails go to spam? The most common reasons: SPF loopups too much, DKIM signature missing, DMARC incorrect. Here are 10 mistakes and how to test.

Symptoms: how do you know that authentication doesn't work

  • Gmail/Outlook displays a warning: "This message seems suspicious"
  • Messages go to spam: The recipient does not see messages
  • Bounce Messages: "550 SPF check failed" or equivalent
  • DMARC reports show fail: Messages do not pass checks

The 10 most common mistakes

SPF errors

  1. Too many DNS loopers: SPF allows max 10 loop cups. Each "include:" is one. Solution: connect or use SPF flatting.
  2. Wrong Include: Newsletter service or CRM is missing. Solution: add the include line provided by the provider.
  3. Syntax Error: Space in the wrong place, missing "v=spf1". Solution: validate the record with a tool.
  4. Multiple SPF records: Only one SPF allowed per domain. Solution: merge into a single record.

DKIM Errors

  1. DKIM signature missing: The service does not sign messages. Solution: enable DKIM in the broadcast service.
  2. Wrong Selector: The DNS record and the broadcast service selector do not match. Solution: check the selector at both ends.
  3. Key expired or changed: Old key in use. Solution: Update the DNS record with a new key.

DMARC Errors

  1. DMARC is missing entirely: No protection from spoofing. Solution: add a DMARC record (start p=none).
  2. Too fast reject: Legitimate messages are rejected. Solution: use p=none and quarantine first.
  3. Alignment problem: From-domain does not match SPF/DKIM domain. Solution: check the broadcast service settings.

Testing: what you check

TXT records (DNS)

dig TXT company.fi +short
dig TXT _dmarc.yritys.fi +short
dig TXT selector._domainkey.yritys.fi +short

Email Headers

Open the received email → Show original message → Search:

  • Authentication-Results: - show SPF, DKIM, DMARC pass/fail
  • Received-SPF: - SPF check result
  • DKIM-Signature: - DKIM signature

Online tools

Send example mail with header

→ We'll tell you what's wrong with authentication and how to fix it.

Send header

3 general situations

Mailchimp, ActiveCampaign

Add the service SPF include + set DKIM custom domain. Otherwise, the messages appear to be coming from the provider, not from you.

CRM (HubSpot, Pipedrive)

Same as newsletter: SPF + DKIM. Automatic messages sent by CRM need authentication.

Online store (order confirmations)

The e-commerce platform (Shopify, WooCommerce) sends messages. Make sure that the platform IP is in SPF and DKIM is enabled.

Correcting order: where to start

  1. SPF first: Check lookup count and add missing senders
  2. DKIM next: Enable on all broadcast services
  3. DMARC finally: Start with p=none, follow reports, raise gradually

Important: Don't change everything at once. Make one change, wait 24-48 h, test.

Read also

Who is this service for?

  • Companies whose emails go to spam
  • IT equivalents debugging authentication issues
  • Marketing whose newsletters don't get through

Typical delivery with Datastorm

  1. Analysis: Current DNS records and headers
  2. Corrections: SPF, DKIM, DMARC into shape
  3. Testing: Make sure messages get across
Request an estimate

What would you like to improve in your business?

Learn about the content of the related service and Tell us about your business need.

Tell us about your project

Tell us what you want to achieve. We’ll discuss your options and agree on the next step in a free introductory call.