在 ubuntu 桌面上通过 telnet 连接到 godaddy 电子邮件服务器

在 ubuntu 桌面上通过 telnet 连接到 godaddy 电子邮件服务器

我在家用电脑(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

相关内容