【UVa814】邮件传输代理的交互(SMTP模拟) The Letter Carrier's Rounds

1、题目描述:

For an electronic mail application you are to describe the SMTP-based communication that takes place between pairs of MTAs. The sender’s User Agent gives a formatted message to the sending Message Transfer Agent (MTA). The sending MTA communicates with the receiving MTA using the Simple Mail Transfer Protocol (SMTP). The receiving MTA delivers mail to the receiver’s User Agent. After a communication link is initialized, the sending MTA transmits command lines, one at a time, to the receiving MTA, which returns a three-digit coded response after each command is processed. The sender commands are shown below in the order sent for each message. There is more than one RCPT TO line when the same message is sent to several users at the same MTA. A message to users at different MTAs requires separate SMTP sessions. 

HELO myname Identifies the sender to the receiver (yes, there is only one L) 
MAIL FROM:< sender > Identifies the message sender 
RCPT TO:< user > Identifies one recipient of the message 
DATA Followed by an arbitrary number of lines of text comprising the message body, ending with a line containing a period in column one. 
QUIT Terminates the communication. 
The following response codes are sent by the receiving MTA: 
221 Closing connection (after QUIT) 
250 Action was okay (after MAIL FROM and RCPT TO specifying an acceptable user, or completion of a message) 
354 Start sending mail (after DATA) 
550 Action not taken; no such user here (after RCPT TO with unknown user) 

具体题目意思可以用翻译软件翻译一下,其实重点就是下面的成功/错误编码和报文类型啦。理解题意可以看下面的输入、输出示例,方便更快理解题目。</

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值