From 340781cafd1ec157b8ed196032b22dbf240f7ecb Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Sun, 14 Jul 2024 14:32:25 +0200 Subject: [PATCH] rspamd: allow more regexes in blacklists --- modules/mail/rspamd.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/mail/rspamd.nix b/modules/mail/rspamd.nix index 5cce802..8895a3b 100644 --- a/modules/mail/rspamd.nix +++ b/modules/mail/rspamd.nix @@ -141,22 +141,26 @@ in filter = "email:domain"; map = "/var/lib/rspamd/whitelist.sender.domain.map"; action = "accept"; + regexp = true; } WHITELIST_SENDER_EMAIL { type = "from"; map = "/var/lib/rspamd/whitelist.sender.email.map"; action = "accept"; + regexp = true; } BLACKLIST_SENDER_DOMAIN { type = "from"; filter = "email:domain"; map = "/var/lib/rspamd/blacklist.sender.domain.map"; action = "reject"; + regexp = true; } BLACKLIST_SENDER_EMAIL { type = "from"; map = "/var/lib/rspamd/blacklist.sender.email.map"; action = "reject"; + regexp = true; } BLACKLIST_SUBJECT_KEYWORDS { type = "header";