[ Diagnostics & resources ]

Header analyser guide: identify trusted results

Design a header analysis that preserves raw structure and identifies who supplied each identity and authentication claim before assigning trust.

By the EmailAuth research team · 6 min read

[ Key points ]

  • Preserve the raw original and label every annotated or redacted derivative.
  • Identify the trusted receiving environment before accepting Authentication-Results.
  • Keep author, envelope, reply and signing identities distinct.
  • No real annotated header, parser demonstration or working analyser is supplied.
On this page

Treat a header as a set of claims with different authors

An email-header analyser should not award trust to every field that contains the word pass. Headers combine user-selected identities, transport trace fields, signatures and assertions added by different systems. The analyst's first task is to identify who could have supplied each claim and which system's authority the reader is prepared to accept. Without that boundary, a neat summary can make forged text look like evidence.

This is a guide to a proposed analyser, not a working EmailAuth feature. No customer header, mailbox or message was accessed. The commissioning implementation gate is explicitly open: Implement and test the promised function. An article, mock-up or specification alone is not a working tool.

Preserve a raw original and a separate display view

An authorized investigation should begin with the original received message or raw header export and a record of its source. Preserve field order, repeated fields, folding and the original bytes. A user-interface screenshot or forwarded quotation may omit important structure. Generate an annotated or redacted view as a derivative, retaining a controlled link to the original when its storage is justified.

RFC 5322 defines header fields and folding, but parsing a field correctly does not authenticate its author. Keep a parser warning for malformed or ambiguous input instead of silently repairing it into a confident verdict. A header-only import also lacks the message body needed for full DKIM verification. State that limitation before presenting any cryptographic-sounding result. RFC 5322 and RFC 6376.

Establish the receiving environment's trust boundary

Authentication-Results contains an authentication service identifier and method results. To use it, determine which service is trusted to produce assertions for this mailbox or message path, and how the receiving environment handles incoming copies of that field. A familiar-looking authserv-id string is not proof of provenance; an external sender can type the same string.

RFC 8601 makes trust a property of the producer-to-consumer context rather than a universal list of trusted hostnames. A tool cannot infer that context from the header text alone. It should accept a separately established environment profile or leave the assertion untrusted. If the message left and re-entered the boundary, or appears inside an attached message, do not assume the outer receiver endorses the embedded results. RFC 8601.

Trace fields can help reconstruct where a message travelled, but they also need provenance. Identify the portion added by the trusted receiving infrastructure before interpreting earlier Received entries. Do not treat position alone, a reverse hostname or a long chain as proof that all preceding systems are genuine. Where timestamps disagree, retain the discrepancy instead of rewriting it into an exact travel timeline.

Keep the identities in separate columns

The visible From field expresses the author identity, while Reply-To is a reply destination and may differ. The SMTP envelope identity used for SPF is another value, and a Return-Path field must be interpreted in its delivery context rather than equated automatically with the visible author. DKIM's d= value identifies a signing domain, and s= selects its key. Similar-looking domains are not interchangeable identities.

A proposed annotation should show the raw field, parsed value, asserted role and evidence source for each identity. Avoid allowing a friendly display name to hide the actual address domain. SPF's evaluation inputs and DKIM's signature fields come from their respective protocols; neither is established merely because the From address matches a brand. RFC 7208 and RFC 6376.

Explain conflicting results without choosing the nicest one

Several Authentication-Results fields can describe checks performed by different systems at different stages. One might report an upstream pass while the final receiver reports a later failure. Preserve both assertions with their source and trust status. Do not combine SPF from one untrusted field with DKIM from another to manufacture a final DMARC verdict.

Current RFC 9989 requires the relevant successful authentication to align with the author domain. A passing result for an unrelated identity can coexist with DMARC failure. Forwarding and message modification can also change what a later evaluator observes. The analyser should distinguish a receiver's reported decision from its own explanatory inference and avoid promising that headers reveal every cause. RFC 9989.

Minimize exposure when importing and sharing

Headers can disclose addresses, internal hostnames, routing information and message identifiers. Import only material the user is authorized to inspect, apply a declared retention purpose and obtain approval before uploading it to an external analyser. A redacted screenshot suitable for a ticket is not necessarily suitable for cryptographic re-verification. Keep those purposes separate.

Render imported values as untrusted text, not executable markup or instructions. Bound input size and field counts, reject unsupported structures safely, and do not automatically visit URLs found in headers. These are proposed protective requirements, not tested capabilities. OWASP's file-upload guidance supports layered validation and safe storage rather than trusting an extension or declared content type. OWASP File Upload Cheat Sheet.

Produce an annotated explanation rather than a verdict badge

The intended output is a source map: trusted receiver assertions, untrusted inherited claims, user-controlled identities and unresolved provenance. For a fictional message, a forged Authentication-Results line saying dkim=pass would remain untrusted until its origin was established. That example illustrates a decision rule; no malicious message was processed here.

The exact original-evidence gate remains: An annotated raw header marking trust boundaries and the origin of every identity and verdict. No real annotated header or tested parser is supplied. Public sources were reviewed on 8 November 2026, including current DMARC guidance. Independent checking, human messaging and privacy review, implementation fixtures, visual validation and owner publication approval are still required.

[ Takeaway ]

An authentication assertion is useful only with a trustworthy origin and path; its text or position cannot establish that trust on its own.

[ By role ]

What this means for you

Choose your role for practical next steps.

Mail administrator

Define the receiving trust context

A parser cannot derive the organization’s trusted authentication services from strings alone. Supply documented boundaries rather than allowing a display heuristic to become policy.

Next steps

  1. Identify trusted result producers and how external copies are handled.
  2. Distinguish trusted trace entries from earlier unsupported claims.
  3. Review paths involving forwarding, attached messages and boundary re-entry.

Security analyst

Attribute each verdict before using it

Preserve conflicting assertions as evidence to investigate. A pass label can be genuine at one stage, forged at another or irrelevant to the author identity.

Next steps

  1. Annotate the source and trust status of each reported method result.
  2. Keep raw fields, parsed identities and analyst inferences visibly separate.
  3. Use approved original-message evidence for cryptographic questions beyond header inspection.

Privacy reviewer

Approve the evidence purpose and audience

Header data can expose people and infrastructure even without a message body. Redaction should match the recipient and task rather than imply that all diagnostic utility survives.

Next steps

  1. Review fields and retention before any real import or third-party upload.
  2. Separate ticket-safe derivatives from controlled verification originals.
  3. Ensure malformed input and error logs do not disclose unnecessary message content.

[ FAQs ]

Frequently asked questions

Can a familiar authserv-id identify a trusted Authentication-Results field by itself?

No. The identifier is text that an external sender could imitate. Trust depends on the producer-to-consumer context and the receiving environment’s handling of incoming assertions, not on string familiarity alone.

Why preserve repeated fields and folding in the original header?

They are part of the message structure and may affect interpretation or cryptographic processing. A parsed display can normalize presentation, but it should remain a derivative with warnings and a link to the controlled original.

Does the topmost pass result always override earlier results?

No universal positional rule establishes trust or correctness. Identify the producer, evaluation stage and trusted boundary of each assertion. Do not select a favourable result merely because of where it appears.

Is Return-Path simply another spelling of the visible From address?

No. Treat the delivery-related envelope identity and the visible author identity as distinct. SPF and DMARC use specific protocol identities, and the field’s provenance must be understood before drawing a conclusion.

Can an attached message’s authentication results inherit trust from its outer message?

Not automatically. RFC 8601 discusses departures from and re-entry into a trust boundary, including message attachments. The outer delivery does not establish the reliability of every embedded assertion.

Will redacting the header always preserve DKIM verifiability?

No. Changing signed header fields can change the verification input, and a header-only copy also omits body material. A redacted explanation and an original cryptographic verification serve different purposes.

Should a header analyser automatically follow URLs it finds?

The proposed design should not. Imported content is untrusted and URLs can trigger unwanted disclosure or access. Any external lookup needs a separately defined purpose, target and authorization rather than automatic execution.

What evidence is still missing from this header-analyser commission?

A real annotated raw header identifying every verdict’s origin and trust boundary, plus an implemented and tested analyser. The fictional forged-pass example does not satisfy either requirement.

[ Sources ]

Sources

  1. OWASP File Upload Cheat Sheet
  2. RFC 5322: Internet Message Format
  3. RFC 6376: DomainKeys Identified Mail Signatures
  4. RFC 7208: Sender Policy Framework
  5. RFC 8601: Authentication-Results Header Field
  6. RFC 9989: Domain-Based Message Authentication, Reporting, and Conformance

[ Glossary ]

Glossary

Authentication service identifier
The authserv-id value naming the service that asserts authentication results; it needs trusted provenance rather than recognition alone.
Trusted trace segment
The portion of a message’s trace whose origin is established within the receiving environment’s accepted authority boundary.
Header derivative
An annotated, normalized or redacted view made from a preserved original and labelled so it is not mistaken for unchanged verification input.
Identity attribution
The explicit association of a parsed domain or address with its protocol role and source field, without merging author, envelope, reply and signer identities.
Untrusted verdict
An authentication claim whose producer or delivery path has not been established as reliable, regardless of whether its text says pass.

Enterprise provenance

Why top financial institutions and governments retired their email security dashboards.

Traditional email authentication platforms sell you a dashboard and ask your engineers to do the labour. In high-stakes environments, manual oversight means delayed enforcement, configuration drift and unmonitored shadow domains.

EmailAuth is the agentic email provenance platform. Our agents enforce p=reject, keep third-party senders aligned and move your domains to full RFC 9989 compliance, the new DMARC standard,, with human-in-the-loop auditability.

Governments Large enterprises Tier-1 financial institutions

SaaS · Dedicated tenancy · Air-gapped on-prem · BYOK encryption

Knowledge Base