How do I test an imap server?

Each line you type is in bold:

The "abc1" etc at the begining of each command is just a tag you make up. Supposedly it should be unique for each line; I've found you can actually use the same tag over and over again.

telnet 143
Connected to (
Escape character is '^]'.
* OK IMAP4rev1 v12.264 server ready
abc1 login linda AFr54Tui8
abc1 OK LOGIN completed
abc2 select inbox
* OK [UIDVALIDITY 1020929003] UID validity status
* OK [UIDNEXT 1020929444] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 2] first unseen message in inbox
abc2 OK [READ-WRITE] SELECT completed
abc3 fetch 2 body[text]
* 2 FETCH (BODY[TEXT] {25}

This is just a test

* 2 FETCH (FLAGS (\Recent \Seen))
abc3 OK FETCH completed
abc4 close
abc4 OK CLOSE completed
abc5 logout
* BYE IMAP4rev1 server terminating connection
abc5 OK LOGOUT completed

Note that if your server only accepts secure IMAP, you'll need to use openssl instead of telnet:

openssl s_client -connect

Then proceed as above.

Got something to add? Send me email.

(OLDER) <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> (SCO Unix) How do I test an imap server?


Increase ad revenue 50-250% with Ezoic

This was helpful for testing courier-imap, thanks.

Wed Apr 1 21:34:32 2009: 5957   anonymous

Great stuff and to the point, thanks!

And if I'm not wrong, I believe this is not the first time your site gets me out of trouble, keep up the good work!

Thu Apr 2 11:44:29 2009: 5961   TonyLawrence

It gets me out of trouble now and then too..

Kerio Connect Mailserver

Kerio Samepage

Kerio Control Firewall

Have you tried Searching this site?

Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us