| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
IMAP General Operation, Client/Server Communication and Session States (Page 3 of 3) Normal Session Establishment and Greeting The server determines in which state the IMAP session begins, and sends a greeting message to tell the client the session is established and indicate which state it is in. Normally, the server will begin the session in the Not Authenticated state. This is conveyed to the client with the normal OK greeting message, such as this: * OK <server-name> server ready In certain circumstances, a server may already know the identity of the client, perhaps as a result of some external authentication mechanism not part of the IMAP protocol. In this case, a special greeting is used: * PREAUTH <server-name> server ready, logged in as <user-name> This tells the client that it is already in the Authenticated state. If the server decides for whatever reason not to accept a new session from the client, it can respond with a BYE response instead of OK or PREAUTH, and close the TCP connection.
Home - Table Of Contents - Contact Us The TCP/IP Guide (http://www.TCPIPGuide.com) Version 3.0 - Version Date: September 20, 2005 © Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved. Not responsible for any loss resulting from the use of this site. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||