mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-12 10:45:14 +02:00
[Rspamd] Filter 'em bad words from 'em bad tlds
This commit is contained in:
parent
549465e929
commit
23ae0c3cc1
18
data/conf/rspamd/custom/bad_words.map
Normal file
18
data/conf/rspamd/custom/bad_words.map
Normal file
@ -0,0 +1,18 @@
|
||||
sex
|
||||
vagina
|
||||
erotic
|
||||
erection
|
||||
sexy
|
||||
penis
|
||||
ass
|
||||
viagra
|
||||
tits
|
||||
titty
|
||||
titties
|
||||
cum
|
||||
sperm
|
||||
slut
|
||||
porn
|
||||
cock
|
||||
pharma
|
||||
pharmacy
|
75
data/conf/rspamd/custom/fishy_tlds.map
Normal file
75
data/conf/rspamd/custom/fishy_tlds.map
Normal file
@ -0,0 +1,75 @@
|
||||
/.+\.accountant/i
|
||||
/.+\.ar/i
|
||||
/.+\.asia/i
|
||||
/.+\.bid/i
|
||||
/.+\.biz/i
|
||||
/.+\.care/i
|
||||
/.+\.cc/i
|
||||
/.+\.cf/i
|
||||
/.+\.cl/i
|
||||
/.+\.click/i
|
||||
/.+\.cloud/i
|
||||
/.+\.co/i
|
||||
/.+\.construction/i
|
||||
/.+\.country/i
|
||||
/.+\.cricket/i
|
||||
/.+\.cz/i
|
||||
/.+\.date/i
|
||||
/.+\.desi/i
|
||||
/.+\.download/i
|
||||
/.+\.estate/i
|
||||
/.+\.faith/i
|
||||
/.+\.fit/i
|
||||
/.+\.flights/i
|
||||
/.+\.ga/i
|
||||
/.+\.gdn/i
|
||||
/.+\.gq/i
|
||||
/.+\.guru/i
|
||||
/.+\.icu/i
|
||||
/.+\.id/i
|
||||
/.+\.in/i
|
||||
/.+\.info/i
|
||||
/.+\.in.net/i
|
||||
/.+\.ir/i
|
||||
/.+\.jetzt/i
|
||||
/.+\.kim/i
|
||||
/.+\.life/i
|
||||
/.+\.link/i
|
||||
/.+\.loan/i
|
||||
/.+\.me/i
|
||||
/.+\.mk/i
|
||||
/.+\.ml/i
|
||||
/.+\.ninja/i
|
||||
/.+\.online/i
|
||||
/.+\.ooo/i
|
||||
/.+\.party/i
|
||||
/.+\.pro/i
|
||||
/.+\.ps/i
|
||||
/.+\.pw/i
|
||||
/.+\.racing/i
|
||||
/.+\.review/i
|
||||
/.+\.rocks/i
|
||||
/.+\.rs/i
|
||||
/.+\.ru/i
|
||||
/.+\.ryukyu/i
|
||||
/.+\.science/i
|
||||
/.+\.se/i
|
||||
/.+\.si/i
|
||||
/.+\.space/i
|
||||
/.+\.stream/i
|
||||
/.+\.sucks/i
|
||||
/.+\.tk/i
|
||||
/.+\.top/i
|
||||
/.+\.topica.com/i
|
||||
/.+\.town/i
|
||||
/.+\.tr/i
|
||||
/.+\.trade/i
|
||||
/.+\.uno/i
|
||||
/.+\.us/i
|
||||
/.+\.vip/i
|
||||
/.+\.webcam/i
|
||||
/.+\.website/i
|
||||
/.+\.win/i
|
||||
/.+\.work/i
|
||||
/.+\.world/i
|
||||
/.+\.xyz/i
|
@ -26,3 +26,8 @@ OLEFY_MACRO {
|
||||
score = 20.0;
|
||||
policy = "remove_weight";
|
||||
}
|
||||
|
||||
BAD_WORD_BAD_TLD {
|
||||
expression = "FISHY_TLD & BAD_WORDS"
|
||||
score = 20.0;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user