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.

rbl.conf 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. rbl {
  16. default_from = true;
  17. default_received = false;
  18. default_exclude_users = true;
  19. default_unknown = true;
  20. rbls {
  21. spamhaus {
  22. symbol = "RBL_SPAMHAUS";
  23. rbl = "zen.spamhaus.org";
  24. ipv6 = true;
  25. returncodes {
  26. RBL_SPAMHAUS_SBL = "127.0.0.2";
  27. RBL_SPAMHAUS_CSS = "127.0.0.3";
  28. RBL_SPAMHAUS_XBL = ["127.0.0.4", "127.0.0.5",
  29. "127.0.0.6", "127.0.0.7"];
  30. RBL_SPAMHAUS_PBL = ["127.0.0.10", "127.0.0.11"];
  31. RBL_SPAMHAUS_DROP = "127.0.0.9";
  32. }
  33. }
  34. spamhaus_xbl {
  35. symbol = "RECEIVED_SPAMHAUS";
  36. rbl = "zen.spamhaus.org";
  37. ipv6 = true;
  38. received = true;
  39. from = false;
  40. ignore_whitelists = true;
  41. returncodes {
  42. RECEIVED_SPAMHAUS_XBL = ["127.0.0.4", "127.0.0.5",
  43. "127.0.0.6", "127.0.0.7"];
  44. }
  45. }
  46. mailspike {
  47. symbol = "MAILSPIKE";
  48. rbl = "rep.mailspike.net";
  49. is_whitelist = true;
  50. whitelist_exception = "MAILSPIKE";
  51. whitelist_exception = "RWL_MAILSPIKE_GOOD";
  52. whitelist_exception = "RWL_MAILSPIKE_NEUTRAL";
  53. whitelist_exception = "RWL_MAILSPIKE_POSSIBLE";
  54. whitelist_exception = "RBL_MAILSPIKE_WORST";
  55. whitelist_exception = "RBL_MAILSPIKE_VERYBAD";
  56. whitelist_exception = "RBL_MAILSPIKE_BAD";
  57. returncodes {
  58. RBL_MAILSPIKE_WORST = "127.0.0.10";
  59. RBL_MAILSPIKE_VERYBAD = "127.0.0.11";
  60. RBL_MAILSPIKE_BAD = "127.0.0.12";
  61. RWL_MAILSPIKE_NEUTRAL = ["127.0.0.16", "127.0.0.15", "127.0.0.14", "127.0.0.13"];
  62. RWL_MAILSPIKE_POSSIBLE = "127.0.0.17";
  63. RWL_MAILSPIKE_GOOD = "127.0.0.18";
  64. RWL_MAILSPIKE_VERYGOOD = "127.0.0.19";
  65. RWL_MAILSPIKE_EXCELLENT = "127.0.0.20";
  66. }
  67. }
  68. senderscore {
  69. symbol = "RBL_SENDERSCORE";
  70. rbl = "bl.score.senderscore.com";
  71. }
  72. abusech {
  73. symbol = "RBL_ABUSECH";
  74. rbl = "spam.abuse.ch";
  75. }
  76. sem {
  77. symbol = "RBL_SEM";
  78. rbl = "bl.spameatingmonkey.net";
  79. ipv6 = false;
  80. }
  81. semIPv6 {
  82. symbol = "RBL_SEM_IPV6";
  83. rbl = "bl.ipv6.spameatingmonkey.net";
  84. ipv4 = false;
  85. ipv6 = true;
  86. }
  87. dnswl {
  88. symbol = "RCVD_IN_DNSWL";
  89. rbl = "list.dnswl.org";
  90. ipv6 = true;
  91. is_whitelist = true;
  92. whitelist_exception = "RCVD_IN_DNSWL";
  93. whitelist_exception = "RCVD_IN_DNSWL_NONE";
  94. whitelist_exception = "RCVD_IN_DNSWL_LOW";
  95. whitelist_exception = "DNSWL_BLOCKED";
  96. returncodes {
  97. RCVD_IN_DNSWL_NONE = "127.0.%d+.0";
  98. RCVD_IN_DNSWL_LOW = "127.0.%d+.1";
  99. RCVD_IN_DNSWL_MED = "127.0.%d+.2";
  100. RCVD_IN_DNSWL_HI = "127.0.%d+.3";
  101. DNSWL_BLOCKED = "127.0.0.255";
  102. }
  103. }
  104. rambleremails {
  105. symbol = RAMBLER_EMAILBL;
  106. rbl = "email-bl.rambler.ru";
  107. from = false;
  108. emails = true;
  109. exclude_users = false;
  110. exclude_private_ips = false;
  111. exclude_local = false;
  112. ignore_whitelists = true;
  113. }
  114. }
  115. .include(try=true,priority=5) "${DBDIR}/dynamic/rbl.conf"
  116. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/rbl.conf"
  117. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/rbl.conf"
  118. }