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
This commit is contained in:
Martin Weinelt 2025-10-29 14:51:48 +01:00
commit 9ccec77537
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -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 = {