[Rspamd] Add mailcow fuzzy hash store

master
andryyy 2020-02-26 14:24:19 +01:00
parent dd0c1438de
commit e1f165b9dc
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 30 additions and 1 deletions

View File

@ -27,4 +27,27 @@ rule "local" {
} }
} }
rule "mailcow" {
# Fuzzy storage server list
servers = "95.217.129.125:11445";
# Default symbol for unknown flags
symbol = "MAILCOW_FUZZY_UNKNOWN";
# Additional mime types to store/check
mime_types = ["application/*"];
# Hash weight threshold for all maps
max_score = 100.0;
# Whether we can learn this storage
read_only = yes;
# Ignore unknown flags
skip_unknown = yes;
# Hash generation algorithm
algorithm = "mumhash";
# Map flags to symbols
fuzzy_map = {
MAILCOW_FUZZY_DENIED {
max_score = 10.0;
flag = 11;
}
}
}

View File

@ -1,10 +1,16 @@
symbols = { symbols = {
"LOCAL_FUZZY_UNKNOWN" { "LOCAL_FUZZY_UNKNOWN" {
weight = 2.0; weight = 0.1;
} }
"LOCAL_FUZZY_DENIED" { "LOCAL_FUZZY_DENIED" {
weight = 15.0; weight = 15.0;
} }
"MAILCOW_FUZZY_UNKNOWN" {
weight = 0.1;
}
"MAILCOW_FUZZY_DENIED" {
weight = 7.0;
}
"LOCAL_FUZZY_WHITE" { "LOCAL_FUZZY_WHITE" {
weight = -10.0; weight = -10.0;
} }