diff --git a/mail-server.nix b/mail-server.nix index e21a806..9b3d209 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -41,6 +41,28 @@ in { default = [ ]; }; + blacklist = { + senders = mkOption { + type = listOf str; + description = + "List of email addresses for which we will never send email."; + default = [ ]; + }; + + recipients = mkOption { + type = listOf str; + description = + "List of email addresses for which we will not accept email."; + default = [ ]; + }; + + dns = mkOption { + type = listOf str; + description = "List of DNS spam blacklists to use."; + default = [ ]; + }; + }; + aliases = { user-aliases = mkOption { type = attrsOf (listOf str); diff --git a/postfix.nix b/postfix.nix index 7c47d31..7082ee5 100644 --- a/postfix.nix +++ b/postfix.nix @@ -247,7 +247,7 @@ in { enableSubmission = true; # useSrs = true; - dnsBlacklists = cfg.blacklist.dns; + # dnsBlacklists = cfg.blacklist.dns; mapFiles = let writeEntries = filename: entries: