1
0
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:
andryyy 2019-08-28 13:03:15 +02:00
parent 549465e929
commit 23ae0c3cc1
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
4 changed files with 115 additions and 0 deletions

View File

@ -0,0 +1,18 @@
sex
vagina
erotic
erection
sexy
penis
ass
viagra
tits
titty
titties
cum
sperm
slut
porn
cock
pharma
pharmacy

View 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

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;
}