cd /etc/rspamd- create
rspamd.conf.local - create lists:
touch local_bl_from.map.inc local_bl_ip.map.inc local_bl_rcpt.map.inc \
local_wl_from.map.inc local_wl_ip.map.inc local_wl_rcpt.map.inc- change permissions:
chmod o+w local_bl_from.map.inc local_bl_ip.map.inc local_bl_rcpt.map.inc \
local_wl_from.map.inc local_wl_ip.map.inc local_wl_rcpt.map.inc
Here is what worked for me for rspamd v3.14.1:
/etc/rspamd/local.d/groups.conf
/etc/rspamd/local.d/multimap.conf
Do not add
filtersto options.incConfig files must be readable by rspamd user
Then create maps in /var/lib/rspamd:
Verify everything is correct:
sudo -u rspamd rspamadm configdump | grep -i LOCAL_BLRestart rspamd and try editing maps in web ui in "Configuration" tab. All must be loaded and "writable". Then check all symbols (
LOCAL_BL_prefix) are loaded in "Symbols" tab. Then use "Scan" tab and paste a spam email to check whether rspamd correctly identifies it. Then try it with whitelist.