[Web, Rspamd] Add bad language map, add map to mailcow UI

This commit is contained in:
andryyy 2019-12-22 18:57:28 +01:00
parent aece2558df
commit 58a00cf7ea
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
3 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1 @@
# Regex! /de/ will also match /de_at/ etc.

View File

@ -127,3 +127,12 @@ BAD_WORDS_DE {
regexp = true;
score = 0.1;
}
BAD_LANG {
type = 'selector';
selector = 'languages';
map = "${LOCAL_CONFDIR}/custom/bad_languages.map";
symbols_set = ["LANG_FILTER"];
regexp = true;
score = 5.0;
}

View File

@ -165,5 +165,5 @@ $RSPAMD_MAPS = array(
'Recipient Whitelist' => 'global_rcpt_whitelist.map',
'Fishy TLDS (only fired in combination with bad words)' => 'fishy_tlds.map',
'Bad Words (only fired in combination with fishy TLDs)' => 'bad_words.map',
'Bad Words DE (only fired in combination with fishy TLDs)' => 'bad_words_de.map'
'Bad languages' => 'bad_languages.map',
);