Test IMAP with Telnet
by DougR on May.26, 2009, under Avaya, Best Practices, Documentation, IP Office, Windows
So the new UMS server enables users to connect via IMAP (a standard email protocol) from any client. The new interface frees users from the confines of IMS requirements of Exchange and Outlook, and the required cumbersome process of installation. UMS simply installs and it’s good. Setting up clients are about as easy as setting up any other email account. In the rare case that a client does not connect, here is a simple method to test the the IMAP interface on the UMS server is responding correctly.
The numbers on each line should increment with each new command. They are not specific to the command, only to the sequence of commands entered. Open a standard console (CMD prompt on Windows, Terminal on MAC and Linux).
telnet server 143
01 LOGIN username password
(where username and password are the users account information)
02 LIST “” *
shows you all available mailboxes.
03 SELECT mailbox
where mailbox is the mailbox or folder to interact with. Should be listed in the result of line 02
To show the information about a mailbox:
04 STATUS mailbox (MESSAGES)
Between () you can place one or more of the following: MESSAGES, UNSEEN, RECENT UIDNEXT UIDVALIDITY
And one of the following commands to view the a message 1 is the first message * is wildcard for all:
05 FETCH 1 ALL # All IMAP headers
05 FETCH 1 FULL # Full headers and body info
05 FETCH 1 BODY # Body
05 FETCH 1 ENVELOPE # Envelope
05 FETCH * FULL # All email
To fully retrieve a message use:
06 UID fetch 1:1 (UID RFC822.SIZE FLAGS BODY.PEEK[])
To close the message
07 CLOSE
To leave
08 LOGOUT
Leave a Reply
You must be logged in to post a comment.