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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. rule "rspamd.com" {
  18. algorithm = "mumhash";
  19. servers = "rspamd.com:11335";
  20. encryption_key = "icy63itbhhni8bq15ntp5n5symuixf73s1kpjh6skaq4e7nx5fiy";
  21. symbol = "FUZZY_UNKNOWN";
  22. mime_types = ["application/*"];
  23. max_score = 20.0;
  24. read_only = yes;
  25. skip_unknown = yes;
  26. fuzzy_map = {
  27. FUZZY_DENIED {
  28. max_score = 20.0;
  29. flag = 1;
  30. }
  31. FUZZY_PROB {
  32. max_score = 10.0;
  33. flag = 2;
  34. }
  35. FUZZY_WHITE {
  36. max_score = 2.0;
  37. flag = 3;
  38. }
  39. }
  40. }
  41. # Include dynamic conf for the rule
  42. .include(try=true,priority=5) "${DBDIR}/dynamic/fuzzy_check.conf"
  43. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/fuzzy_check.conf"
  44. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/fuzzy_check.conf"
  45. }