为什么 exim 在向远程 SMTP 发送电子邮件时不使用 TLS?

为什么 exim 在向远程 SMTP 发送电子邮件时不使用 TLS?

以下是 exim 在向 gmail 和其他 SMTP 服务器发送电子邮件时执行的操作

Received: from ns01.virtex.kz (ns1.virtex.kz. [185.141.164.16])
        by mx.google.com with ESMTP id i11-20020a5d55cb000000b002c54fb628bdsi5544805wrw.640.2023.03.05.01.42.36
        for <[email protected]>;
        Sun, 05 Mar 2023 01:42:37 -0800 (PST)

我的期望是:

Received: from NeverDesktop ([112.43.229.83])
        by smtp.gmail.com with ESMTPSA id kn4-20020a170903078400b00192aa53a7d5sm4893002plb.8.2023.03.05.06.46.55
        for <[email protected]>
        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
        Sun, 05 Mar 2023 06:46:57 -0800 (PST)

如果设置为REMOTE_SMTP_HOSTS_REQUIRE_TLS = *exim 就不能再发送电子邮件。

2023-03-05 15:09:18 1pYkMo-001Jc2-0S H=gmail-smtp-in.l.google.com [66.102.1.26]: a TLS session is required, but the server did not offer TLS support
2023-03-05 15:09:18 1pYkMo-001Jc2-0S H=alt1.gmail-smtp-in.l.google.com [142.250.153.26]: a TLS session is required, but the server did not offer TLS support
2023-03-05 15:09:18 1pYkMo-001Jc2-0S H=alt2.gmail-smtp-in.l.google.com [142.251.9.26]: a TLS session is required, but the server did not offer TLS support
2023-03-05 15:09:18 1pYkMo-001Jc2-0S H=alt3.gmail-smtp-in.l.google.com [142.250.150.26]: a TLS session is required, but the server did not offer TLS support
2023-03-05 15:09:20 1pYkMo-001Jc2-0S H=alt4.gmail-smtp-in.l.google.com [74.125.200.27]: a TLS session is required, but the server did not offer TLS support

那么如何教 exim 通过 TLS 发送?

相关内容