From ec2fc2d4fb9b1daf7ea6e951ddc981cf330007a8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 28 Mar 2020 16:00:38 +0100 Subject: ... --- odin.nix | 68 ---------------------------------------------------------------- 1 file changed, 68 deletions(-) (limited to 'odin.nix') diff --git a/odin.nix b/odin.nix index cb21ea19..ceacbcc6 100644 --- a/odin.nix +++ b/odin.nix @@ -201,74 +201,6 @@ networks = ["127.0.0.0/8" "[::ffff:127.0.0.0]/104" "[::1]/128" "10.141.0.0/16"]; }; - services.rspamd = { - enable = true; - workers = { - controller = {}; - rspamd_proxy = { - bindSockets = [ - { mode = "0660"; - socket = "/var/lib/postfix/queue/private/rspamd"; - owner = config.services.rspamd.user; - group = config.services.postfix.group; - } - ]; - extraConfig = '' - upstream "local" { - default = yes; - self_scan = yes; - } - ''; - }; - }; - locals = { - "milter_headers.conf".text = '' - use = ["authentication-results", "x-spamd-result", "x-rspamd-queue-id", "x-rspamd-server"]; - remove_upstream_spam_flag = false; - ''; - "actions.conf".text = '' - add_header = 10; - ''; - "groups.conf".text = '' - symbols { - "BAYES_SPAM" { - weight = 2.0; - } - } - ''; - "dmarc.conf".text = '' - reporting = true; - domain = "yggdrasil.li"; - email = "postmaster@yggdrasil.li"; - } - ''; - "redis.conf".text = '' - servers = "localhost"; - ''; - "dkim_signing.conf".text = "enabled = false;"; - "neural.conf".text = "enabled = false;"; - "classifier-bayes.conf".text = '' - enable = true; - expire = 8640000; - new_schema = true; - backend = "redis"; - per_user = true; - min_learns = 0; - - autolearn = [0, 10]; - - statfile { - symbol = "BAYES_HAM"; - spam = false; - } - statfile { - symbol = "BAYES_SPAM"; - spam = true; - } - ''; - }; - }; - services.borgbackup = { snapshots = "lvm"; prefix = "yggdrasil.asgard.odin."; -- cgit v1.2.3