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

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