Lines & dot transparency
05SMTP uses CRLF line endings and a single-dot line to mark the end of DATA. Dot-stuffing preserves literal leading dots.
The standalone dot line ends content transfer and is not part of the delivered message.
Key idea: Escape content so it cannot impersonate the delimiter.
Rules & examples
Escape content so it cannot impersonate the delimiter.
- Lines end in CRLF; a line containing only a dot terminates DATA.
- The sender prepends a dot to each content line that begins with a dot.
- The receiver removes the extra leading dot from non-terminator lines.
Message framing is distinct from MIME encoding and from optional extensions that provide a different transfer method. A bare LF is not the defined SMTP line terminator.
Sources
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.