diff --git a/mail-server.nix b/mail-server.nix index 7e03f68..32f6e83 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -174,6 +174,13 @@ in { description = "Directory containing SSL certificates for SMTP hostname."; }; + + spf.enable = mkOption { + type = bool; + description = + "Enable Sender Polify Framework checking on incoming messages."; + default = true; + }; }; imap = { @@ -310,6 +317,7 @@ in { fudo.mail.postfix = { enable = true; + policy-spf.enable = cfg.smtp.spf.enable; debug = cfg.debug; domain = cfg.primary-domain; local-domains = cfg.extra-domains;