為什麼 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 發送呢?

相關內容