1

我想确保我们的服务器能够使用 Zoho 的服务连接和发送电子邮件。我如何纯粹通过连接到我的服务器 ssh 的终端来测试这个?

服务器的设置是 Linux Ubuntu,但不知道平台的答案将不胜感激。

以下是 Zoho 的邮件服务器详细信息: https ://www.zoho.com/mail/help/zoho-smtp.html

4

1 回答 1

2

在端口 25 上连接到 smtp.zoho.com 以建立 smtp 连接并发送邮件。对于 SSL/TLS 连接,应使用 openssl 库来建立 smtp 连接

对于简单的 smtp 连接

telnet smtp.zoho.com 25

对于 SSL 连接

openssl s_client -connect smtp.zoho.com:465

对于 TLS 连接

openssl s_client -starttls smtp -connect smtp.zoho.com:587 -crlf -ign_eof

希望这足够

于 2015-01-27T13:28:50.983 回答