From c2149ec639d4dda66b2f0d3e419c25e88f484a17 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Sun, 22 Sep 2024 23:01:32 +0200 Subject: [PATCH] mail: remove deprecated postfix tls options --- modules/mail/postfix.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/mail/postfix.nix b/modules/mail/postfix.nix index fb5887a..45d7e24 100644 --- a/modules/mail/postfix.nix +++ b/modules/mail/postfix.nix @@ -44,11 +44,10 @@ in # hostname used in helo command. It is recommended to have this match the reverse dns entry smtp_helo_name = config.networking.rDNS; smtpd_banner = "${config.networking.rDNS} ESMTP $mail_name"; - smtp_use_tls = true; - # smtp_tls_security_level = "encrypt"; - smtpd_use_tls = true; - # smtpd_tls_security_level = lib.mkForce "encrypt"; - # smtpd_tls_auth_only = true; + # allow non-tls connections for server-to-server communication + smtp_tls_security_level = "may"; + smtpd_tls_security_level = "encrypt"; + smtpd_tls_auth_only = true; smtpd_tls_protocols = [ "!SSLv2" "!SSLv3"