Posted by: nowiremember | March 17, 2011

POP3 Server Commands

Stuck with just a shell access and need to check your mail ?

Just telnet your favorite POP3 server and use these commands

Command Responses Examples
USER name +OK name is welcome here
-ERR never heard of name
USER David
+OK Please enter a password
PASS string +OK maildrop locked and ready
-ERR invalid password
-ERR
unable to lock maildrop
PASS test
+OK valid logon
QUIT +OK +OK Server closing connection
STAT +OK nn mm STAT
+OK 2 320
LIST [msg] +OK scan listing follows
-ERR no such message
LIST
+OK 2 messages (320 octets)
1 120
2 200
… 

LIST 2
+OK 2 200

RETR msg +OK message follows
-ERR no such message
RETR 1
+OK 120 octets
< the POP3 server sends the entire
message here >
DELE msg +OK message deleted
-ERR no such message
DELE 2
+OK message deleted
NOOP +OK no transaction NOOP
+OK
LAST +OK nn LAST
+OK 2
RSET +OK RSET
+OK maildrop has 2 messages (320 octets)
Additional Commands
TOP msg nn +OK top of msg
-ERR
TOP 1 10
+OK
< first 10 lines of the header >
RPOP user +OK
-ERR
RPOP david
+OK enter password
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: