Skip to main content
LowEmailOWASP A07:2021CWE-290

How to fix: DKIM Record Missing

No DKIM public key record was found for this domain. DKIM (DomainKeys Identified Mail) cryptographically signs outgoing messages, allowing receivers to verify the signature has not been tampered with.

Why it matters

Without DKIM, your email messages have no cryptographic signature. DMARC alignment relies on either SPF or DKIM passing; without DKIM, SPF-only alignment is more easily broken by mail forwarding, weakening your overall protection.

DKIM (RFC 6376) adds a digital signature to outgoing email headers. The receiving server looks up the public key in DNS at <selector>._domainkey.<domain> and verifies the signature. A valid DKIM signature proves the message was sent by an authorized server and was not modified in transit.

How to fix it

  1. 1Generate a DKIM key pair in your mail server or ESP.
  2. 2Publish the public key as a TXT record at <selector>._domainkey.<domain>.
  3. 3Verify: dig +short TXT selector._domainkey.example.com

Code examples

DKIM DNS TXT record

DNS
google._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."

Postfix + OpenDKIM

POSTFIX
# Generate 2048-bit RSA DKIM key
opendkim-genkey -b 2048 -d example.com -s mail -t
# Publishes: mail._domainkey.example.com

References

Detected automatically by VulnRadar. The check id is dkim-record, stable across every scan so you can filter or diff on it.

See every email check

Questions

How severe is DKIM Record Missing?
VulnRadar rates this low severity in the email category. The severity is fixed per check, not scored per site, so the same finding is the same severity on every scan.
Does VulnRadar check for this automatically?
Yes. It runs as part of every scan under the check id dkim-record, which stays the same between runs so you can filter, diff, or gate CI on it.
Which standards does DKIM Record Missing map to?
It maps to CWE-290. In the OWASP Top 10 it falls under A07:2021.

Missing a check?

The detection set is open. If you know a misconfiguration this does not catch, propose it: the issue template asks for the threat model, how to detect it, the false-positive risk, and a test fixture, which is the same thing a maintainer would have to work out anyway.

Propose a checkHow a check is built

Scan your own site for dkim record missing

VulnRadar runs this check and hundreds more against a URL in seconds. No agent to install, just paste a URL.

Or scan this site as a demoRead the docs

How to fix: DKIM Record Missing | VulnRadar