Fix config reference (no .postfix)
This commit is contained in:
parent
ee7261ff5c
commit
06b7134a00
@ -93,7 +93,7 @@ in {
|
|||||||
description = "SASL domain to use for authentication.";
|
description = "SASL domain to use for authentication.";
|
||||||
};
|
};
|
||||||
|
|
||||||
policy-spf.extraConfig = mkOption {
|
policy-spf.extra-config = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
default = "";
|
default = "";
|
||||||
example = "skip_addresses = 127.0.0.0/8,::ffff:127.0.0.0/104,::1";
|
example = "skip_addresses = 127.0.0.0/8,::ffff:127.0.0.0/104,::1";
|
||||||
@ -458,8 +458,8 @@ in {
|
|||||||
# See: http://www.postfix.org/smtp.8.html
|
# See: http://www.postfix.org/smtp.8.html
|
||||||
lmtp.args = [ "flags=DO" ];
|
lmtp.args = [ "flags=DO" ];
|
||||||
policy-spf = let
|
policy-spf = let
|
||||||
policydSpfFile = pkgs.writeText "policyd-spf.conf"
|
policydSpfConfig = concatStringsSep "\n"
|
||||||
(cfg.postfix.policy-spf.extraConfig
|
(cfg.policy-spf.extra-config
|
||||||
+ (lib.optionalString cfg.debug "debugLevel = 4"));
|
+ (lib.optionalString cfg.debug "debugLevel = 4"));
|
||||||
in {
|
in {
|
||||||
type = "unix";
|
type = "unix";
|
||||||
@ -469,7 +469,7 @@ in {
|
|||||||
args = [
|
args = [
|
||||||
"user=nobody"
|
"user=nobody"
|
||||||
"argv=${pkgs.pypolicyd-spf}/bin/policyd-spf"
|
"argv=${pkgs.pypolicyd-spf}/bin/policyd-spf"
|
||||||
"${policydSpfFile}"
|
"${policydSpfConfig}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
submission-header-cleanup = let
|
submission-header-cleanup = let
|
||||||
|
Loading…
Reference in New Issue
Block a user