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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify 'local.d/whitelist.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/whitelist.conf' to strictly override all
  8. # parameters defined inside this section
  9. #
  10. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  11. # for details
  12. #
  13. # Module documentation can be found at https://rspamd.com/doc/modules/whitelist.html
  14. whitelist {
  15. rules {
  16. "WHITELIST_SPF" = {
  17. valid_spf = true;
  18. domains = [
  19. "$LOCAL_CONFDIR/local.d/maps.d/spf_whitelist.inc.local",
  20. "${DBDIR}/spf_whitelist.inc.local",
  21. "fallback+file://${CONFDIR}/maps.d/spf_whitelist.inc"
  22. ];
  23. score = -1.0
  24. inverse_symbol = "BLACKLIST_SPF";
  25. }
  26. "WHITELIST_DKIM" = {
  27. valid_dkim = true;
  28. domains = [
  29. "$LOCAL_CONFDIR/local.d/maps.d/dkim_whitelist.inc.local",
  30. "${DBDIR}/dkim_whitelist.inc.local",
  31. "fallback+file://${CONFDIR}/maps.d/dkim_whitelist.inc"
  32. ];
  33. score = -1.0;
  34. inverse_symbol = "BLACKLIST_DKIM";
  35. }
  36. "WHITELIST_SPF_DKIM" = {
  37. valid_spf = true;
  38. valid_dkim = true;
  39. domains = [
  40. "https://maps.rspamd.com/rspamd/spf_dkim_whitelist.inc.zst",
  41. "$LOCAL_CONFDIR/local.d/maps.d/spf_dkim_whitelist.inc.local",
  42. "${DBDIR}/spf_dkim_whitelist.inc.local",
  43. "fallback+file://${CONFDIR}/maps.d/spf_dkim_whitelist.inc"
  44. ];
  45. score = -3.0;
  46. inverse_symbol = "BLACKLIST_SPF_DKIM";
  47. }
  48. "WHITELIST_DMARC" = {
  49. valid_dmarc = true;
  50. domains = [
  51. "https://maps.rspamd.com/rspamd/dmarc_whitelist_new.inc.zst",
  52. "$LOCAL_CONFDIR/local.d/maps.d/dmarc_whitelist.inc.local",
  53. "${DBDIR}/dmarc_whitelist.inc.local",
  54. "fallback+file://${CONFDIR}/maps.d/dmarc_whitelist.inc"
  55. ];
  56. score = -7.0;
  57. inverse_symbol = "BLACKLIST_DMARC";
  58. }
  59. }
  60. .include(try=true,priority=5) "${DBDIR}/dynamic/whitelist.conf"
  61. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/whitelist.conf"
  62. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/whitelist.conf"
  63. }