Topic Last Modified: 2009-04-10
This topic explains how to use Telnet to verify that Internet Message Access Protocol, Version 4rev1 (IMAP4) can be used to connect to a mailbox that is on a computer running Microsoft Exchange Server 2007. The Exchange server has the Client Access server role installed. At a command prompt, type the Telnet commands that are described in this topic. The IMAP4 connection is verified by the response that you receive to the Telnet commands.
Before You Begin
Configure the IMAP4 virtual server to use the plain text logon type. To do this, start the Exchange Management Shell on the Exchange server. In the Exchange Management Shell, type the following command, and then press ENTER:
Set-ImapSettings -LoginType
"plaintextlogin"
To perform this procedure, the account that you use must be delegated the following:
- Membership in the Enterprise Administrators group
For more information about permissions, delegating roles, and the rights that are required to administer Exchange 2007, see Permission Considerations.
Procedure
To use Telnet to verify IMAP4 connectivity
-
To start a Telnet session, open a command prompt, type the following command, and then press ENTER:
Copy Code Telnet <IP address of Client Access Server (Exchange)> <Port # 143>.
For example, type Telnet 127.0.0.1 143.
If the command is successful, you receive the following response from the server:
+OK Microsoft Exchange Server 2007 IMAP4 service ready
-
To log on to the mailbox and start communication, use one of the following commands:
- Type the following command, and then press ENTER:
Copy Code ? LOGIN <Domain_Name>/<Log_On_Name> <Password>
+OK LOGIN completed
- Type the following command, and then press ENTER:
Copy Code ? LOGIN <LogOnName>@<DomainName>.<Top-Level_Domain_Name> <Password>
+OK LOGIN completed
- Type the following command, and then press ENTER:
-
To view a list of available folders, type the following command, and then press ENTER:
Copy Code ? LIST "" "*"
If the command is successful, you receive the following response from the server:
? OK LIST completed
-
To select the appropriate mailbox, type the following command, and then press ENTER:
Copy Code ? Select <Mailbox_Folder_Name>
If the command is successful, you receive a response that resembles the following, depending on the number of messages that are in the mailbox:
* # EXISTS
* # RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)]
Permanent flags
* OK [UNSEEN #] Is the first unseen message
* OK [UIDVALIDITY 63] UIDVALIDITY value
* OK [UIDNEXT 7] The next unique identifier value
? OK [READ-WRITE] SELECT completed.
-
To retrieve specific messages, type one of the following commands and then press ENTER:
Copy Code ? FETCH <message number> All
<message number> is 1, 2, 3, and so on. For example, type ? FETCH 1 All.
Copy Code ? FETCH <message number> Body
<message number> is 1, 2, 3, and so on. For example, type ? FETCH 1 Body.
-
To log off from the IMAP4 session with the Exchange computer, type the following command, and then press ENTER:
Copy Code ? LOGOUT
If the command is successful, you receive the following response from the server:
* BYE Microsoft Exchange Server 2007 IMAP4 server signing off.
? OK LOGOUT completed.
For More Information
For more information about Telnet, see Telnet Operations Guide.