# # (SCO Unix) How do I test an imap server?
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

How do I test an imap server?

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.

Some material is very old and may be incorrect today

© December 2003 (various)

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 e-smith.pcunixx.com 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 e-smith.pcunixx.com 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 mail.yourserver.com:993

Then proceed as above.

If you found something useful today, please consider a small donation.

Got something to add? Send me email.

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

Printer Friendly Version

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


Inexpensive and informative Apple related e-books:

Take Control of the Mac Command Line with Terminal, Second Edition

Sierra: A Take Control Crash Course

Take Control of Upgrading to El Capitan

Take Control of Preview

iOS 10: A Take Control Crash Course

Related Articles

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..


Printer Friendly Version

Related Articles

Have you tried Searching this site?

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

Printer Friendly Version

Unlike info, pinfo does not display anything if it has nothing. I've been forever irritated by info coming up with its default page when it has nothing to tell me. (Tony Lawrence)

Linux posts

Troubleshooting posts

This post tagged:




Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode