附录 F:场景(二)
发送与邮寄场景
首先验证用户名,然后尝试向用户的终端发送。失败后,消息被邮寄到用户的邮箱。
-------------------------------------------------------------
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: 450 User not active now
S: RSET
R: 250 OK
S: MAIL 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
Scenario 5
-------------------------------------------------------------
用更高效的方式完成前一个场景。
-------------------------------------------------------------
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: SOML FROM:<[email protected]>
R: 250 OK
S: RCPT TO:<[email protected]>
R: 250 User not active now, so will do mail.
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
Scenario 6
-------------------------------------------------------------
邮寄名单场景
首先在与不同主机的独立会话中,分别展开两份邮寄名单。然后通过一台中继主机,把消息发送给出现在任一名单上的每个人(不重复)。
-------------------------------------------------------------
Step 1 -- Expanding the First List
R: 220 MIT-AI.ARPA Simple Mail Transfer Service Ready
S: HELO SU-SCORE.ARPA
R: 250 MIT-AI.ARPA
S: EXPN Example-People
R: 250-<[email protected]>
R: 250-Fred Fonebone <[email protected]>
R: 250-Xenon Y. Zither <[email protected]>
R: 250-Quincy Smith <@USC-ISIF.ARPA:[email protected]>
R: 250-<[email protected]>
R: 250 <[email protected]>
S: QUIT
R: 221 MIT-AI.ARPA Service closing transmission channel
Step 2 -- Expanding the Second List
R: 220 MIT-MC.ARPA Simple Mail Transfer Service Ready
S: HELO SU-SCORE.ARPA
R: 250 MIT-MC.ARPA
S: EXPN Interested-Parties
R: 250-Al Calico <[email protected]>
R: 250-<[email protected]>
R: 250-Quincy Smith <@USC-ISIF.ARPA:[email protected]>
R: 250-<[email protected]>
R: 250 <[email protected]>
S: QUIT
R: 221 MIT-MC.ARPA Service closing transmission channel
Step 3 -- Mailing to All via a Relay Host
R: 220 USC-ISIE.ARPA Simple Mail Transfer Service Ready
S: HELO SU-SCORE.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: RCPT TO:<@USC-ISIE.ARPA:[email protected]>
R: 250 OK
S: RCPT TO:<@USC-ISIE.ARPA:[email protected]>
R: 250 OK
S: RCPT
TO:<@USC-ISIE.ARPA,@USC-ISIF.ARPA:[email protected]>
R: 250 OK
S: RCPT TO:<@USC-ISIE.ARPA:[email protected]>
R: 250 OK
S: RCPT TO:<@USC-ISIE.ARPA:[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: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK
S: QUIT
R: 221 USC-ISIE.ARPA Service closing transmission channel
Scenario 7
-------------------------------------------------------------