RFC821-简单邮件传输协议(SMTP)中文版--之四

时间:2010-01-08 15:39:45   来源:第二电脑网  作者:第二电脑网

  第二电脑网导读:@USC-ISIE.ARPA:JQP@MIT-AI.ARPA>R: 250 OK S: RCPT TO:<Jones@BBN-VAX.ARPA>R: 250 OK S: DATAR: 354 Start mail input; end with <CRLF>.<CRLF>S: Received: from MIT-AI.ARPA by USC-ISIE.ARPA ;2 Nov 81 22:40:10 UTS: Date: 2 Nov 81 22:33:44S: From: John Q. Pu...
  正文:

本文出自: 作者: (2001-11-23 09:08:00)
第二步:转发主机到目的主机

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:JQP@MIT-AI.ARPA>

R: 250 OK

 

S: RCPT TO:<Jones@BBN-VAX.ARPA>

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 <JQP@MIT-AI.ARPA>

S: Subject: The Next Meeting of the Board

S: To: Jones@BBN-Vax.ARPA

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



确认和发送

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 <Admin.MRC@SU-SCORE.ARPA>

 

S: SEND FROM:<EAK@MIT-MC.ARPA>

R: 250 OK

 

S: RCPT TO:<Admin.MRC@SU-SCORE.ARPA>

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



获得和发送邮件 首先确定用户名,然后尝试将邮件发送到用户终端,
当它失败时,发送到用户邮箱。

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 <Admin.MRC@SU-SCORE.ARPA>

 

S: SEND FROM:<EAK@MIT-MC.ARPA>

R: 250 OK

 

S: RCPT TO:<Admin.MRC@SU-SCORE.ARPA>

R: 450 User not active now

 

S: RSET

R: 250 OK

 

S: MAIL FROM:<EAK@MIT-MC.ARPA>

R: 250 OK

 

S: RCPT TO:<Admin.MRC@SU-SCORE.ARPA>

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



上述问题的更有效的作法

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 <Admin.MRC@SU-SCORE.ARPA>

 

S: SOML FROM:<EAK@MIT-MC.ARPA>

R: 250 OK

 

S: RCPT TO:<Admin.MRC@SU-SCORE.ARPA>

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



  邮件列表 首先,两个邮件列表中的每一个在不同主机的不同会话上扩展,
然后,通过转发主机向列表上的用户发送邮件。

第一步:扩展第一个列表

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-<ABC@MIT-MC.ARPA>

R: 250-Fred Fonebone <Fonebone@USC-ISIQ.ARPA>

R: 250-Xenon Y. Zither <XYZ@MIT-AI.ARPA>

R: 250-Quincy Smith <@USC-ISIF.ARPA:Q-Smith@ISI-VAXA.ARPA>

R: 250-<joe@foo-unix.ARPA>

R: 250 <xyz@bar-unix.ARPA>

 

S: QUIT

R: 221 MIT-AI.ARPA Service closing transmission channel

 

第二步:扩展第二个列表

R: 220 MIT-MC.ARPA Simple Mail Transfer Service Ready
来源:http://www.002pc.com/pcedu/network/jichulilun/11629.html

收藏到:

关于《RFC821-简单邮件传输协议(SMTP)中文版--之四》文章的评论

共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面

随机文章

    SQL Error: select * from ***_ecms_article where classid='203' and checked=1 order by rand() limit 10

顶出来的热门

    SQL Error: select * from ***_ecms_article where classid='203' and checked=1 order by diggtop desc,id desc limit 10
站内搜索: 高级搜索

热门搜索: Windows style 系统 tr IP QQ CPU 安装 function 注册 if td