multimap.conf: White/Blacklists with Rspamd
Rspamd uses its own white/blacklists, some of which are updated online all the time. This can influence the user’s white/blacklist settings and for example lead to system messages to root being wrongly marked as spam.
Serverwide white/blacklists with Rspamd
Add a new file multimap.conf
vi /etc/rspamd/local.d/multimap.conf
WHITELIST_SENDER_DOMAIN {
type = "from";
filter = "email:domain";
map = "${LOCAL_CONFDIR}/local.d/whitelist.sender.domain.map";
action = "accept";
}
WHITELIST_SENDER_EMAIL {
type = "from";
map = "${LOCAL_CONFDIR}/local.d/whitelist.sender.email.map";
action = "accept";
}
Whitelist Domains
vi /etc/rspamd/local.d/whitelist.sender.domain.map
whitelisted-domain1.xx
whitelisted-domain2.xx
Whitelist Emails
vi /etc/rspamd/local.d/whitelist.sender.email.map
[email protected]
[email protected]
Blacklist
just change white to black and accept to reject.
BLACKLIST_SENDER_DOMAIN {
type = "from";
filter = "email:domain";
map = "${LOCAL_CONFDIR}/local.d/blacklist.sender.domain.map";
action = "reject";
}
BLACKLIST_SENDER_EMAIL {
type = "from";
map = "${LOCAL_CONFDIR}/local.d/blacklist.sender.email.map";
action = "reject";
}
Restart Rspamd
service rspamd restart
Done!
From now on the white/blacklists are active and all other lists are skipped.