/etc/rspamd/local.d/multimap.conf:
IP_WHITELIST {
type = "ip";
prefilter = true;
map = "/${LOCAL_CONFDIR}/local.d/ip_whitelist.map";
action = "accept";
}
/etc/rspamd/local.d/ip_whitelist.map:
192.168.122.3
192.168.122.4
/etc/rspamd/local.d/multimap.conf:
WHITELIST_SENDER_DOMAIN {
type = "from";
filter = "email:domain";
map = "/etc/rspamd/local.d/whitelist.sender.domain.map";
score = -6.0
}
/etc/rspamd/local.d/whitelist.sender.domain.map:
meinedomain.tld
anderedomain.tld
I'm saying you're right - The code from @Gerben-W has
regex
and the doc definitely hasregexP
. So, good on you for catching that.My comment was only a whimsical lament - I think most of us easily confuse and interchange property values named RegEx or RegexP, etc, just because there is no standard abbreviation. And in Rspamd we see the name, with and without P, used chaotically.