返回上一頁

使用指令來連線 mail server

telnet pop3.example.com 110

ssl 連線

openssl s_client -connect pop3.example.com:995 -crlf

openssl 可以使用 git-scm 安裝時順道裝起來的 git bash, 也可以使用 choco 指令安裝

choco install openssl -y

choco 所安裝的看起來是來自 http://slproweb.com/products/Win32OpenSSL.html 所編譯的, 這位置在 openssl 官方的推薦清單上, 相信是可以被信任的

連線後可使用的 pop 指令


  USER john           Log in as "john"

  PASS password      Substitue "password" for your actual password
  
  CAPA               show list of capacity https://tools.ietf.org/html/rfc2449#page-5

  STAT               List number of messages, total mailbox size

  LIST               List messages and sizes

  RETR n             Show message n

  DELE n             Mark message n for deletion

  RSET               Undo any changes

  QUIT               Logout (expunges messages if no RSET)
  
  TOP msg n          Show first n lines of message number msg

REF

http://sunnyoasis.com/services/emailviatelnet.html https://blog.yimingliu.com/2009/01/23/testing-a-pop3-server-via-telnet-or-openssl/ https://chiangchingchi.pixnet.net/blog/post/44567869