From f5cf94d257e0403713d95fe349cfa9039104c4bc Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Sun, 22 Sep 2024 23:34:52 +0200 Subject: [PATCH] mail: don't forbid non-tls connections --- modules/mail/postfix.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/mail/postfix.nix b/modules/mail/postfix.nix index 3145e97..2ba240a 100644 --- a/modules/mail/postfix.nix +++ b/modules/mail/postfix.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ config, pkgs, ... }: let domain = config.networking.domain; hostname = "mail.${config.networking.domain}"; @@ -44,9 +44,8 @@ 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"; - # allow non-tls connections for server-to-server communication smtp_tls_security_level = "may"; - smtpd_tls_security_level = lib.mkForce "encrypt"; + smtpd_tls_security_level = "may"; smtpd_tls_auth_only = true; smtpd_tls_protocols = [ "!SSLv2"