[Rspamd] Create bad header map

master
andryyy 2021-05-23 23:12:07 +02:00
parent bbb1d7aa39
commit cf9d3e00c8
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
3 changed files with 12 additions and 0 deletions

View File

@ -17,3 +17,4 @@
/.*light-house-traffic.*/i /.*light-house-traffic.*/i
/.*newsletterplus.*/i /.*newsletterplus.*/i
/.*X-Chpo.*/i /.*X-Chpo.*/i
/Thread-Topic:\s[a-zA-Z]{3}\s[a-zA-Z]{2}\s*$/i

View File

@ -9,6 +9,9 @@ symbols {
"BAD_REP_POLICIES" { "BAD_REP_POLICIES" {
score = 2.0; score = 2.0;
} }
"BAD_HEADER" {
score = 10.0;
}
"BULK_HEADER" { "BULK_HEADER" {
score = 4.0; score = 4.0;
} }

View File

@ -19,6 +19,14 @@ BULK_HEADER {
symbols_set = ["BULK_HEADER"]; symbols_set = ["BULK_HEADER"];
} }
BAD_HEADER {
type = "content";
map = "${LOCAL_CONFDIR}/custom/bad_header.map";
filter = "headers"
regexp = true;
symbols_set = ["BAD_HEADER"];
}
LOCAL_BL_ASN { LOCAL_BL_ASN {
require_symbols = "!MAILCOW_WHITE"; require_symbols = "!MAILCOW_WHITE";
type = "asn"; type = "asn";