How to use openssl to connect to a pop3 server and retrieve emails?

openssl s_client -connect domainhostseotool.com:995

user admin@domainhostseotool.com

pass yourpassword

stat

(show total messages and size of the messages)

list

(show each message on a new line, including message number and the size of the message)

retr messagenumber

(retrieve the content of a message by its message number)

dele messagenumber

(delete a message)

rset

(reset the session)

top messagenumber lines

(retrieve top lines of a message)

capa

(list the capabilities)

uidl

(list each message with its message number and unique identifier )

quit

Note that all pop3 commands have 4 characters.

reference

 

Posted in tips of hosting