[Web, Rspamd] Add bad language map, add map to mailcow UI
This commit is contained in:
parent
aece2558df
commit
58a00cf7ea
1
data/conf/rspamd/custom/bad_languages.map
Normal file
1
data/conf/rspamd/custom/bad_languages.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
# Regex! /de/ will also match /de_at/ etc.
|
@ -127,3 +127,12 @@ BAD_WORDS_DE {
|
|||||||
regexp = true;
|
regexp = true;
|
||||||
score = 0.1;
|
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;
|
||||||
|
}
|
||||||
|
@ -165,5 +165,5 @@ $RSPAMD_MAPS = array(
|
|||||||
'Recipient Whitelist' => 'global_rcpt_whitelist.map',
|
'Recipient Whitelist' => 'global_rcpt_whitelist.map',
|
||||||
'Fishy TLDS (only fired in combination with bad words)' => 'fishy_tlds.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 (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',
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user