From 75be7e22a3ebe01cf6aaa5ca06fa441c9fd51f21 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Sat, 21 Oct 2023 00:49:24 +0200 Subject: [PATCH] mail: add keyword blacklist --- modules/mail/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/mail/default.nix b/modules/mail/default.nix index fe60bb7..876c4d9 100644 --- a/modules/mail/default.nix +++ b/modules/mail/default.nix @@ -315,6 +315,13 @@ in map = "/var/lib/rspamd/blacklist.sender.email.map"; action = "reject"; } + BLACKLIST_SUBJECT_KEYWORDS { + type = "header"; + header = "Subject" + map = "/var/lib/rspamd/blacklist.keyword.subject.map"; + action = "reject"; + regexp = true; + } ''; };