rspamd: configure dynamic blacklisting

This commit is contained in:
Rouven Seifert 2023-09-21 21:20:48 +02:00
parent b35703040b
commit 3b59947673
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -260,6 +260,31 @@ in
"milter_headers.conf".text = '' "milter_headers.conf".text = ''
use = ["x-spam-level", "x-spam-status"]; use = ["x-spam-level", "x-spam-status"];
''; '';
"multimap.conf".text = ''
WHITELIST_SENDER_DOMAIN {
type = "from";
filter = "email:domain";
map = "/var/lib/rspamd/whitelist.sender.domain.map";
action = "accept";
}
WHITELIST_SENDER_EMAIL {
type = "from";
map = "/var/lib/rspamd/whitelist.sender.email.map";
action = "accept";
}
BLACKLIST_SENDER_DOMAIN {
type = "from";
filter = "email:domain";
map = "/var/lib/rspamd/blacklist.sender.domain.map";
action = "reject";
}
BLACKLIST_SENDER_EMAIL {
type = "from";
map = "/var/lib/rspamd/blacklist.sender.email.map";
action = "reject";
}
'';
}; };
}; };
redis = { redis = {