Aller au contenu principal

Annexe F : scénarios (partie 1)

Cette section présente des scénarios complets de plusieurs types de sessions SMTP.

Scénario d'une transaction SMTP typique​

Cet exemple SMTP montre du courrier envoyé par Smith, sur l'hôte USC-ISIF, à Jones, Green et Brown sur l'hôte BBN-UNIX. On suppose ici que l'hôte USC-ISIF contacte directement l'hôte BBN-UNIX. Le courrier est accepté pour Jones et Brown. Green n'a pas de boîte aux lettres sur l'hôte BBN-UNIX.

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

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

S: MAIL FROM:<[email protected]>
R: 250 OK

S: RCPT TO:<[email protected]>
R: 250 OK

S: RCPT TO:<[email protected]>
R: 550 No such user here

S: RCPT TO:<[email protected]>
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.ARPA Service closing transmission channel

Scénario 1

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

Scénario d'une transaction SMTP abandonnée​

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

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

S: MAIL FROM:<[email protected]>
R: 250 OK

S: RCPT TO:<[email protected]>
R: 250 OK

S: RCPT TO:<[email protected]>
R: 550 No such user here

S: RSET
R: 250 OK

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

Scénario 2

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

Scénario de courrier relayé​

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

Étape 1 -- De l'hôte source à l'hôte relais

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

S: MAIL FROM:<[email protected]>
R: 250 OK

S: RCPT TO:<@USC-ISIE.ARPA:[email protected]>
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 <[email protected]>
S: Subject: The Next Meeting of the Board
S: To: [email protected]
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.ARPA Service closing transmission channel

Étape 2 -- De l'hôte relais à l'hôte de destination

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

S: MAIL FROM:<@USC-ISIE.ARPA:[email protected]>
R: 250 OK

S: RCPT TO:<[email protected]>
R: 250 OK

S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Received: from MIT-AI.ARPA by USC-ISIE.ARPA ;
2 Nov 81 22:40:10 UT
S: Date: 2 Nov 81 22:33:44
S: From: John Q. Public <[email protected]>
S: Subject: The Next Meeting of the Board
S: To: [email protected]
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.ARPA Service closing transmission channel

Scénario 3

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

Scénario de vérification et d'envoi​

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

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

S: VRFY Crispin
R: 250 Mark Crispin <[email protected]>

S: SEND FROM:<[email protected]>
R: 250 OK

S: RCPT TO:<[email protected]>
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.ARPA Service closing transmission channel

Scénario 4

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