Prompt
How do I find out if SPF or DKIM is failing?
Latest observation
Nov 22, 2026
OpenAI APIWeb search: off
To tell whether SPF or DKIM is failing, check the message’s authentication results. The exact method depends on where you’re looking.
1) Check the email headers
Open the message source / full headers and look for:
Authentication-Results:Received-SPF:DKIM-Signature:
Example:
Authentication-Results: mx.google.com;
spf=fail (google.com: domain of example.com does not designate 1.2.3.4 as permitted sender) smtp.mailfrom=example.com;
dkim=pass header.i=@example.com;
dmarc=fail (p=reject dis=none) header.from=example.com
Interpretation:
spf=pass/spf=faildkim=pass/dkim=fail- If both fail, DMARC usually fails too.
2) In Gmail
- Open the email
- Click the three dots
- Choose Show original
- Look for:
- SPF
- DKIM
- DMARC
Gmail will explicitly label each as pass/fail.
3) In Microsoft 365 / Outlook
Look in the message headers for:
Authentication-ResultsReceived-SPFDKIM-Signature
If you use Exchange Online, the header often shows something like:
spf=fail
dkim=pass
dmarc=fail
4) Use your mail server logs
If you control the sending or receiving mail server, logs often show:
- SPF check results
- DKIM verification results
- DMARC evaluation
Examples:
- Postfix/Amavis/Rspamd/SpamAssassin logs
- Exchange message trace
- Google Workspace email log search
5) Use online tools
These can help verify DNS and message auth:
- MXToolbox
- dmarcian
- dkimcore validator
- Google Admin Toolbox
Quick rule of thumb
- SPF fails if the sending IP is not authorized in the domain’s SPF record.
- DKIM fails if the signature is missing, broken, or the public key in DNS doesn’t match.
If you want, I can help you read the headers
Paste the message headers here and I’ll tell you exactly whether SPF, DKIM, or DMARC is failing.