APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

How do I test an imap server?


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 10.1.36.248 143
Trying 10.1.36.248...
Connected to 10.1.36.248 (10.1.36.248).
Escape character is '^]'.
* OK e-smith.pcunixx.com IMAP4rev1 v12.264 server ready
abc1 login linda AFr54Tui8
abc1 OK LOGIN completed
abc2 select inbox
* 1 EXISTS
* 2 EXISTS
* 1 RECENT
* 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?

2 comments


Inexpensive and informative Apple related e-books:

Photos: A Take Control Crash Course

Take Control of Preview

Take Control of Apple Mail, Third Edition

Sierra: A Take Control Crash Course

Take Control of Upgrading to El Capitan




Related Articles



This was helpful for testing courier-imap, thanks.







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

gravatar
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

gravatar
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





Two years from now, spam will be solved. (Bill Gates, 2004)




Linux posts

Troubleshooting posts


This post tagged:

FAQ

Mail

Networking



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode