fuzzy_check.conf 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. rule "local" {
  2. # Fuzzy storage server list
  3. servers = "localhost:11445";
  4. # Default symbol for unknown flags
  5. symbol = "LOCAL_FUZZY_UNKNOWN";
  6. # Additional mime types to store/check
  7. mime_types = ["application/*"];
  8. # Hash weight threshold for all maps
  9. max_score = 100.0;
  10. # Whether we can learn this storage
  11. read_only = no;
  12. # Ignore unknown flags
  13. skip_unknown = yes;
  14. # Hash generation algorithm
  15. algorithm = "mumhash";
  16. # Map flags to symbols
  17. fuzzy_map = {
  18. LOCAL_FUZZY_DENIED {
  19. max_score = 10.0;
  20. flag = 11;
  21. }
  22. LOCAL_FUZZY_WHITE {
  23. max_score = 5.0;
  24. flag = 13;
  25. }
  26. }
  27. }
  28. rule "mailcow" {
  29. # Fuzzy storage server list
  30. servers = "fuzzy.mailcow.email:11445";
  31. # Default symbol for unknown flags
  32. symbol = "MAILCOW_FUZZY_UNKNOWN";
  33. # Additional mime types to store/check
  34. mime_types = ["application/*"];
  35. # Hash weight threshold for all maps
  36. max_score = 100.0;
  37. # Whether we can learn this storage
  38. read_only = yes;
  39. # Ignore unknown flags
  40. skip_unknown = yes;
  41. # Hash generation algorithm
  42. algorithm = "mumhash";
  43. # Encrypt connection
  44. encryption_key = "oa7xjgdr9u7w3hq1xbttas6brgau8qc17yi7ur5huaeq6paq8h4y";
  45. # Map flags to symbols
  46. fuzzy_map = {
  47. MAILCOW_FUZZY_DENIED {
  48. max_score = 10.0;
  49. flag = 11;
  50. }
  51. }
  52. }