From 6c95ada6e1064dd98e3d41f4420ee63a83ea6586 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 13 Mar 2024 11:53:22 -0700 Subject: [PATCH] Need to pass through SPF enable --- mail-server.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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;