- 13
- 0
- 约4.22千字
- 约 21页
- 2018-05-02 发布于贵州
- 举报
SMTP(简单邮件传输协议)1
SMTP(简单邮件传输协议) SIMPLE MAIL TRANSFER PROTOCOL RFC 2812 Introdution standard e-mail protocol part of the TCP/IP protocol defines the message format and the message transfer agent (MTA) TCP port 25 text-based protocol Internet email system User agent Mail server SMTP Some mail agents Microsoft Outlook Foxmail Netscape Messenger Endora Mail,pine,elm Mail Server Core of email system Mailbox Message queue SMTP SMTP was originally designed for only plain text (ASCII text) Provides reliable delivery of messages Uses TCP and message exchange between client and server Other functions: E-mail address lookup E-mail address verification Scenario SMTP Session 220 mail.cs.tcd.ie ESMTP Postfix (1.1.13) helo FooBar mail from: alice@crepes.fr 250 Ok rcpt to: bob@ 250 Ok data 354 End data with CRLF.CRLF To: Someone@S From: SomeOneElse@S Subject: FooBar Hello World . 250 Ok: queued as A04537DB3 quit 221 Bye SMTP commands HELO domainname startup and give your hostname MAIL MAIL FROM: sender-address mail from this address RECV TO: recipient-address send it to this address VRFY address does this address actually exist (verify) EXPN address expand this address DATA start giving you the body of the mail message RSET reset state and drop current mail message NOOP do nothing DEBUG [level] set debugging level HELP give me some help please QUIT close this connection Telnet SMTP server telnet servername 25 Helo,mail from,rcpt to,data,crlf.crlf,quit SMTP, HTTP Request/Reply protocols built on TCP or UDP Designed to handle a fixed set of messages Pull portocol and push protocol MIME: Multipurpose Internet Mail Extensions Consists of three parts Additional RFC822 Headers MIME-Version: Content-Type: Content-Transfer-Encoding: Content types (and subtypes) text/plain text/rich image/gif application/postscript Multipart/mixed; boundary=“…” MIME Encoding Mail systems assume ASCII Only 64 valid characters A-Z, a-z, 0-9, +, / Some datatypes include arbitrary binary data (e.g. JPEG) Base6
原创力文档

文档评论(0)