Appendice F: scenari (parte 1)
Questa sezione presenta scenari completi di diversi tipi di sessioni SMTP.
Scenario di una transazione SMTP tipica
Questo esempio SMTP mostra la posta inviata da Smith presso l'host USC-ISIF a Jones, Green e Brown presso l'host BBN-UNIX. Qui si assume che l'host USC-ISIF contatti direttamente l'host BBN-UNIX. La posta è accettata per Jones e Brown. Green non ha una casella di posta presso l'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
-------------------------------------------------------------
Scenario di una transazione SMTP interrotta
-------------------------------------------------------------
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
-------------------------------------------------------------
Scenario di posta ritrasmessa (relay)
-------------------------------------------------------------
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
-------------------------------------------------------------
Scenario di verifica e invio
-------------------------------------------------------------
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
-------------------------------------------------------------