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.

policies_group.conf 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # Policies rules scores, includes SPF, DKIM, DMARC and ARC symbols
  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. # SPF
  19. "R_SPF_FAIL" {
  20. weight = 1.0;
  21. description = "SPF verification failed";
  22. groups = ["spf"];
  23. }
  24. "R_SPF_SOFTFAIL" {
  25. weight = 0.0;
  26. description = "SPF verification soft-failed";
  27. groups = ["spf"];
  28. }
  29. "R_SPF_NEUTRAL" {
  30. weight = 0.0;
  31. description = "SPF policy is neutral";
  32. groups = ["spf"];
  33. }
  34. "R_SPF_ALLOW" {
  35. weight = -0.2;
  36. description = "SPF verification allows sending";
  37. groups = ["spf"];
  38. }
  39. "R_SPF_DNSFAIL" {
  40. weight = 0.0;
  41. description = "SPF DNS failure";
  42. groups = ["spf"];
  43. }
  44. # DKIM
  45. "R_DKIM_REJECT" {
  46. weight = 1.0;
  47. description = "DKIM verification failed";
  48. one_shot = true;
  49. groups = ["dkim"];
  50. }
  51. "R_DKIM_TEMPFAIL" {
  52. weight = 0.0;
  53. description = "DKIM verification soft-failed";
  54. groups = ["dkim"];
  55. }
  56. "R_DKIM_ALLOW" {
  57. weight = -0.2;
  58. description = "DKIM verification succeed";
  59. one_shot = true;
  60. groups = ["dkim"];
  61. }
  62. # DMARC
  63. "DMARC_POLICY_ALLOW" {
  64. weight = -0.5;
  65. description = "DMARC permit policy";
  66. groups = ["dmarc"];
  67. }
  68. "DMARC_POLICY_ALLOW_WITH_FAILURES" {
  69. weight = -0.5;
  70. description = "DMARC permit policy with DKIM/SPF failure";
  71. groups = ["dmarc"];
  72. }
  73. "DMARC_POLICY_REJECT" {
  74. weight = 2.0;
  75. description = "DMARC reject policy";
  76. groups = ["dmarc"];
  77. }
  78. "DMARC_POLICY_QUARANTINE" {
  79. weight = 1.5;
  80. description = "DMARC quarantine policy";
  81. groups = ["dmarc"];
  82. }
  83. "DMARC_POLICY_SOFTFAIL" {
  84. weight = 0.1;
  85. description = "DMARC failed";
  86. groups = ["dmarc"];
  87. }
  88. # ARC
  89. "ARC_ALLOW" {
  90. weight = -1.0;
  91. description = "ARC checks success";
  92. groups = ["arc"];
  93. }
  94. "ARC_REJECT" {
  95. weight = 2.0;
  96. description = "ARC checks failed";
  97. groups = ["arc"];
  98. }
  99. "ARC_INVALID" {
  100. weight = 1.0;
  101. description = "ARC structure invalid";
  102. groups = ["arc"];
  103. }
  104. "ARC_DNSFAIL" {
  105. weight = 0.0;
  106. description = "ARC DNS error";
  107. groups = ["arc"];
  108. }
  109. "ARC_NA" {
  110. weight = 0.0;
  111. description = "ARC signature absent";
  112. groups = ["arc"];
  113. }
  114. }