[Rspamd] Create bad header map
parent
bbb1d7aa39
commit
cf9d3e00c8
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue