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

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