Skip to main content
  1. Knowledge base
  2. Email security

DKIM Is Missing or Invalid Across Most Scanned Domains

A benchmark of 2,935 domain assessments reveals a significant difference in the observed configuration of three major email authentication mechanisms: SPF, DKIM and DMARC.

While 81.7% of assessed domains received a valid DMARC result, 59.1% received a valid SPF result. DKIM was substantially lower: just 492 domains, or 16.8%, were classified as valid.

The difference raises an interesting question: are domains implementing email authentication comprehensively, or are they relying on only one of the available mechanisms?

The findings come from SetEnforce's public domain security benchmark, which aggregates technical security assessments across multiple standards.

The numbers

The benchmark reports the following component-level results:

Component Valid Partially valid Not valid Not found
SPF 1,735 (59.1%) 852 (29.0%) 53 (1.8%) 295 (10.1%)
DKIM 492 (16.8%) - 2,147 (73.1%) 295 (10.1%)
DMARC 2,398 (81.7%) 22 (0.7%) 220 (7.5%) 295 (10.1%)

All three components were assessed across 2,935 domains.

DKIM is the most striking result. Only 16.8% received a valid classification, compared with 59.1% for SPF and 81.7% for DMARC.

However, these figures describe individual configuration checks. They do not directly tell us whether an organization's outgoing email successfully authenticates.

Understanding that distinction is essential.

Two authentication mechanisms can be enough for a DMARC pass

A common misconception is that every email needs SPF, DKIM and DMARC all to pass independently.

That is not how DMARC works.

DMARC uses SPF and DKIM as underlying authentication mechanisms. For an individual message to pass DMARC, at least one of the following must succeed:

  • SPF passes and the authenticated sending domain aligns with the visible From domain.
  • DKIM passes and the signing domain aligns with the visible From domain.

A valid DMARC policy must also be discoverable.

In other words, a message can pass DMARC even when one of the two underlying authentication mechanisms fails, provided the other produces an aligned pass.

This makes the following combinations particularly relevant:

SPF DKIM DMARC Interpretation
Pass and aligned Pass and aligned Published Both authentication paths can support DMARC
Pass and aligned Fail Published DMARC can still pass through SPF
Fail Pass and aligned Published DMARC can still pass through DKIM
Pass but not aligned Fail Published No aligned authentication path through these results
Fail Fail Published DMARC fails

This is why the benchmark's combined three-component compliance figure should be interpreted as a measure of complete configuration, rather than a direct measurement of email authentication success.

Having both SPF and DKIM correctly configured is still recommended. It provides redundancy and reduces dependence on a single authentication mechanism.

Reference: RFC 9989 - Domain-based Message Authentication, Reporting, and Conformance.

SPF: Adoption is relatively widespread, but policy strength varies

SPF identifies which servers are authorized to send email using a domain.

The benchmark classifies 1,735 domains as having valid SPF configurations, 852 as partially valid and 53 as not valid.

The separate SPF policy breakdown is:

SPF policy Domains
-all 1,971
~all 583
none 381

The distinction between -all and ~all matters.

The -all qualifier produces an SPF fail result when no preceding mechanism matches. ~all produces softfail, a weaker signal.

A published SPF policy does not automatically mean the complete configuration is correct. The permitted sending infrastructure, DNS lookup limits and record syntax also matter.

Reference: RFC 7208 - Sender Policy Framework.

DKIM: The largest gap

DKIM allows receiving mail servers to verify cryptographic signatures associated with a sending domain.

The benchmark's DKIM classification is particularly interesting:

DKIM result Domains
Valid 492
Not valid 2,147
Not found 295
Not applicable 1
Total 2,935

The low number of valid results deserves investigation.

DKIM keys are published under selector-specific DNS records. A domain can use multiple selectors, and organizations can rotate them over time.

This creates a measurement challenge: selectors are not universally enumerable from a domain name alone.

A passive scanner may not discover every selector used by an organization's actual outbound mail infrastructure.

Therefore, the 16.8% figure represents the scanner's valid classifications, not definitive proof that only 16.8% of domains sign their outgoing messages.

DKIM key strength

The key-strength results provide an additional perspective:

Key classification Domains
Strong 398
Weak 93
Very weak 1
Unknown 2,443

Among the 492 classified keys, 398 (80.9%) were rated strong.

This suggests that key strength is not necessarily the main problem among successfully classified keys. The larger observation is the small number of valid and classifiable DKIM results.

The 2,443 unknown results must not be interpreted as weak keys. They indicate that key strength could not be classified.

DMARC: Enforcement policies are widespread

DMARC connects SPF and DKIM authentication results to the domain displayed in the From address.

Its policy mechanism also allows domain owners to request how receivers should handle authentication failures.

The benchmark reports:

DMARC result Domains
Valid 2,398
Partially valid 22
Not valid 220
Not found 295

The policy breakdown shows:

DMARC policy Domains
p=reject 1,824
p=quarantine 574
p=none 22
No record 515

A total of 2,398 domains appear in the reject and quarantine policy categories.

These policies indicate a willingness to enforce handling of messages that fail DMARC.

By comparison, p=none requests monitoring without quarantine or rejection.

There is an interesting contrast here: DMARC enforcement policies appear much more widespread than valid DKIM configurations in this dataset.

However, a published DMARC policy does not guarantee that all legitimate sending systems are correctly aligned. It also does not tell us how often messages actually pass SPF or DKIM.

Subdomain protection

The benchmark also examines DMARC subdomain policies.

Subdomain policy Domains
sp=reject 688
sp=quarantine 114
sp=none 83
Not set 1,535

An unset subdomain policy is not automatically a security failure.

Under DMARC, an applicable organizational-domain policy can also govern subdomains when no explicit sp policy is published.

This is why the presence or absence of an explicit subdomain policy should not be confused with the actual protection inherited by a subdomain.

What we still need to understand

The aggregate results reveal differences between SPF, DKIM and DMARC, but they do not reveal how these mechanisms overlap on individual domains.

Several questions remain:

  1. How many domains have both valid SPF and valid DKIM?
  2. How many have valid DMARC and at least one usable underlying authentication mechanism?
  3. How many rely exclusively on SPF for DMARC authentication?
  4. How many rely exclusively on DKIM?
  5. How many have all three mechanisms correctly configured?
  6. Does DKIM validity vary significantly by TLD, DNS provider or hosting environment?

The overlap is arguably more interesting than the individual percentages.

For example, a domain with valid SPF, missing DKIM and a correctly configured DMARC policy may still successfully authenticate messages through SPF.

A domain with valid DKIM, invalid SPF and a correctly aligned DKIM signature may also pass DMARC.

These situations are materially different from a domain with no usable aligned authentication mechanism.

A per-domain intersection analysis would allow us to quantify these differences rather than treating every incomplete three-component configuration as equally problematic.

Methodology and limitations

These results represent externally observable configurations from domains assessed through SetEnforce. They are not a random sample of all registered internet domains.

A DNS and web-based assessment cannot establish every aspect of an organization's real-world email infrastructure.

In particular:

  • DKIM selectors may not be discoverable through passive inspection.
  • SPF and DKIM alignment depends on actual outgoing messages, not just published DNS records.
  • A DMARC policy does not prove that legitimate email is consistently authenticated.
  • An unknown or untested result is not necessarily a failure.

The benchmark should therefore be interpreted as a measurement of observable domain configuration, rather than a direct measurement of successful email delivery or spoofing resistance.

The reported component counts also have their own classification rules and should not be treated as interchangeable with the combined all-three compliance metric.

Explore the benchmark

Email authentication is just one part of the assessment.

SetEnforce also evaluates DNS security, website configuration, network exposure and other domain security standards.

The public statistics dashboard provides additional breakdowns of:

  • Security compliance by standard.
  • Most frequently failing checks.
  • Severity and risk distributions.
  • Remediation opportunities.
  • Domain and TLD comparisons.
  • Aggregate benchmark trends.

The objective is to make recurring domain security configuration problems measurable, comparable and easier to investigate.

Want to check your own domain? Run a free security assessment and explore additional domain security features at SetEnforce.

Check whether your own domain gets this right. Scanning is free and needs no account.

Scan your domain

All articles