MAIL, RCPT, DATA
04A transaction sets one reverse-path, one or more recipients, then transfers the message content.
Only the completion reply establishes acceptance of the message content.
Key idea: Keep each transaction state explicit.
Rules & examples
Keep each transaction state explicit.
- MAIL starts a transaction and sets the reverse-path; each RCPT adds an accepted recipient.
- DATA begins content transfer only after a 354 intermediate reply.
- The final reply after the end-of-data marker determines acceptance of that message for the accepted recipients.
Recipients can succeed or fail independently at RCPT. RSET abandons transaction state; QUIT ends the session. A session can carry multiple mail transactions.
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.