Quick fix
Correct malformed tags and ensure the record uses supported DKIM syntax.
What this finding means
SecuTest parses the DKIM version, key type, flags, public-key value, separators, and duplicate tags. The check evaluates DNS publication, not whether every outgoing message is signed.
Associated attack or threat scenario
How the attack or failure scenario works
A receiver parses the selector record before validating a signature. Invalid tags or structure can make the key unusable, causing `dkim=permerror` or fail. This removes one authentication path and can let spoofed mail face weaker DMARC enforcement when SPF is also absent or misaligned.
Conditions and limitations
- A message is signed with the malformed selector.
- The receiver queries and parses the defective record.
- No alternative aligned DKIM signature or SPF pass satisfies DMARC.
Why it matters
Step-by-step fix
Where to make the change
- The authoritative DNS zone for the registrable domain.
- The outbound or inbound mail platform when sender authorization, signing, or routing is involved.
- The DMARC reporting mailbox or reporting service when aggregate reports are required.
Remediation procedure
- Correct malformed tags and ensure the record uses supported DKIM syntax.
- Publish one logical TXT value even if the DNS provider splits long quoted strings.
- Remove duplicate or unsupported tags and verify the declared key type.
- Test signatures from every outbound platform before completing the rotation.
Commands and configuration examples
Replace example values with the hostname, selector, IP address, port, provider, or policy values shown in your SecuTest evidence. Review every example before production use.
selector._domainkey.example.com. 3600 IN TXT "v=DKIM1; k=rsa; p=BASE64_PUBLIC_KEY"
dig +short TXT selector._domainkey.example.com
Verify the fix
- Query the selector externally and reconstruct the full TXT value.
- Decode and validate the `p=` public key.
- Send a message and confirm `dkim=pass` and DMARC alignment.
- Repeat the scan after DNS propagation.
After DNS, CDN, certificate, mail, or application propagation completes, run a fresh SecuTest scan and compare the new evidence with the original finding.
Common mistakes
- Copying PEM headers such as `BEGIN PUBLIC KEY` into `p=`.
- Publishing multiple conflicting TXT records for one selector.
- Adding literal quote characters to the key value.