From 7c15108f3d447b6fbb01a41a5a7a8de160ae5b85 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Thu, 21 Sep 2023 21:49:00 +0200 Subject: [PATCH] rspamd: enable the neural module so we can throw some buzzwords --- modules/mail/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/mail/default.nix b/modules/mail/default.nix index a71a9d5..dc09003 100644 --- a/modules/mail/default.nix +++ b/modules/mail/default.nix @@ -260,6 +260,23 @@ in "milter_headers.conf".text = '' use = ["x-spam-level", "x-spam-status"]; ''; + "neural.conf".text = '' + servers = "127.0.0.1:6379"; + enabled = true; + ''; + neural_group.conf.text = '' + symbols = { + "NEURAL_SPAM" { + weight = 0.5; # fairly low weight since we don't know how this will behave + description = "Neural network spam"; + } + "NEURAL_HAM" { + weight = -0.5; + description = "Neural network ham"; + } + } + ''; + "multimap.conf".text = '' WHITELIST_SENDER_DOMAIN { type = "from";