?? 00000017.htm
字號:
its relay host and sends all mail to it. This relay host could <br /> be, but need not be, the POP3 server host for the client host. Of <br /> course, the relay host must accept mail for delivery to arbitrary <br /> recipient addresses, that functionality is not required of all <br /> SMTP servers. <br />Myers & Rose Standards Track [Page 2] <br /> <br />RFC 1939 POP3 May 1996 <br />3. Basic Operation <br /> Initially, the server host starts the POP3 service by listening on <br /> TCP port 110. When a client host wishes to make use of the service, <br /> it establishes a TCP connection with the server host. When the <br /> connection is established, the POP3 server sends a greeting. The <br /> client and POP3 server then exchange commands and responses <br /> (respectively) until the connection is closed or aborted. <br /> Commands in the POP3 consist of a case-insensitive keyword, possibly <br /> followed by one or more arguments. All commands are terminated by a <br /> CRLF pair. Keywords and arguments consist of printable ASCII <br /> characters. Keywords and arguments are each separated by a single <br /> SPACE character. Keywords are three or four characters long. Each <br /> argument may be up to 40 characters long. <br /> Responses in the POP3 consist of a status indicator and a keyword <br /> possibly followed by additional information. All responses are <br /> terminated by a CRLF pair. Responses may be up to 512 characters <br /> long, including the terminating CRLF. There are currently two status <br /> indicators: positive ("+OK") and negative ("-ERR"). Servers MUST <br /> send the "+OK" and "-ERR" in upper case. <br /> Responses to certain commands are multi-line. In these cases, which <br /> are clearly indicated below, after sending the first line of the <br /> response and a CRLF, any additional lines are sent, each terminated <br /> by a CRLF pair. When all lines of the response have been sent, a <br /> final line is sent, consisting of a termination octet (decimal code <br /> 046, ".") and a CRLF pair. If any line of the multi-line response <br /> begins with the termination octet, the line is "byte-stuffed" by <br /> pre-pending the termination octet to that line of the response. <br /> Hence a multi-line response is terminated with the five octets <br /> "CRLF.CRLF". When examining a multi-line response, the client checks <br /> to see if the line begins with the termination octet. If so and if <br /> octets other than CRLF follow, the first octet of the line (the <br /> termination octet) is stripped away. If so and if CRLF immediately <br /> follows the termination character, then the response from the POP <br /> server is ended and the line containing ".CRLF" is not considered <br /> part of the multi-line response. <br /> A POP3 session progresses through a number of states during its <br /> lifetime. Once the TCP connection has been opened and the POP3 <br /> server has sent the greeting, the session enters the AUTHORIZATION <br /> state. In this state, the client must identify itself to the POP3 <br /> server. Once the client has successfully done this, the server <br /> acquires resources associated with the client's maildrop, and the <br /> session enters the TRANSACTION state. In this state, the client <br /> requests actions on the part of the POP3 server. When the client has <br />Myers & Rose Standards Track [Page 3] <br /> <br />RFC 1939 POP3 May 1996 <br /> issued the QUIT command, the session enters the UPDATE state. In <br /> this state, the POP3 server releases any resources acquired during <br /> the TRANSACTION state and says goodbye. The TCP connection is then <br /> closed. <br /> A server MUST respond to an unrecognized, unimplemented, or <br /> syntactically invalid command by responding with a negative status <br /> indicator. A server MUST respond to a command issued when the <br /> session is in an incorrect state by responding with a negative status <br /> indicator. There is no general method for a client to distinguish <br /> between a server which does not implement an optional command and a <br /> server which is unwilling or unable to process the command. <br /> A POP3 server MAY have an inactivity autologout timer. Such a timer <br /> MUST be of at least 10 minutes' duration. The receipt of any command <br /> from the client during that interval should suffice to reset the <br /> autologout timer. When the timer expires, the session does NOT enter <br /> the UPDATE state--the server should close the TCP connection without <br /> removing any messages or sending any response to the client. <br />4. The AUTHORIZATION State <br /> Once the TCP connection has been opened by a POP3 client, the POP3 <br /> server issues a one line greeting. This can be any positive <br /> response. An example might be: <br /> S: +OK POP3 server ready <br /> The POP3 session is now in the AUTHORIZATION state. The client must <br /> now identify and authenticate itself to the POP3 server. Two <br /> possible mechanisms for doing this are described in this document, <br /> the USER and PASS command combination and the APOP command. Both <br /> mechanisms are described later in this document. Additional <br /> authentication mechanisms are described in [RFC1734]. While there is <br /> no single authentication mechanism that is required of all POP3 <br /> servers, a POP3 server must of course support at least one <br /> authentication mechanism. <br /> Once the POP3 server has determined through the use of any <br /> authentication command that the client should be given access to the <br /> appropriate maildrop, the POP3 server then acquires an exclusive- <br /> access lock on the maildrop, as necessary to prevent messages from <br /> being modified or removed before the session enters the UPDATE state. <br /> If the lock is successfully acquired, the POP3 server responds with a <br /> positive status indicator. The POP3 session now enters the <br /> TRANSACTION state, with no messages marked as deleted. If the <br />
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -