可以通过 SSH Telnet 登录电子邮件服务器吗?我收到授权错误

can Telnet via SSH log into email server? am getting auth error

我在通过 SSH 访问的 Ubuntu 18.04 服务器上使用 Telnet。我登录到正在设置的使用 PostFix 和 DoveCot 的电子邮件服务器,以测试 "phil@xxxxxxx.com" 邮件帐户是否正常工作。

这是交易所:

root@xxxxxxx:/var/log# telnet xxxxxxx.com 110 
Trying 2600:3c01::f03c:92ff:fe93:5fa0... Connected to xxxxxxx.com. 
Escape character is '^]'. +OK     Dovecot (Ubuntu) ready.
USER phil +OK 
PASS fakepassword 
-ERR [AUTH] Authentication failed.

我并不是要解开所有谜团,只是想检查一下这是否是对 Telnet 的有效使用。关于使用 Telnet 的网站说明如下:

However, you should note that Telnet is not encrypted. Most public internet services, such as Google or Yahoo, require an encrypted connection—which isn't supported by Telnet.

在这种情况下,是否缺少加密可能导致身份验证失败?我猜不会,因为我没有通过浏览器。我只是想验证如果一切设置正确,这将是测试电子邮件帐户的有效方法。

是的,您可以使用 telnet 进行协议探索。在这种情况下,POP3 是基于文本的,没有包含在 TLS 中,因此它可以在没有任何其他高级工具(例如 openssl)的情况下运行。

也就是说,您需要熟悉 POP3 AUTH 交换,这些天它可能不会接受明文形式的凭据。 (如果这是 1999 年,情况就不同了。)

https://ietf.org/rfc/rfc1939.txt

您可能会考虑使用实际的电子邮件程序(用 MUA 的说法)来协商连接,并与 wireshark 等协议嗅探器一起查看交换的工作原理。