Friday, January 13, 2012

POP protocol

Now we can see how to get your emails from gmail account to your terminal....

In terminal give the following command,

openssl s_client -connect pop.gmail.com:995

now you will get connection information, server certificate, SSL handshake information and some stuff..

here we use openssl command because gmail's POP(Post Office Protocol) is build on top of SSL(Secure Sockets Layer).

now type,

user <gmail username>

you will get an OK message prompting for password

pass <gmail password for the above mentioned account>

now again OK but with welcome

try the following commands now,

list                                          lists all the mail in the drop box(in POP we don't have the concept of
                                              folders so all the mails will be listed)
retr <msg no>                          this opens the message

top <msg no> <no of lines>      this list first line to the line number specified in the message
                                              corresponding to the message number specified

dele <msg no>                        deletes the message to corresponding to the message number
                                              specified

quit                                         you know what is the use of this.... bye....

No comments:

Post a Comment