Skip to main content

Appendix F: Scenarios (Part 1)

This section presents complete scenarios of several types of SMTP sessions.

A Typical SMTP Transaction Scenario​

This SMTP example shows mail sent by Smith at host USC-ISIF, to Jones, Green, and Brown at host BBN-UNIX. Here we assume that host USC-ISIF contacts host BBN-UNIX directly. The mail is accepted for Jones and Brown. Green does not have a mailbox at host BBN-UNIX.

-------------------------------------------------------------

R: 220 BBN-UNIX Simple Mail Transfer Service Ready
S: HELO USC-ISIF
R: 250 BBN-UNIX

S: MAIL FROM:<Smith@USC-ISIF>
R: 250 OK

S: RCPT TO:<Jones@BBN-UNIX>
R: 250 OK

S: RCPT TO:<Green@BBN-UNIX>
R: 550 No such user here

S: RCPT TO:<Brown@BBN-UNIX>
R: 250 OK

S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK

S: QUIT
R: 221 BBN-UNIX Service closing transmission channel

Scenario 1

-------------------------------------------------------------

Aborted SMTP Transaction Scenario​

-------------------------------------------------------------

R: 220 MIT-Multics Simple Mail Transfer Service Ready
S: HELO ISI-VAXA
R: 250 MIT-Multics

S: MAIL FROM:<Smith@ISI-VAXA>
R: 250 OK

S: RCPT TO:<Jones@MIT-Multics>
R: 250 OK

S: RCPT TO:<Green@MIT-Multics>
R: 550 No such user here

S: RSET
R: 250 OK

S: QUIT
R: 221 MIT-Multics Service closing transmission channel

Scenario 2

-------------------------------------------------------------

Relayed Mail Scenario​

-------------------------------------------------------------

Step 1 -- Source Host to Relay Host

R: 220 USC-ISIE Simple Mail Transfer Service Ready
S: HELO MIT-AI
R: 250 USC-ISIE

S: MAIL FROM:<JQP@MIT-AI>
R: 250 OK

S: RCPT TO:<@ISIE,Jones@BBN-VAX>
R: 250 OK

S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Date: 2-Nov-81 22:33:44
S: From: John Q. Public <JQP at MIT-AI>
S: Subject: The Next Meeting of the Board
S: To: Jones at BBN-Vax
S:
S: Bill:
S: The next meeting of the board of directors will be
S: on Tuesday.
S: John.
S: .
R: 250 OK

S: QUIT
R: 221 USC-ISIE Service closing transmission channel

Step 2 -- Relay Host to Destination Host

R: 220 BBN-VAX Simple Mail Transfer Service Ready
S: HELO USC-ISIE
R: 250 BBN-VAX

S: MAIL FROM:<@ISIE,JQP@MIT-AI>
R: 250 OK

S: RCPT TO:<Jones@BBN-VAX>
R: 250 OK

S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Mail-From: NCP host MIT-AI received by USC-ISIE at
2-Nov-81 22:40:10
S: Date: 2-Nov-81 22:33:44
S: From: John Q. Public <JQP at MIT-AI>
S: Subject: The Next Meeting of the Board
S: To: Jones at BBN-Vax
S:
S: Bill:
S: The next meeting of the board of directors will be
S: on Tuesday.
S: John.
S: .
R: 250 OK

S: QUIT
R: 221 USC-ISIE Service closing transmission channel

Scenario 3

-------------------------------------------------------------

Verifying and Sending Scenario​

-------------------------------------------------------------

R: 220 SU-SCORE Simple Mail Transfer Service Ready
S: HELO MIT-MC
R: 250 SU-SCORE

S: VRFY Crispin
R: 250 Mark Crispin <Admin.MRC@SU-SCORE>

S: SEND FROM:<EAK@MIT-MC>
R: 250 OK

S: RCPT TO:<Admin.MRC@SU-SCORE>
R: 250 OK

S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK

S: QUIT
R: 221 SU-SCORE Service closing transmission channel

Scenario 4

-------------------------------------------------------------