IOSOR Learn

Parsing Email Authentication-Results Headers for Route Verification

Decode Authentication-Results headers across providers to verify SPF, DKIM, and DMARC alignment per route. Trigger partner comparison when parsing reveals inconsistent verdicts or missing authentication data.

Oleksandr (Alex) Petukhov — IOSOR Telecom Expert
✓ Verified by IOSOR ExpertOleksandr (Alex) Petukhov

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

Operators decode Authentication-Results headers from each provider to confirm SPF, DKIM, and DMARC alignment per route, then flag inconsistent verdicts or missing data for partner comparison.

Header Structure and Field Extraction

Each provider formats Authentication-Results differently: Gmail uses `spf=pass smtp.mailfrom=...`, Microsoft adds `dkim=pass header.d=...`, Yahoo includes `dmarc=pass header.from=...`. Parse the `authserv-id`, `method`, `result`, and `reason` tokens into a normalized schema so downstream logic can compare verdicts across routes without provider-specific quirks.

SPF Alignment Verification

Check that the `smtp.mailfrom` domain aligns with the `header.from` domain per RFC 7489. A `pass` result with misaligned domains still fails DMARC. Record the `spf` result, `smtp.mailfrom`, and `smtp.helo` values; flag `neutral`, `softfail`, or `temperror` for manual review when the sending IP lacks a published SPF record or exceeds the 10-DNS-lookup limit.

DKIM Signature Validation

Extract `header.d` (signing domain), `header.s` (selector), and `header.b` (signature) from the header. Verify the public key exists in DNS at `selector._domainkey.domain`. A `pass` with a mismatched `header.d` versus `header.from` breaks alignment. Log `fail`, `none`, or `policy` results and correlate with key rotation schedules to catch expired or revoked keys.

⚡ IOSOR Expert · Q&A · Verified partners (×44)

DMARC Policy Evaluation

Combine SPF and DKIM alignment outcomes with the organizational domain's DMARC record (`_dmarc.domain`). Parse `p=`, `sp=`, `pct=`, and `rua=` tags. A `dmarc=pass` in the header only matters when both underlying methods align; otherwise treat as `fail`. Capture `ruf` forensic reports for routes showing repeated `reject` or `quarantine` dispositions.

Cross-Provider Verdict Correlation

Build a route-level matrix: rows = routes (partner corridors), columns = SPF, DKIM, DMARC verdicts per provider. Highlight cells where one provider reports `pass` and another `fail` for the same message ID. These discrepancies indicate routing anomalies, header rewriting, or partner misconfiguration — trigger the comparison workflow.

Start with IOSOR

Open the partner route comparison to benchmark verified corridors against your Authentication-Results matrix. Checklist: 1) ingest headers via webhook, 2) normalize fields into schema, 3) run alignment checks per RFC 7489, 4) flag verdict mismatches, 5) push mismatched routes to /tools/brief for partner swap evaluation. Related: DMARC alignment failure root cause, Sender ID alignment verification gates, Delivery webhook event reconciliation.

IOSOR takeaway

Operators decode Authentication-Results headers from each provider to confirm SPF, DKIM, and DMARC alignment per route, then flag inconsistent verdicts or missing data for partner comparison. Each provider formats Authentication-Results differently: Gmail uses `spf=pass smtp.mailfrom=...`, Microsoft adds `dkim=pass header.d=...`, Yahoo includes `dmarc=pass header.from=...`. Parse the `authserv-id`, `method`, `result`, and `reason` tokens into a normalized schema so downstream logic can compare verdicts across routes without provider-specific quirks (/tools/brief · DLR / webhook).

Was this guide helpful?

Related guides

VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Every Q&A decision below is audited by the IOSOR Telecom Architecture Expert against live 90-day uptime telemetry, carrier compliance rules (10DLC, DLT, GDPR), and real partner TCO.

All Q&A Triggers
#01 · Compliance & Sender ID📖 Knowledge hub · US A2P / 10DLC

US A2P / 10DLC

“Why do US 10DLC TCR campaigns get rejected and which partner handles fast onboarding?”

✓ Verified by IOSOR Expert

10DLC brand and campaign programs for US A2P traffic — not general privacy compliance.

All Q&A Triggers
#02 · OTP & verification📖 Knowledge hub · India DLT

India DLT

“How do engineering teams prevent India TRAI DLT template scrubbing drops on OTPs?”

✓ Verified by IOSOR Expert

DLT and PE-TM registration for India A2P — not an India corridor coverage guide.

All Q&A Triggers
#03 · OTP & verification📖 Knowledge hub · Verify / OTP

Verify / OTP

“How do we eliminate OTP p95 timeout spikes and trigger a 20–30s multi-rail fallback?”

✓ Verified by IOSOR Expert

Login codes without chaos: abuse, latency, and cost control.

All Q&A Triggers
#04 · Transactional email📖 Knowledge hub · Email

Email

“Why do password reset and 2FA emails land in Spam when sharing bulk marketing IPs?”

✓ Verified by IOSOR Expert

Transactional email alongside SMS, voice, and WhatsApp in one routing architecture.

All Q&A Triggers
#06 · WhatsApp Business📖 Knowledge hub · WhatsApp & RCS

WhatsApp & RCS

“How do Meta per-conversation fees and template pauses impact WhatsApp Business TCO?”

✓ Verified by IOSOR Expert

Rich channels when profiles and templates are ready: honest setup.

All Q&A Triggers
#08 · Failover & backup routing📖 Knowledge hub · Failover & rails

Failover & rails

“How do we keep a second standby provider warm for failover at $0/month idle cost?”

✓ Verified by IOSOR Expert

Ordered backup paths when a primary rail fails - distinct from DLR status truth.

All Q&A Triggers