Visual RFC.
ALL RFCs / RFC 5321
Read the RFC ↗
RFC 5321 / DELIVERY AND FAILURES

Relays, aliases & traces

07

Mail can pass through relays, gateways, aliases, and mailing lists before final delivery.

RFC 5321 · § 4.4EXAMPLE
4 / 4
04
Leave diagnostic evidence.

Operators can inspect the chain when investigating delays and routing loops.

Relays, aliases & tracesEach relay prepends a Received entry to the message trace. Final delivery places Return-Path above the Received entries, which retain their relative order.A trace grows at each hopIllustrative Received header stackMail objectDelivered headersReturn-Path: <bounce@…>Received: by destinationReceived: by relayReceived: by originOlder trace entries remain in their original orderOperators can investigate routing loops and delaysPreserve the chain for diagnosis

Key idea: Preserve the trace while forwarding responsibly.

Terms

Look up a term in the glossary ↗

Rules & examples
  • An SMTP receiver adds a Received trace entry; existing trace entries are not reordered or rewritten by relays.
  • Final delivery inserts Return-Path from the reverse-path under the defined rules.
  • Aliases and mailing lists differ in responsibility and envelope handling; gateways bridge transport environments.

Received entries help diagnose loops, but can disclose topology. Implementations need loop-detection controls and must not expose blind-copy recipient sets through trace data.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

The envelope and the letter do different jobs.

Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 5321

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗