From b74cbe79bb3c11ca0dd7efd87b4aa291dd89de4c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 29 Oct 2025 14:51:48 +0100 Subject: [PATCH] nixos/postfix-tlspol: make tlsrpt depend on tlsrpt service Without the tlsrpt service we can just fall back to QUERY and not push around TLSRPT results. https://github.com/Zuplu/postfix-tlspol/blob/v1.8.20/internal/server.go#L323-L329 (cherry picked from commit 9ccec77537e72c1f7e792e838e99c1f0d7692850) --- nixos/modules/services/mail/postfix-tlspol.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/mail/postfix-tlspol.nix b/nixos/modules/services/mail/postfix-tlspol.nix index 0841e7b6943a..7cd63b7cefdb 100644 --- a/nixos/modules/services/mail/postfix-tlspol.nix +++ b/nixos/modules/services/mail/postfix-tlspol.nix @@ -8,7 +8,6 @@ let inherit (lib) hasPrefix - literalExpression mkEnableOption mkIf mkMerge @@ -143,7 +142,7 @@ in else "inet:${cfg.settings.server.address}"; in - [ "socketmap:${address}:QUERYwithTLSRPT" ]; + [ "socketmap:${address}:${if config.services.tlsrpt.enable then "QUERYwithTLSRPT" else "QUERY"}" ]; }; systemd.services.postfix = {