Email Security Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=4790
Answer
Troubleshoot email security by reading the message headers for SPF, DKIM and DMARC results, checking DNS records with dig, gateway quarantine and logs, TLS negotiation and DMARC aggregate reports.
Remember
- Headers show SPF, DKIM and DMARC results.
- DNS record errors are common.
- Forwarding breaks SPF.
First checks
- Message trace — path and verdict
- Authentication-Results header — SPF/DKIM/DMARC outcomes
dig TXT <domain>— DNS records
Commands
openssl s_client -starttls smtp -connect <host>:25 -servername <host>- Inspect SMTP STARTTLS negotiation. Focus fields: SMTP STARTTLS handshake, TLS version/cipher, certificate chain and ver…
dig
Verify in this order
send → DNS auth checks → gateway → mailbox
Where it usually breaks
First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4790