This message typically indicates that an email contains a DKIM (DomainKeys Identified Mail) or DK signature, but the signature validation failed or has not been verified. A valid DKIM signature is critical for email authentication, ensuring the email has not been altered during transmission.
What is DKIM?
DKIM is an email authentication method that:
- Adds a digital signature to the email header.
- Allows the recipient email server to verify the authenticity of the email using the sender public key (published in DNS records).
- Ensures that the email has not been tampered with during transmission.
Why Does This Message Appear?
Incorrect DKIM Setup
The DKIM DNS record is missing or misconfigured.
Mismatched Signing Domain
The DKIM signing domain does not match the sender domain.
Altered Email Content
The email was modified in transit (e.g., by a forwarding server).
Public Key Not Found
The recipient mail server cannot locate the public DKIM key in the DNS records.
Expired DKIM Key
The DKIM key has expired or been replaced without updating the DNS record.
Verify the DKIM DNS Record
- Locate the selector used in your email:
- Look for s= in the DKIM-Signature header.
- Use a DNS lookup tool (e.g., MXToolbox DKIM Lookup) to verify the record.
- Ensure the DKIM record exists and is properly formatted:
v=DKIM1; k=rsa; p=YOUR_PUBLIC_KEY
Check Email Headers for DKIM Status
- Analyze the email headers:
- In Gmail, click on "Show original" to view the full headers.
- Look for a line like:
Authentication-Results: dkim=fail (body hash did not verify) - Verify the DKIM result:
- dkim=pass: DKIM is valid.
- dkim=fail: Signature mismatch or key issues.
- dkim=neutral: No validation attempted.
Ensure the Email Content Is Not Altered
- Email Forwarding:
- Forwarding services may modify headers or the message body, invalidating the DKIM signature.
- Use SPF and DMARC for additional validation to mitigate forwarding issues.
- Check Email Encoding:
- Ensure proper encoding (e.g., UTF-8) for email content.
Generate a New DKIM Key (If Necessary)
- Generate a new 2048-bit DKIM key using your mail server or a tool.
- Update your DNS TXT record with the new public key.
- Update your mail server configuration with the new private key.
Testing Your DKIM Setup
- Send a test email to a DKIM validation service:
- Use DKIM Validator or Mail Tester.
- Review the results to ensure the signature is valid.
Implementing DMARC for Additional Protection
- Add a DMARC record to your DNS:
_dmarc.yourdomain.com TXT "v=DMARC1; p=none; rua=mailto:reports@yourdomain.com"
- This enforces DKIM and SPF policies and provides detailed reports on email authentication.
Summary
To fix the "not necessarily valid" DKIM issue:
- Verify your DKIM DNS record and mail server configuration.
- Ensure no email content is altered in transit.
- Use tools like Mail Tester to test your setup.


