?? 00000018.htm
字號:
angle brackets indicate these are meta-linguistic variables. <br /> However, some arguments use the angle brackets literally. For <br /> example, an actual reverse-path is enclosed in angle brackets, i.e., <br /> "<<a href="mailto:John.Smith@USC-ISI.ARPA>"">John.Smith@USC-ISI.ARPA>"</a> is an instance of <reverse-path> (the <br /> angle brackets are actually transmitted in the command or reply). <br />Postel [Page 3] <br /> <br /> <br />August 1982 RFC 821 <br />Simple Mail Transfer Protocol <br />3. THE SMTP PROCEDURES <br /> This section presents the procedures used in SMTP in several parts. <br /> First comes the basic mail procedure defined as a mail transaction. <br /> Following this are descriptions of forwarding mail, verifying mailbox <br /> names and expanding mailing lists, sending to terminals instead of or <br /> in combination with mailboxes, and the opening and closing exchanges. <br /> At the end of this section are comments on relaying, a note on mail <br /> domains, and a discussion of changing roles. Throughout this section <br /> are examples of partial command and reply sequences, several complete <br /> scenarios are presented in Appendix F. <br /> 3.1. MAIL <br /> There are three steps to SMTP mail transactions. The transaction <br /> is started with a MAIL command which gives the sender <br /> identification. A series of one or more RCPT commands follows <br /> giving the receiver information. Then a DATA command gives the <br /> mail data. And finally, the end of mail data indicator confirms <br /> the transaction. <br /> The first step in the procedure is the MAIL command. The <br /> <reverse-path> contains the source mailbox. <br /> MAIL <SP> FROM:<reverse-path> <CRLF> <br /> This command tells the SMTP-receiver that a new mail <br /> transaction is starting and to reset all its state tables and <br /> buffers, including any recipients or mail data. It gives the <br /> reverse-path which can be used to report errors. If accepted, <br /> the receiver-SMTP returns a 250 OK reply. <br /> The <reverse-path> can contain more than just a mailbox. The <br /> <reverse-path> is a reverse source routing list of hosts and <br /> source mailbox. The first host in the <reverse-path> should be <br /> the host sending this command. <br /> The second step in the procedure is the RCPT command. <br /> RCPT <SP> TO:<forward-path> <CRLF> <br /> This command gives a forward-path identifying one recipient. <br /> If accepted, the receiver-SMTP returns a 250 OK reply, and <br /> stores the forward-path. If the recipient is unknown the <br /> receiver-SMTP returns a 550 Failure reply. This second step of <br /> the procedure can be repeated any number of times. <br />[Page 4] Postel <br /> <br /> <br />RFC 821 August 1982 <br /> Simple Mail Transfer Protocol <br /> The <forward-path> can contain more than just a mailbox. The <br /> <forward-path> is a source routing list of hosts and the <br /> destination mailbox. The first host in the <forward-path> <br /> should be the host receiving this command. <br /> The third step in the procedure is the DATA command. <br /> DATA <CRLF> <br /> If accepted, the receiver-SMTP returns a 354 Intermediate reply <br /> and considers all succeeding lines to be the message text. <br /> When the end of text is received and stored the SMTP-receiver <br /> sends a 250 OK reply. <br /> Since the mail data is sent on the transmission channel the end <br /> of the mail data must be indicated so that the command and <br /> reply dialog can be resumed. SMTP indicates the end of the <br /> mail data by sending a line containing only a period. A <br /> transparency procedure is used to prevent this from interfering <br /> with the user's text (see Section 4.5.2). <br /> Please note that the mail data includes the memo header <br /> items such as Date, Subject, To, Cc, From [2]. <br /> The end of mail data indicator also confirms the mail <br /> transaction and tells the receiver-SMTP to now process the <br /> stored recipients and mail data. If accepted, the <br /> receiver-SMTP returns a 250 OK reply. The DATA command should <br /> fail only if the mail transaction was incomplete (for example, <br /> no recipients), or if resources are not available. <br /> The above procedure is an example of a mail transaction. These <br /> commands must be used only in the order discussed above. <br /> Example 1 (below) illustrates the use of these commands in a mail <br /> transaction. <br />Postel [Page 5] <br /> <br /> <br />August 1982 RFC 821 <br />Simple Mail Transfer Protocol <br /> ------------------------------------------------------------- <br /> Example of the SMTP Procedure <br /> This SMTP example shows mail sent by Smith at host Alpha.ARPA, <br /> to Jones, Green, and Brown at host Beta.ARPA. Here we assume <br /> that host Alpha contacts host Beta directly. <br />
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -