How email moves

The envelope and the message

Separate SMTP routing information from the From and To fields a person sees inside the message.

8 minute lesson

~~~

An email has an envelope and a message. They are related, but they are not the same data.

SMTP commands create the envelope. MAIL FROM supplies the return path and one or more RCPT TO commands name envelope recipients. The message begins later, after DATA, and contains visible fields such as From, To, and Subject.

This separation makes forwarding, mailing lists, and blind copies possible. It also explains why debugging delivery starts with the envelope, while debugging what a user sees starts with the message headers.

Here is one complete distinction:

C: MAIL FROM:<[email protected]>
C: RCPT TO:<[email protected]>
C: DATA
C: From: Alice <[email protected]>
C: To: [email protected]
C: Subject: Private preview
C:
C: The release is ready.

The server routes toward [email protected]. The reader sees [email protected] and [email protected]. That is normal for a mailing list or blind copy. It is also why the visible From field alone does not identify the authenticated submitting account.

After final delivery, the receiving system can record the reverse path in Return-Path. Transport systems also prepend Received fields. Those fields become message trace data, but they do not change which envelope was used during the earlier SMTP transaction.

Take a saved .eml file and find From, To, Return-Path, and the oldest Received field. Write down which values came from the message and which describe transport.

Lesson completed

Take this course offline

Get every free book and course as PDF and EPUB files.

Get the download library →