[Rspamd] Filter 'em bad words from 'em bad tlds

This commit is contained in:
andryyy
2019-08-28 13:03:15 +02:00
parent 549465e929
commit 23ae0c3cc1
4 changed files with 115 additions and 0 deletions

View File

@@ -26,3 +26,8 @@ OLEFY_MACRO {
score = 20.0;
policy = "remove_weight";
}
BAD_WORD_BAD_TLD {
expression = "FISHY_TLD & BAD_WORDS"
score = 20.0;
}

View File

@@ -96,9 +96,26 @@ MAILCOW_DOMAIN_HEADER_FROM {
filter = "email:domain";
map = "redis://DOMAIN_MAP";
}
IP_WHITELIST {
type = "ip";
map = "$LOCAL_CONFDIR/custom/ip_wl.map";
prefilter = "true";
action = "accept";
}
FISHY_TLD {
type = "from";
filter = "email:domain";
map = "${LOCAL_CONFDIR}/custom/fishy_tlds.map";
regexp = true;
score = 1.0;
}
BAD_WORDS {
type = "content";
filter = "text";
map = "${LOCAL_CONFDIR}/custom/bad_words.map";
regexp = true;
score = 0.7;
}