[Rspamd-Users] Error adding custom rules (SENDER_DOMAIN_BLACKLIST)
Andreas
rspamd at linuxmaker.com
Tue May 20 09:17:50 UTC 2025
Hello everyone,
I'm trying to block unwanted domains and have made this entry in my
/etc/rspamd/local.d/multimap.conf
SENDER_DOMAIN_BLACKLIST {
type = "smtp_from";
filter = "email:domain";
map = "${LOCAL_CONFDIR}/local.d/maps.d/sender_domain_blacklist.map";
action = "reject";
prefilter = true;
priority = 100;
messages = "This sender domain is blocked!";
symbol = "BLACKLISTED_DOMAIN";
}
and the map file exists with valid line breaks:
cat -A /etc/rspamd/local.d/maps.d/sender_domain_blacklist.map
...tagroup.online.tc$
inkilsane.de$
tiimab.or.mg$
toonaca.or.mg$
agentur.de$
...
But when I test the multimap I get this error message.
rspamadm configdump multimap
cannot add rule: "SENDER_DOMAIN_BLACKLIST"
redefining fallback backend from /etc/rspamd/maps.d/surbl-whitelist.inc to /
etc/rspamd/maps.d/surbl-whitelist.inc
All other rules are accepted. Does anyone see why this isn't working?
Best regards
Andreas
More information about the Users
mailing list