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 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. rules {
  17. "WHITELIST_SPF" = {
  18. valid_spf = true;
  19. domains = [
  20. "${DBDIR}/spf_whitelist.inc.local",
  21. "fallback+file://${CONFDIR}/spf_whitelist.inc"
  22. ];
  23. score = -1.0
  24. inverse_symbol = "BLACKLIST_SPF";
  25. }
  26. "WHITELIST_DKIM" = {
  27. valid_dkim = true;
  28. domains = [
  29. "${DBDIR}/dkim_whitelist.inc.local",
  30. "fallback+file://${CONFDIR}/dkim_whitelist.inc"
  31. ];
  32. score = -1.0;
  33. inverse_symbol = "BLACKLIST_DKIM";
  34. }
  35. "WHITELIST_SPF_DKIM" = {
  36. valid_spf = true;
  37. valid_dkim = true;
  38. domains = [
  39. "https://maps.rspamd.com/rspamd/spf_dkim_whitelist.inc.zst",
  40. "${DBDIR}/spf_dkim_whitelist.inc.local",
  41. "fallback+file://${CONFDIR}/spf_dkim_whitelist.inc"
  42. ];
  43. score = -3.0;
  44. inverse_symbol = "BLACKLIST_SPF_DKIM";
  45. }
  46. "WHITELIST_DMARC" = {
  47. valid_dmarc = true;
  48. domains = [
  49. "https://maps.rspamd.com/rspamd/dmarc_whitelist_new.inc.zst",
  50. "${DBDIR}/dmarc_whitelist.inc.local",
  51. "fallback+file://${CONFDIR}/dmarc_whitelist.inc"
  52. ];
  53. score = -7.0;
  54. inverse_symbol = "BLACKLIST_DMARC";
  55. }
  56. }
  57. .include(try=true,priority=5) "${DBDIR}/dynamic/whitelist.conf"
  58. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/whitelist.conf"
  59. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/whitelist.conf"
  60. }