[Rspamd-Users] multimap rule priority

Alexander Moisseev moiseev at mezonplus.ru
Tue Mar 22 09:39:26 UTC 2022


On 22.03.2022 11:24, d tbsky wrote:
> sometimes the blacklist wins, sometime the whitelist wins. it seems
> random. the winner will last until next "systemctl restart rspamd" to
> select the new winner.

As it doesn't work under prefilter, you can set high score instead of reject action:

LOCAL_BL_FROM {
     type = "from";
     map = "/etc/rspamd/local.d/bl_from.map";
     description = "Local from blacklist";
     score = 100500;
     require_symbols = "!LOCAL_WL_IP";
}

LOCAL_WL_IP {
     type = "ip";
     map = "/etc/rspamd/local.d/wl_ip.map";
     description = "Local ip whitelist";
     action = accept;
}


More information about the Users mailing list