用 Qmail 发信到某些电邮服务器时, 退回的 failure notice 出现 TLS connect failed 错误, 详细报错:
TLS connect failed; connected to xxx.xxx.xxx.xxx.
上面的 xxx.xxx.xxx.xxx 是远端电邮服务器的 IP 地址。
解决方法是与远端电邮服务器连接时, 不使用 TLS 连线, 例如远端电邮的域名是 remote-domain.com, 建立以下空白档案, 那么当发信到 remote-domain.com 域名的电邮时, 便不会使用 TLS 连线:
mkdir /var/qmail/control/notlshosts
touch /var/qmail/control/notlshosts/remote-domain.com
touch /var/qmail/control/notlshosts/remote-domain.com
如果想设定对所有电邮不使用 TLS 连线, 可以建立档案 /var/qmail/control/tlshosts/exhaustivelist:
mkdir /var/qmail/control/tlshosts
touch /var/qmail/control/tlshosts/exhaustivelist
touch /var/qmail/control/tlshosts/exhaustivelist
以上方法不用重新启动 Qmail, 建立档案后会立即生效。