diff --git a/mail-server/postfix.nix b/mail-server/postfix.nix index c0bd2fb..f2daa53 100644 --- a/mail-server/postfix.nix +++ b/mail-server/postfix.nix @@ -293,8 +293,8 @@ in # Allowing AUTH on a non encrypted connection poses a security risk smtpd_tls_auth_only = true; # Log only a summary message on TLS handshake completion - smtp_tls_loglevel = "1"; - smtpd_tls_loglevel = "1"; + smtp_tls_loglevel = lib.mkIf cfg.debug "1"; + smtpd_tls_loglevel = lib.mkIf cfg.debug "1"; # Configure a non blocking source of randomness tls_random_source = "dev:/dev/urandom";