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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. description = "SMTP envelope filter";
  18. symbols = {
  19. "HFILTER_HELO_BAREIP" {
  20. weight = 3.0;
  21. description = "Helo host is bare ip";
  22. }
  23. "HFILTER_HELO_BADIP" {
  24. weight = 4.5;
  25. description = "Helo host is very bad ip";
  26. }
  27. "HFILTER_HELO_1" {
  28. weight = 0.5;
  29. description = "Helo host checks (very low)";
  30. }
  31. "HFILTER_HELO_2" {
  32. weight = 1.0;
  33. description = "Helo host checks (low)";
  34. }
  35. "HFILTER_HELO_3" {
  36. weight = 2.0;
  37. description = "Helo host checks (medium)";
  38. }
  39. "HFILTER_HELO_4" {
  40. weight = 2.5;
  41. description = "Helo host checks (hard)";
  42. }
  43. "HFILTER_HELO_5" {
  44. weight = 3.0;
  45. description = "Helo host checks (very hard)";
  46. }
  47. "HFILTER_HOSTNAME_1" {
  48. weight = 0.5;
  49. description = "Hostname checks (very low)";
  50. }
  51. "HFILTER_HOSTNAME_2" {
  52. weight = 1.0;
  53. description = "Hostname checks (low)";
  54. }
  55. "HFILTER_HOSTNAME_3" {
  56. weight = 2.0;
  57. description = "Hostname checks (medium)";
  58. }
  59. "HFILTER_HOSTNAME_4" {
  60. weight = 2.5;
  61. description = "Hostname checks (hard)";
  62. }
  63. "HFILTER_HOSTNAME_5" {
  64. weight = 3.0;
  65. description = "Hostname checks (very hard)";
  66. }
  67. "HFILTER_HELO_NORESOLVE_MX" {
  68. weight = 0.2;
  69. description = "MX found in Helo and no resolve";
  70. }
  71. "HFILTER_HELO_NORES_A_OR_MX" {
  72. weight = 0.3;
  73. description = "Helo no resolve to A or MX";
  74. }
  75. "HFILTER_HELO_IP_A" {
  76. weight = 1.0;
  77. description = "Helo A IP != hostname IP";
  78. }
  79. "HFILTER_HELO_NOT_FQDN" {
  80. weight = 2.0;
  81. description = "Helo not FQDN";
  82. }
  83. "HFILTER_FROMHOST_NORESOLVE_MX" {
  84. weight = 0.5;
  85. description = "MX found in FROM host and no resolve";
  86. }
  87. "HFILTER_FROMHOST_NORES_A_OR_MX" {
  88. weight = 1.5;
  89. description = "FROM host no resolve to A or MX";
  90. }
  91. "HFILTER_FROMHOST_NOT_FQDN" {
  92. weight = 3.0;
  93. description = "FROM host not FQDN";
  94. }
  95. "HFILTER_FROM_BOUNCE" {
  96. weight = 0.0;
  97. description = "Bounce message";
  98. }
  99. /*
  100. # Disabled by default
  101. "HFILTER_MID_NORESOLVE_MX" {
  102. weight = 0.5;
  103. description = "MX found in Message-id host and no resolve";
  104. }
  105. "HFILTER_MID_NORES_A_OR_MX" {
  106. weight = 0.5;
  107. name = ;
  108. description = "Message-id host no resolve to A or MX";
  109. }
  110. "HFILTER_MID_NOT_FQDN" {
  111. weight = 0.5;
  112. description = "Message-id host not FQDN";
  113. }
  114. */
  115. "HFILTER_HOSTNAME_UNKNOWN" {
  116. weight = 2.5;
  117. description = "Unknown client hostname (PTR or FCrDNS verification failed)";
  118. }
  119. "HFILTER_RCPT_BOUNCEMOREONE" {
  120. weight = 1.5;
  121. description = "Message from bounce and over 1 recipient";
  122. }
  123. "HFILTER_URL_ONLY" {
  124. weight = 2.2;
  125. description = "URL only in body";
  126. }
  127. "HFILTER_URL_ONELINE" {
  128. weight = 2.5;
  129. description = "One line URL and text in body";
  130. }
  131. }