Merge pull request #214346 from SFrijters/postfix-ipv4

nixos/postfix: restrict inet_protocols to ipv4 when ipv6 is disabled
This commit is contained in:
Luke Granger-Brown
2023-02-27 18:24:53 +00:00
committed by GitHub
+1 -1
View File
@@ -809,7 +809,7 @@ in
// optionalAttrs (cfg.relayHost != "") { relayhost = if cfg.lookupMX
then "${cfg.relayHost}:${toString cfg.relayPort}"
else "[${cfg.relayHost}]:${toString cfg.relayPort}"; }
// optionalAttrs config.networking.enableIPv6 { inet_protocols = mkDefault "all"; }
// optionalAttrs (!config.networking.enableIPv6) { inet_protocols = mkDefault "ipv4"; }
// optionalAttrs (cfg.networks != null) { mynetworks = cfg.networks; }
// optionalAttrs (cfg.networksStyle != "") { mynetworks_style = cfg.networksStyle; }
// optionalAttrs (cfg.hostname != "") { myhostname = cfg.hostname; }