[英]Connecting to gmail pop server by Windows command line
I'm using command line on Windows 7 or Windows Command Processor. 我在Windows 7或Windows命令处理器上使用命令行。 I'm trying to connect to gmail pop server (pop.gmail.com) on port 995 because that is what I have seen on other Web sites. 我正在尝试连接到端口995上的gmail pop服务器(pop.gmail.com),因为这是我在其他网站上看到的。 I want at least to get an "+OK Hello there" message. 我想至少得到一个“+ OK Hello there”消息。 This is the command I wrote: 这是我写的命令:
telnet pop.gmail.com 995
I'm not getting any answer. 我没有得到任何答案。 What am I doing wrong? 我究竟做错了什么?
Port 995 is for SSL connection. 端口995用于SSL连接。 You cannot do it with telnet. 你不能用telnet做到这一点。 You could probably try OpenSSL and to test it that way. 您可以尝试OpenSSL并以这种方式进行测试。
openssl s_client -connect pop.gmail.com:995 -quiet
More info on OpenSSL for Windows is here: OpenSSL for Windows 有关OpenSSL for Windows的更多信息,请访问: OpenSSL for Windows
ADDED: 添加:
I have just tested with openssl command I gave you above. 我刚刚用openssl命令测试过,我给你了。 It works like a charm: 它就像一个魅力:
user@localhost$ openssl s_client -connect pop.gmail.com:995 -quiet
depth=1 /C=US/O=Google Inc/CN=Google Internet Authority
verify error:num=20:unable to get local issuer certificate
verify return:0
+OK Gpop ready for requests from 11.11.111.11 v45pf1517914yhk.21
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.