mailserver: Allow manually blocking sender domains

This commit is contained in:
Simon Bruder 2023-05-30 23:56:28 +02:00
parent df01f1e00d
commit e7fa0868ae
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -479,6 +479,16 @@ in
"milter_headers.conf".text = ''
extended_spam_headers = true;
'';
"multimap.conf".text = ''
SENDER_DOMAIN_BLOCKED {
type = "from";
filter = "email:domain:tld";
map = "/var/lib/rspamd/blocked_sender_domains.map";
symbol = "SENDER_DOMAIN_BLOCKED";
description = "Senders effective second level domain is manually blocked";
score = 8.0;
}
'';
"redis.conf".text = ''
servers = "127.0.0.1:${toString config.services.redis.servers.rspamd.port}"
'';