1 / 16
文档名称:

电子邮件系统基本协议介绍.ppt

格式:ppt   页数:16
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

电子邮件系统基本协议介绍.ppt

上传人:管理资源吧 2011/12/29 文件大小:0 KB

下载得到文件列表

电子邮件系统基本协议介绍.ppt

文档介绍

文档介绍:电子邮件系统基本协议介绍
XX有限公司
电子邮件(email)
SMTP - 简单邮件传输协议(Simple Mail Transfer Protocol)
RFC 821
POP - 邮局协议(Post Office Protocol)
RFC 1939
其他:
RFC 822 Standard for the Format of ARPA Text Messages
RFCs 1521, 1522 Mime
概念
用户代理(User Agent): 最终用户邮件程序
信息传送代理(Message Transfer Agent): 同远程主机通讯,传送或接收邮件(是客户端也是服务器端)
邮件网关(Mail Exchanger):负责一个域邮件的机器
SMTP
使用SMTP协议在邮件服务器(Message Transfer Agents)之间传送邮件信息。
MTA
MTA
UA
SMTP
File
System
MTA
SMTP
UA
SMTP 协议
SMTP发送者是客户
SMTP接收者是服务器
交互过程:
客户向服务器发送命令,服务器对命令进行响应(回复状态信息)。
命令有先后顺序!
状态信息包括ascii编码的数字和文本。
SMTP 命令
HELO - 确认发送者
MAIL FROM: - 开始一个有事务处理,确认邮件发送者。
RCPT TO: - 确认单独的邮件接收者. 可以有多个RCPT TO: 命令.
DATA - 发送者开始发送多行文本, 每一行由\r\n结束. 用只含有‘.’的单独一行结束文本。
数据格式
只能是ASCII - 二进制数据必须转换成ASCII码。.
例子
.# mail. 25
Trying ...
Connected to here..
Escape character is '^]'.
220 here. ESMTP Sendmail .8; Sat, 14 Mar 1998 21:28:41 -0500 (EST)
HELO .
250 here. Hello ******@. [], pleased to meet you
MAIL FROM: ******@.
250 ******@.... Sender ok
RCPT TO: hollingd@
250 hollingd... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
Hi dave - this message is a test of SMTP
.
250 VAA07541 Message accepted for delivery
Leading Period
DATA
354 Enter mail, end with "." on a line by itself
Hi dave - this message is a test of SMTP
..
..foo
..
.
250 VAA0771 Message accepted for delivery
最终信息:
Hi dave - this message is a test of SMTP
.
.foo
.
其他命令
VRFY - 校验一个用户是否存在.
EXPN - 展开一个别名(一组邮件地址).
TURN - 交换角色(sender <-> receiver).
SOML - Send Or Mail
如果接收者在线,在它的终端上显示信息,否则发送邮件。
SAML - Send and Mail
NOOP - send back a positive reply code.
RSET - 终止处理.