diff --git a/data/conf/rspamd/local.d/fuzzy_check.conf b/data/conf/rspamd/local.d/fuzzy_check.conf index 775315e3..f3398e22 100644 --- a/data/conf/rspamd/local.d/fuzzy_check.conf +++ b/data/conf/rspamd/local.d/fuzzy_check.conf @@ -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; + } + } +} diff --git a/data/conf/rspamd/local.d/fuzzy_group.conf b/data/conf/rspamd/local.d/fuzzy_group.conf index f3effe4e..561ac4e1 100644 --- a/data/conf/rspamd/local.d/fuzzy_group.conf +++ b/data/conf/rspamd/local.d/fuzzy_group.conf @@ -1,10 +1,16 @@ symbols = { "LOCAL_FUZZY_UNKNOWN" { - weight = 2.0; + weight = 0.1; } "LOCAL_FUZZY_DENIED" { weight = 15.0; } + "MAILCOW_FUZZY_UNKNOWN" { + weight = 0.1; + } + "MAILCOW_FUZZY_DENIED" { + weight = 7.0; + } "LOCAL_FUZZY_WHITE" { weight = -10.0; }