Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Email Security Troubleshooting

Direct 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.

When to use this

Use this when legitimate mail is rejected or spoofed mail gets through.

First 30 seconds

1. Delivery failures: SPF/DKIM/DMARC misconfiguration, TLS errors, blocklists.

2. Read Authentication-Results and NDRs.

3. Check DNS records.

4. Message trace in gateway.

5. Fix and retest.

Operational verification

send → DNS auth checks → gateway → mailbox

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Security architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformSecurity architecture and operations · OpenSSL / SMTP
Key commandopenssl s_client -starttls smtp -connect <host>:25 -servername <host>
Scope / prerequisiteUse this when legitimate mail is rejected or spoofed mail gets through.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Security command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
Key points
  • Headers show SPF, DKIM and DMARC results.
  • DNS record errors are common.
  • Forwarding breaks SPF.
Key checks
  • Message trace — path and verdict
  • Authentication-Results header — SPF/DKIM/DMARC outcomes
  • dig TXT <domain> — DNS records
ReferenceWhy it matters1 section · depth on demand

Reading headers

Check Authentication-Results in the received message:

Authentication-Results: mx.example.com; spf=pass smtp.mailfrom=sender.com;
  dkim=pass header.d=sender.com; dmarc=pass header.from=sender.com

Illustrative output, not captured Evidence. Then follow Received: lines bottom-up to see the path. Tools: Microsoft Message Header Analyzer, dig for SPF/DKIM/DMARC records, and DMARC aggregate reports for which sources fail.

ReferenceHow it works1 section · depth on demand

In depth

Email security troubleshooting usually starts with message headers and the mail system's message trace, which show each hop, authentication results and filtering decisions.

SymptomCheck
Legitimate mail rejected/quarantinedDMARC/SPF/DKIM results in headers, filter verdict and reason
Your mail lands in recipients' spamSPF includes all senders, DKIM signing, DMARC alignment, sending IP reputation
Phishing got throughVerdict details, URL detonation results, policy exceptions
TLS failures between serversMTA-STS policy, certificates, TLS-RPT reports
dig +short TXT example.com | grep spf
dig +short TXT _dmarc.example.com

Look at Authentication-Results headers first — they summarise SPF, DKIM and DMARC as evaluated by the receiving server.

ReferenceImportant terms & boundaries1 section · depth on demand

Key headers

HeaderWhat it shows
ReceivedHop-by-hop path (read bottom-up)
Authentication-ResultsSPF, DKIM, DMARC results
Return-PathEnvelope sender (SPF domain)
Message-IDUnique ID for log searches
X-MS-Exchange-Organization-SCLMicrosoft spam confidence level

Microsoft 365: use message trace (Get-MessageTraceV2) with the Message-ID.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docSecurity architecture and operations current

Authoritative/upstream documentation reviewed for bounded claims in Email Security → Email Security Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc7489 · confidence 94%
Confirmation

Confirm action

Continue?