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.

groups.conf 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # Symbols groups setup
  2. # Each individual group lives in scores.d/<GROUPNAME>
  3. #
  4. # Please don't modify this file as your changes might be overwritten with
  5. # the next update.
  6. #
  7. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  8. # parameters defined on the top level
  9. #
  10. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  11. # parameters defined on the top level
  12. #
  13. # For specific modules or configuration you can also modify
  14. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  15. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  16. #
  17. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  18. group "headers" {
  19. .include "$CONFDIR/scores.d/headers_group.conf"
  20. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/headers_group.conf"
  21. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/headers_group.conf"
  22. }
  23. group "subject" {
  24. .include "$CONFDIR/scores.d/subject_group.conf"
  25. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/subject_group.conf"
  26. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/subject_group.conf"
  27. }
  28. group "mua" {
  29. .include "$CONFDIR/scores.d/mua_group.conf"
  30. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/mua_group.conf"
  31. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/mua_group.conf"
  32. }
  33. group "rbl" {
  34. .include "$CONFDIR/scores.d/rbl_group.conf"
  35. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/rbl_group.conf"
  36. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/rbl_group.conf"
  37. }
  38. group "statistics" {
  39. .include "$CONFDIR/scores.d/statistics_group.conf"
  40. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/statistics_group.conf"
  41. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/statistics_group.conf"
  42. }
  43. group "fuzzy" {
  44. .include "$CONFDIR/scores.d/fuzzy_group.conf"
  45. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/fuzzy_group.conf"
  46. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/fuzzy_group.conf"
  47. }
  48. # SPF + DKIM + DMARC + ARC
  49. group "policies" {
  50. .include "$CONFDIR/scores.d/policies_group.conf"
  51. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/policies_group.conf"
  52. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/policies_group.conf"
  53. }
  54. group "whitelist" {
  55. .include "$CONFDIR/scores.d/whitelist_group.conf"
  56. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/whitelist_group.conf"
  57. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/whitelist_group.conf"
  58. }
  59. group "surbl" {
  60. .include "$CONFDIR/scores.d/surbl_group.conf"
  61. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/surbl_group.conf"
  62. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/surbl_group.conf"
  63. }
  64. group "phishing" {
  65. .include "$CONFDIR/scores.d/phishing_group.conf"
  66. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/phishing_group.conf"
  67. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/phishing_group.conf"
  68. }
  69. group "hfilter" {
  70. .include "$CONFDIR/scores.d/hfilter_group.conf"
  71. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/hfilter_group.conf"
  72. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/hfilter_group.conf"
  73. }
  74. group "mime_types" {
  75. .include "$CONFDIR/scores.d/mime_types_group.conf"
  76. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/mime_types_group.conf"
  77. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/mime_types_group.conf"
  78. }
  79. # Used to limit maximium score
  80. group "excessqp" {
  81. max_score = 2.4;
  82. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/excessqp_group.conf"
  83. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/excessqp_group.conf"
  84. }
  85. group "excessb64" {
  86. max_score = 3.0;
  87. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/excessb64_group.conf"
  88. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/excessb64_group.conf"
  89. }
  90. # Not defined by default
  91. group "neural" {
  92. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/neural_group.conf"
  93. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/neural_group.conf"
  94. }
  95. group "antivirus" {
  96. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/antivirus_group.conf"
  97. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/antivirus_group.conf"
  98. }
  99. group "external_services" {
  100. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/external_services_group.conf"
  101. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/external_services_group.conf"
  102. }
  103. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/groups.conf"
  104. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/groups.conf"