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.
Lead Telecom & Routing Architect · Lausanne, CH
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.
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
- Email Provider Failover: Route Cutover Gates and Readiness
Decide if a secondary email API route is worth adding: cutover signals, DLR and webhook proof, sender gates, and failover SLA/cost bands to compare.
- Shared Sender Pool Reputation Isolation: Audit Before You Scale
Audit shared vs dedicated sender pools for cross-tenant reputation bleed, IP allocation policy, and complaint containment before committing volume.
- Email Sender Reputation Delegation Audit: Subdomain vs Shared Pool
Audit SPF/DKIM alignment, reputation inheritance, and blast-radius containment to choose between a dedicated subdomain, shared IP pool, or partner-managed pool.












