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.7KB

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