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.

composites.conf 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. options = {
  2. pidfile = "${TMPDIR}/rspamd.pid"
  3. }
  4. logging = {
  5. type = "file",
  6. level = "debug"
  7. filename = "${TMPDIR}/rspamd.log"
  8. }
  9. worker {
  10. type = normal
  11. bind_socket = ${LOCAL_ADDR}:${PORT_NORMAL}
  12. count = 1
  13. task_timeout = 60s;
  14. }
  15. worker {
  16. type = controller
  17. bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER}
  18. count = 1
  19. secure_ip = ["127.0.0.1", "::1"];
  20. stats_path = "${TMPDIR}/stats.ucl"
  21. }
  22. lua = "${TESTDIR}/lua/test_coverage.lua";
  23. lua = ${LUA_SCRIPT};
  24. composites {
  25. EXPRESSIONS {
  26. expression = "(EXPRESSIONS_A | ~EXPRESSIONS_B) & !EXPRESSIONS_C";
  27. score = 5.0;
  28. }
  29. POLICY_REMOVE_WEIGHT {
  30. expression = "POLICY_REMOVE_WEIGHT_A and ~POLICY_REMOVE_WEIGHT_B";
  31. score = 5.0;
  32. }
  33. POLICY_FORCE_REMOVE {
  34. expression = "POLICY_FORCE_REMOVE_A & ^POLICY_FORCE_REMOVE_B";
  35. score = 5.0;
  36. }
  37. POLICY_FORCE_REMOVE_LEAVE {
  38. expression = "-POLICY_FORCE_REMOVE_A and -POLICY_FORCE_REMOVE_B";
  39. score = 5.0;
  40. }
  41. POLICY_LEAVE {
  42. expression = "POLICY_LEAVE_A & -POLICY_LEAVE_B";
  43. score = 5.0;
  44. }
  45. DEFAULT_POLICY_REMOVE_WEIGHT {
  46. expression = "DEFAULT_POLICY_REMOVE_WEIGHT_A and DEFAULT_POLICY_REMOVE_WEIGHT_B";
  47. score = 5.0;
  48. policy = "remove_weight";
  49. }
  50. DEFAULT_POLICY_REMOVE_SYMBOL {
  51. expression = "DEFAULT_POLICY_REMOVE_SYMBOL_A & DEFAULT_POLICY_REMOVE_SYMBOL_B";
  52. score = 5.0;
  53. policy = "remove_symbol";
  54. }
  55. DEFAULT_POLICY_LEAVE {
  56. expression = "DEFAULT_POLICY_LEAVE_A & DEFAULT_POLICY_LEAVE_B";
  57. score = 5.0;
  58. policy = "leave";
  59. }
  60. SYMBOL_GROUPS {
  61. expression = "!g+:positive & g-:negative & -g:any";
  62. score = 5.0;
  63. }
  64. }