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.

hfilter_group.conf 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. # Host and connection rules scores
  2. #
  3. # Please don't modify this file as your changes might be overwritten with
  4. # the next update.
  5. #
  6. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  7. # parameters defined on the top level
  8. #
  9. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  10. # parameters defined on the top level
  11. #
  12. # For specific modules or configuration you can also modify
  13. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  14. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  15. #
  16. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  17. symbols = {
  18. "HFILTER_HELO_BAREIP" {
  19. weight = 3.0;
  20. description = "Helo host is bare ip";
  21. }
  22. "HFILTER_HELO_BADIP" {
  23. weight = 4.5;
  24. description = "Helo host is very bad ip";
  25. }
  26. "HFILTER_HELO_1" {
  27. weight = 0.5;
  28. description = "Helo host checks (very low)";
  29. }
  30. "HFILTER_HELO_2" {
  31. weight = 1.0;
  32. description = "Helo host checks (low)";
  33. }
  34. "HFILTER_HELO_3" {
  35. weight = 2.0;
  36. description = "Helo host checks (medium)";
  37. }
  38. "HFILTER_HELO_4" {
  39. weight = 2.5;
  40. description = "Helo host checks (hard)";
  41. }
  42. "HFILTER_HELO_5" {
  43. weight = 3.0;
  44. description = "Helo host checks (very hard)";
  45. }
  46. "HFILTER_HOSTNAME_1" {
  47. weight = 0.5;
  48. description = "Hostname checks (very low)";
  49. }
  50. "HFILTER_HOSTNAME_2" {
  51. weight = 1.0;
  52. description = "Hostname checks (low)";
  53. }
  54. "HFILTER_HOSTNAME_3" {
  55. weight = 2.0;
  56. description = "Hostname checks (medium)";
  57. }
  58. "HFILTER_HOSTNAME_4" {
  59. weight = 2.5;
  60. description = "Hostname checks (hard)";
  61. }
  62. "HFILTER_HOSTNAME_5" {
  63. weight = 3.0;
  64. description = "Hostname checks (very hard)";
  65. }
  66. "HFILTER_HELO_NORESOLVE_MX" {
  67. weight = 0.2;
  68. description = "MX found in Helo and no resolve";
  69. }
  70. "HFILTER_HELO_NORES_A_OR_MX" {
  71. weight = 0.3;
  72. description = "Helo no resolve to A or MX";
  73. }
  74. "HFILTER_HELO_IP_A" {
  75. weight = 1.0;
  76. description = "Helo A IP != hostname IP";
  77. }
  78. "HFILTER_HELO_NOT_FQDN" {
  79. weight = 2.0;
  80. description = "Helo not FQDN";
  81. }
  82. "HFILTER_FROMHOST_NORESOLVE_MX" {
  83. weight = 0.5;
  84. description = "MX found in FROM host and no resolve";
  85. }
  86. "HFILTER_FROMHOST_NORES_A_OR_MX" {
  87. weight = 1.5;
  88. description = "FROM host no resolve to A or MX";
  89. }
  90. "HFILTER_FROMHOST_NOT_FQDN" {
  91. weight = 3.0;
  92. description = "FROM host not FQDN";
  93. }
  94. "HFILTER_FROM_BOUNCE" {
  95. weight = 0.0;
  96. description = "Bounce message";
  97. }
  98. /*
  99. # Disabled by default
  100. "HFILTER_MID_NORESOLVE_MX" {
  101. weight = 0.5;
  102. description = "MX found in Message-id host and no resolve";
  103. }
  104. "HFILTER_MID_NORES_A_OR_MX" {
  105. weight = 0.5;
  106. name = ;
  107. description = "Message-id host no resolve to A or MX";
  108. }
  109. "HFILTER_MID_NOT_FQDN" {
  110. weight = 0.5;
  111. description = "Message-id host not FQDN";
  112. }
  113. */
  114. "HFILTER_HOSTNAME_UNKNOWN" {
  115. weight = 2.5;
  116. description = "Unknown client hostname (PTR or FCrDNS verification failed)";
  117. }
  118. "HFILTER_RCPT_BOUNCEMOREONE" {
  119. weight = 1.5;
  120. description = "Message from bounce and over 1 recipient";
  121. }
  122. "HFILTER_URL_ONLY" {
  123. weight = 2.2;
  124. description = "URL only in body";
  125. }
  126. "HFILTER_URL_ONELINE" {
  127. weight = 2.5;
  128. description = "One line URL and text in body";
  129. }
  130. }