[ Headers & delivery errors ]

Redact an email sample without destroying the evidence needed for diagnosis

Keep an untouched original and create a purpose-specific sanitized copy, with an explicit record of what the edits can no longer prove.

By the EmailAuth research team · 3 min read

[ Key points ]

  • Keep an untouched original and create a purpose-specific sanitized copy, with an explicit record of what the edits can no longer prove.
  • A redacted copy may support relationship analysis but cannot automatically preserve DKIM verification or real DNS evidence.
On this page

Redaction is an evidence transformation. It can make a sample safer to discuss while removing the information needed to answer the original technical question. Start by defining that question: header interpretation, domain alignment, routing, signature verification or content filtering. The minimum useful data differs for each task.

Preserve the original and identify the derivative

Store the original message in a restricted location and compute its byte-level SHA-256 fingerprint. Make a separate copy for sanitization. Record the collector, collection method, time and original hash; then record a new hash for the derivative. A hash supports later integrity comparisons but does not prove the truth of the message or who sent it.

Do not overwrite the only original or label an edited file “raw original.” Message headers can contain recipient addresses, internal hosts, public and private IP information, tracking URLs and identifiers. MIME parts and attached messages can repeat sensitive information that is absent from the visible body. RFC 5322 describes message structure; the redaction workflow here is an operational recommendation, not a prescribed redaction standard. RFC 5322 sections 2 and 3.

Preserve relationships needed for diagnosis

For a domain-alignment discussion, keep the relationship between visible From, envelope identity and signing domains clear. Replacing every domain with the same placeholder can manufacture alignment; replacing aligned domains with unrelated placeholders can destroy it. If real domains cannot be shared, provide an explicitly illustrative mapping that preserves the relationship and state that real DNS cannot be checked from the derivative.

For routing, preserve hop order and clearly label removed hosts or addresses. For timeline analysis, retain timezone offsets and explain any time shifting. For delivery-status analysis, keep recipient-block boundaries, Action, Status and relevant diagnostics while removing unrelated message content. RFC 3464 defines these per-recipient fields. RFC 3464 section 2.

Do not promise signature-preserving redaction

Changing a signed header or signed body can break DKIM. Some whitespace changes survive relaxed canonicalization, but this is not a general redaction guarantee. Even a change outside one signature's coverage can alter another signature or remove context needed to interpret trust. Preserve signed bytes when the question requires cryptographic verification. RFC 6376 sections 3.4 and 5.

A redaction log should identify each transformation and the diagnostic ability it removes. Do not claim a derivative preserves signature verification merely because it still displays a DKIM-Signature field. No sanitizer can be assumed complete without review of the resulting content.

Inspect the entire derivative before sharing

Review headers, plain-text and HTML parts, attachments, nested messages, URLs, comments and filenames. Remove action tokens such as recipient-specific unsubscribe values where they are not needed. Avoid a simple search-and-replace as the only privacy check because encoded or repeated data may remain.

Give the analyst a short capability statement: this copy can support header interpretation and the labeled identity relationship, but cannot establish original signature validity or undisclosed DNS state. If the analyst needs more, seek authorization for the specific additional data and recipient rather than automatically sending the full original. Keep the redaction log restricted when it contains the mapping back to personal details.

Work through a hypothetical alignment sample

Suppose the question is whether a bounce subdomain and visible author domain have the relationship required by the configured alignment mode. An authorized illustrative mapping might replace the author with brand.example, its bounce subdomain with bounce.brand.example and an unrelated vendor with vendor.example. Mapping all three to example.com would conceal the distinction.

Label the mapping as illustrative and state the relevant strict or relaxed relationship. It is not a substitute for evaluating the real domains, policy or DNS. If the question changes to DKIM validity, use the restricted original under an approved access arrangement instead of promising that the redacted copy can answer it.

Before sharing, inspect every part for repeated addresses, tokens and identifiers, including nested messages. This is a hypothetical selection workflow, not an executed redaction or a claim that an actual sample is safe to disclose.

Share the least evidence that answers the question

  • Keep the only original restricted and create a separately labeled derivative.
  • Preserve needed identity relationships, recipient blocks, hop order and time context.
  • Review all MIME parts, nested content, links and filenames.
  • State which tests the derivative can no longer support.
  • Obtain authorization for the actual data and recipient before external sharing.

[ Takeaway ]

Keep an untouched original and create a purpose-specific sanitized copy, with an explicit record of what the edits can no longer prove.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Keep reproducible file lineage

The derivative must be distinguishable from its source.

Next steps

  1. Hash the original before editing.
  2. Record transformations.
  3. State unsupported tests.

CISO / SecOps

Review the whole evidence object

Encoded and nested data can survive simple redaction.

Next steps

  1. Inspect every MIME part.
  2. Protect action tokens.
  3. Restrict identity mappings.

Founder / Non-technical

Share enough to answer the question

A safer sample should still preserve the diagnostic relationship.

Next steps

  1. Define the reader’s task.
  2. Approve necessary disclosure.
  3. Avoid sending unrelated content.

[ FAQs ]

Frequently asked questions

Should I edit the only original?

No. Preserve it privately and sanitize a separate derivative.

Does a SHA-256 hash prove the sender’s identity?

No. It fingerprints bytes for integrity comparison.

Can replacing domains change apparent alignment?

Yes. Preserve and explain the relevant relationships without implying placeholder DNS is real.

Is a redacted message always DKIM-verifiable?

No. Edits to signed material can invalidate the signature.

Are headers the only place private data appears?

No. MIME parts, attachments, nested messages and URLs may repeat it.

Was an actual message redacted for the example?

No. The mapping is hypothetical and illustrates preserving relationships. It does not certify a sanitizer, an edited signature or a shareable private sample.

Can the redaction log itself be sensitive?

Yes. A mapping back to original identities may need restricted handling.

What if the supplier needs the unmodified message?

Obtain authorization for the specific data and recipient, then use an approved secure route.

[ Sources ]

Sources

  1. RFC 5322: Internet Message Format

    Sections §2 · §3

  2. RFC 6376: DKIM Signatures

    Sections §3.4 · §3.6 · §5 · §6

  3. RFC 3464: Delivery Status Notifications

    Sections §2.2 · §2.3

  4. RFC 2046: MIME Part Two

    Sections §5.1 · §5.2.1

  5. RFC 9989: DMARC

    Sections §4.10.2

[ Glossary ]

Glossary

Derivative artifact
A separately identified file produced by transforming an original.
Redaction log
A record of removed or substituted information and the resulting limitations.
MIME part
A structured component of a message, such as text, HTML or an attachment.

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