Chinaunix首页 | 论坛 | 博客
  • 博客访问: 593177
  • 博文数量: 158
  • 博客积分: 2696
  • 博客等级: 少校
  • 技术积分: 1668
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-10 00:49
个人简介

life?is?short?,?play?more!

文章分类

全部博文(158)

文章存档

2021年(1)

2013年(10)

2012年(4)

2011年(11)

2010年(27)

2009年(28)

2008年(52)

2007年(25)

我的朋友

分类: LINUX

2009-10-24 14:28:06

telnet 一个不需要ssl的pop邮箱。

这个比较简单了,如下的操作就可以查看你的邮箱里的邮件。(具体命令可以查看pop3 的命令)

[root@localhost ~]# telnet system.mail 110
Trying 10.100.3.228...
Connected to system.mail (10.100.3.228).
Escape character is '^]'.
+OK lenovo.mail POP MDaemon 8.0.2 ready
user test030000
+OK test030000... User ok
pass 1
+OK test030000@lenovo.mail's mailbox has 6 total messages (27678 octets)
list
+OK 6 27678
1 18671
2 1730
3 1742
4 1733
5 1899
6 1903
.
quit
+OK test030000@lenovo.mail lenovo.mail POP Server signing off (6 messages left)
Connection closed by foreign host.

但是如果要telnet 一个pop3邮箱需要ssl的话,用telnet的话,是不能正常通讯的。

从google上搜索到了一个很好用的工具。

因为gmail需要ssl的,(例如你在设置outlook,foxmail的时候需要将ssl的那个选项悬赏)

如下:

openssl s_client -connect pop.gmail.com:995

用openssl的命令,就可以访问需要ssl的pop3 邮箱,非常方便。

[root@localhost ~]# openssl s_client -connect pop.gmail.com:995
CONNECTED(00000003)
depth=2 /C=US/O=Equifax/OU=Equifax Secure Certificate Authority
verify return:1
depth=1 /C=US/O=Google Inc/CN=Google Internet Authority
verify return:1
depth=0 /C=US/ST=California/L=Mountain View/O=Google Inc/CN=pop.gmail.com
verify return:1
---
Certificate chain
 0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=pop.gmail.com
  i:/C=US/O=Google Inc/CN=Google Internet Authority
 1 s:/C=US/O=Google Inc/CN=Google Internet Authority
  i:/C=US/O=Equifax/OU=Equifax Secure Certificate Authority
---
Server certific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5N
dc44AXTfIWOzsikwb886PCUSevGs9rcw2/kaHdPaBSuGrzSCf8ODQqTC3odry3lo
PtZGr6nf/81F5UW71+bE1iWOQlJ5/olWOr2SlqYla1iOmosEctD/GyoFnDh+BA==
-----END CERTIFICATE-----
subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=pop.gmail.com
issuer=/C=US/O=Google Inc/CN=Google Internet Authority
---
No client certificate CA names sent
---
SSL handshake has read 1703 bytes and written 300 bytes
---
New, TLSv1/SSLv3, Cipher is RC4-MD5
Server public key is 1024 bit
Compression: NONE
Expansion: NONE
SSL-Session:
  Protocol : TLSv1
  Cipher : RC4-MD5
  Session-ID: B6A78FD9089FC9EB2C9C58C853E5ACBAFBDDAB966E6436E6C95F184436F1CC27
  Session-ID-ctx: 
  Master-Key: E80F37D3F4DBD4DE65C5DB60A9FC3718AD12CFD09511B728ED495D10B3770288E470E52F700656C15D53B43D9873FB6F
  Key-Arg : None
  Krb5 Principal: None
  Start Time: 1256365429
  Timeout : 300 (sec)
  Verify return code: 0 (ok)
---
+OK Gpop ready for requests from 222.128.6.185 27pf13504606pzk.39
user username
+OK send PASS
pass password
+OK Welcome.
list
+OK 8 messages (43869 bytes)
1 3104
2 3412
3 9574
4 4529
5 7179
6 5366
7 4443
8 6262
.
quit
+OK Farewell.
read:errno=0


阅读(7844) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

zhangjiakouzf2010-12-14 12:24:50

转一个啊,谢谢

zhangjiakouzf2010-12-14 12:24:27

好文章,谢谢