[Rspamd] Add mailcow fuzzy hash store
This commit is contained in:
		| @@ -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; | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -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; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user