You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fuzzy_check.conf 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify 'local.d/fuzzy_check.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/fuzzy_check.conf' to strictly override all
  8. # parameters defined inside this section
  9. #
  10. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  11. # for details
  12. #
  13. # Module documentation can be found at https://rspamd.com/doc/modules/fuzzy_check.html
  14. fuzzy_check {
  15. min_bytes = 1k; # Since small parts and small attachments causes too many FP
  16. timeout = 2s;
  17. retransmits = 1;
  18. rule "rspamd.com" {
  19. algorithm = "mumhash";
  20. servers = "round-robin:fuzzy1.rspamd.com:11335,fuzzy2.rspamd.com:11335";
  21. encryption_key = "icy63itbhhni8bq15ntp5n5symuixf73s1kpjh6skaq4e7nx5fiy";
  22. symbol = "FUZZY_UNKNOWN";
  23. mime_types = ["*"];
  24. max_score = 20.0;
  25. read_only = yes;
  26. skip_unknown = yes;
  27. short_text_direct_hash = true;
  28. fuzzy_map = {
  29. FUZZY_DENIED {
  30. max_score = 20.0;
  31. flag = 1;
  32. }
  33. FUZZY_PROB {
  34. max_score = 10.0;
  35. flag = 2;
  36. }
  37. FUZZY_WHITE {
  38. max_score = 2.0;
  39. flag = 3;
  40. }
  41. }
  42. }
  43. # Include dynamic conf for the rule
  44. .include(try=true,priority=5) "${DBDIR}/dynamic/fuzzy_check.conf"
  45. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/fuzzy_check.conf"
  46. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/fuzzy_check.conf"
  47. }