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.

whitelist_group.conf 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Whitelist 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 = "White lists group";
  18. max_score = 10.0;
  19. symbols = {
  20. "WHITELIST_SPF" {
  21. weight = -1.0;
  22. description = "Mail comes from the whitelisted domain and has a valid SPF policy";
  23. groups = ["spf"];
  24. }
  25. "BLACKLIST_SPF" {
  26. weight = 1.0;
  27. description = "Mail comes from the whitelisted domain and has no valid SPF policy";
  28. groups = ["spf"];
  29. }
  30. "WHITELIST_DKIM" {
  31. weight = -1.0;
  32. description = "Mail comes from the whitelisted domain and has a valid DKIM signature";
  33. groups = ["dkim"];
  34. }
  35. "BLACKLIST_DKIM" {
  36. weight = 2.0;
  37. description = "Mail comes from the whitelisted domain and has non-valid DKIM signature";
  38. groups = ["dkim"];
  39. }
  40. "WHITELIST_SPF_DKIM" {
  41. weight = -3.0;
  42. description = "Mail comes from the whitelisted domain and has valid SPF and DKIM policies";
  43. groups = ["spf", "dkim"];
  44. }
  45. "BLACKLIST_SPF_DKIM" {
  46. weight = 3.0;
  47. description = "Mail comes from the whitelisted domain and has no valid SPF policy or a bad DKIM signature";
  48. groups = ["spf", "dkim"];
  49. }
  50. "WHITELIST_DMARC" {
  51. weight = -7.0;
  52. description = "Mail comes from the whitelisted domain and has valid DMARC and DKIM policies";
  53. groups = ["dmarc", "spf", "dkim"];
  54. }
  55. "BLACKLIST_DMARC" {
  56. weight = 6.0;
  57. description = "Mail comes from the whitelisted domain and has failed DMARC and DKIM policies";
  58. groups = ["dmarc", "spf", "dkim"];
  59. }
  60. }