Pages

Friday, August 24, 2007

Basic steps to TELNET on IMAP protocol

IMAP means Internet Message Access Protocol.This is a method of accessin mail from the mail server. To check connection from Telnet

Example Commands



Server Capability

To check the capabilities of a server, issue the following two commands:

a001 CAPABILITY

a002 logout


This would look like:


[]:[8:48am]:[/home/rnejdl] > telnet mail 143
Trying 66.13.175.242...
Connected to tethys.ringofsaturn.com.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] tethys.r
ingofsaturn.com IMAP4rev1 2004.350 at Sun, 8 Aug 2004 13:51:21 -0500 (CDT)
a001 CAPABILITY
* CAPABILITY IMAP4REV1 LITERAL+ IDLE NAMESPACE MAILBOX-REFERRALS BINARY UNSELECT
SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND SASL-IR LOGIN-REF
ERRALS AUTH=LOGIN
a001 OK CAPABILITY completed
a002 logout
* BYE tethys.ringofsaturn.com IMAP4rev1 server terminating connection
a002 OK LOGOUT completed
Connection closed by foreign host.


Testing Logins

Assume your username is dexter, with password pass, and your
mailserver is mserver.mynet.com. First we connect to the imap server,
which is on port 143, as follows:


[]:[8:49am]:[/home/rnejdl] > telnet mserver 143
Trying 192.168.1.2...
Connected to mserver.mynet.com.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN] mserver.mynet.co
m IMAP4rev1 2001.315rh at Sat, 30 Aug 2003 11:08:06 -0700 (PDT)


Then we login (obviously, use your account and password, not "dexter" and "pass"!):


a01 login dexter
RESPONSE: a01 OK User logged in

To know more about IMAP and it is function from link here...

Thank you
Ganesh.KB


Technorati Tags: , , ,

Powered by ScribeFire.

1 comment:

NAFASG said...

Hi friend,

We are inviting you to read our article on Looking For A Long Lost Friend to help Sandy search for her long lost friend.

You may post and copy the Looking For A Long Lost Friend post in your blog to help Sandy search for her friend and add our badge along with the article posted.

We hope that your act of kindness will be rewarded.

Thank you, friend
Best Regards,
NAFASG TEAM