![在 ubuntu 桌面上通过 telnet 连接到 godaddy 电子邮件服务器](https://linux22.com/image/848527/%E5%9C%A8%20ubuntu%20%E6%A1%8C%E9%9D%A2%E4%B8%8A%E9%80%9A%E8%BF%87%20telnet%20%E8%BF%9E%E6%8E%A5%E5%88%B0%20godaddy%20%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E6%9C%8D%E5%8A%A1%E5%99%A8%20.png)
我在家用电脑(ubuntu 桌面)上阅读 IMAP 协议的文档。我想连接到端口 993 上的 imap.secureserver.net 上的电子邮件主机。然后我想发出一些 IMAP 命令,例如登录:
a01 login myuser mypassword
RESPONSE: a01 OK User logged in
但是当我在终端上运行 telnet 时,我收到一条消息“外部主机关闭连接”:
$ telnet imap.secureserver.net 993
Trying 72.167.218.187...
Connected to imap.secureserver.net.
Escape character is '^]'.
a01 [email protected] password
Connection closed by foreign host.
知道为什么它会关闭连接而不是给我一个确定的回应吗?
答案1
端口 993 是 IMAP over SSL,显然 godaddy 不接受通过 telnet 的 IMAP。解决方案是使用默认的 IMAP 端口 143,这样可行:
telnet imap.secureserver.net 143
Trying 173.201.193.71...
Connected to imap.where.secureserver.net.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UNSELECT STARTTLS ID CHILDREN NAMESPACE IDLE] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.
然后您就可以登录了:
a01 login myemail mypassword
a01 OK LOGIN Full IMAP support is enabled