大网数据广告活动
服务器运维问答

ssmtp settings for namecheap: Invalid response SMTP Server (STARTTLS)

· 52CE 我爱测

I am trying to configure ssmtp to use the namecheap smtp server to send emails. My current configuration: root=[email omitted] mailhub=mail.privateemail.com:465 rewriteDomain=email.com hostname=email.com AuthUser=[email omitted] …

问题原文

原帖链接 · Sgoettschkes · CC BY-SA 3.0

I am trying to configure ssmtp to use the namecheap smtp server to send emails. My current configuration:

root=[email omitted]
mailhub=mail.privateemail.com:465
rewriteDomain=email.com
hostname=email.com
AuthUser=[email omitted]
AuthPass=password
FromLineOverride=YES
UseTLS=NO
UseSTARTTLS=YES

Trying to send a test email using cat - | sudo /usr/sbin/ssmtp -vvvv [email omitted] results in the following output in my syslog:

Jun 17 13:55:08 hostname sSMTP[12161]: Creating SSL connection to host
Jun 17 13:55:18 hostname sSMTP[12161]: Invalid response SMTP Server (STARTTLS)
Jun 17 13:55:18 hostname sSMTP[12161]: Cannot open mail.privateemail.com:465

So far, no configuration change has had any impact. I find mostly solutions for gmail, which do not work for Namecheap it seems. The Namecheap documentation does not mention any special settings one needs to apply.

I tried setting it up with gmail and it worked flawlessly. I guess this means that my settings for the NameCheap SMTP are wrong?

已采纳解答

原帖链接 · BillThor · CC BY-SA 3.0

SSMTP is expected to be TLS from the start. This should work if you set UseTLS to Yes. This port/protocol has been obsoleted now that the STARTTLS option is available.

If you want to use STARTTLS try the submission port (587). I have verified that the submission port is open.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-06-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。