[root@rspamd2 rspamd]# cat local.d/multimap.conf
# local.d/multimap.conf
#
#
# Text sensitive word filter
#Content filters
#text - decoded and converted text parts (without HTML tags but with newlines)
CONTENT_BLACKLISTED {
type = "content";
filter = "text";
map = "file:///etc/rspamd/local.d/map/content.map";
action = "add header";
regexp = true;
}
# matches any header specified (must have header = "Header-Name" configuration attribute)
# header = "Return-Path";
# black
USEREMAIL_BLACKLISTED {
type = "header";
header = "Return-Path";
prefilter = true;
filter = "email";
map = "file:///etc/rspamd/local.d/map/black_useremail_list.map";
action = "reject";
}
USEREMAIL_WHITELISTED {
type = "header";
header = "Return-Path";
filter = "email";
map = "file:///etc/rspamd/local.d/map/white_useremail_list.map";
action = "accept";
}
# black
FROM_BLACKLISTED {
type = "header";
header = "Return-Path";
filter = "email:domain";
map = "file:///etc/rspamd/local.d/map/black_domain_list.map";
action = "reject";
}
# white
FROM_WHITELISTED {
type = "header";
header = "Return-Path";
filter = "email:domain";
map = "file:///etc/rspamd/local.d/map/white_domain_list.map";
action = "accept";
}
# matches IP of the host that performed message handoff (against radix map)
# black
IP_BLACKLISTED {
type = "ip";
prefilter = true;
map = "file:///etc/rspamd/local.d/map/ip_black_list.map";
action = "add header";
}
# white
IP_WHITELISTED {
type = "ip";
prefilter = true;
map = "file:///etc/rspamd/local.d/map/ip_white_list.map";
action = "accept";
}