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.conf 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  5. # parameters defined on the top level
  6. #
  7. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  8. # parameters defined on the top level
  9. #
  10. # For specific modules or configuration you can also modify
  11. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  12. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  13. #
  14. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  15. whitelist {
  16. .include(try=true,priority=5) "${DBDIR}/dynamic/whitelist.conf"
  17. .include(try=true,priority=1) "$LOCAL_CONFDIR/local.d/whitelist.conf"
  18. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/whitelist.conf"
  19. rules {
  20. "WHITELIST_SPF" = {
  21. valid_spf = true;
  22. domains = "${CONFDIR}/spf_whitelist.inc";
  23. score = -1.0
  24. description = "Mail comes from the whitelisted domain and has a valid SPF policy";
  25. }
  26. "WHITELIST_DKIM" = {
  27. valid_dkim = true;
  28. domains = "${CONFDIR}/dkim_whitelist.inc";
  29. description = "Mail comes from the whitelisted domain and has a valid DKIM signature";
  30. score = -1.0
  31. }
  32. "WHITELIST_SPF_DKIM" = {
  33. valid_spf = true;
  34. valid_dkim = true;
  35. domains = "${CONFDIR}/spf_dkim_whitelist.inc";
  36. score = -3.0;
  37. description = "Mail comes from the whitelisted domain and has valid SPF and DKIM policies";
  38. }
  39. "WHITELIST_DMARC" = {
  40. valid_dmarc = true;
  41. domains = "${CONFDIR}/dmarc_whitelist.inc";
  42. score = -7.0;
  43. description = "Mail comes from the whitelisted domain and has valid DMARC and DKIM policies";
  44. }
  45. }
  46. }