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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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_received {
  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_SBL = "127.0.0.2";
  43. RECEIVED_SPAMHAUS_CSS = "127.0.0.3";
  44. RECEIVED_SPAMHAUS_XBL = ["127.0.0.4", "127.0.0.5",
  45. "127.0.0.6", "127.0.0.7"];
  46. RECEIVED_SPAMHAUS_PBL = ["127.0.0.10", "127.0.0.11"];
  47. RECEIVED_SPAMHAUS_DROP = "127.0.0.9";
  48. }
  49. }
  50. mailspike {
  51. symbol = "MAILSPIKE";
  52. rbl = "rep.mailspike.net";
  53. is_whitelist = true;
  54. whitelist_exception = "MAILSPIKE";
  55. whitelist_exception = "RWL_MAILSPIKE_GOOD";
  56. whitelist_exception = "RWL_MAILSPIKE_NEUTRAL";
  57. whitelist_exception = "RWL_MAILSPIKE_POSSIBLE";
  58. whitelist_exception = "RBL_MAILSPIKE_WORST";
  59. whitelist_exception = "RBL_MAILSPIKE_VERYBAD";
  60. whitelist_exception = "RBL_MAILSPIKE_BAD";
  61. returncodes {
  62. RBL_MAILSPIKE_WORST = "127.0.0.10";
  63. RBL_MAILSPIKE_VERYBAD = "127.0.0.11";
  64. RBL_MAILSPIKE_BAD = "127.0.0.12";
  65. RWL_MAILSPIKE_NEUTRAL = ["127.0.0.16", "127.0.0.15", "127.0.0.14", "127.0.0.13"];
  66. RWL_MAILSPIKE_POSSIBLE = "127.0.0.17";
  67. RWL_MAILSPIKE_GOOD = "127.0.0.18";
  68. RWL_MAILSPIKE_VERYGOOD = "127.0.0.19";
  69. RWL_MAILSPIKE_EXCELLENT = "127.0.0.20";
  70. }
  71. }
  72. senderscore {
  73. symbol = "RBL_SENDERSCORE";
  74. rbl = "bl.score.senderscore.com";
  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. # Provided by https://virusfree.cz
  105. virusfree {
  106. symbol = "RBL_VIRUSFREE_UNKNOWN";
  107. rbl = "bip.virusfree.cz";
  108. ipv6 = true;
  109. returncodes {
  110. RBL_VIRUSFREE_BOTNET = "127.0.0.2";
  111. }
  112. }
  113. nixspam {
  114. symbol = "RBL_NIXSPAM";
  115. rbl = "ix.dnsbl.manitu.net";
  116. ipv6 = true;
  117. }
  118. blocklistde {
  119. symbol = "RBL_BLOCKLISTDE";
  120. rbl = "bl.blocklist.de";
  121. ipv6 = true;
  122. }
  123. blocklistde_received {
  124. symbol = "RECEIVED_BLOCKLISTDE";
  125. rbl = "bl.blocklist.de";
  126. ipv6 = true;
  127. received = true;
  128. from = false;
  129. ignore_whitelists = true;
  130. }
  131. dnswl_dwl {
  132. symbol = "DWL_DNSWL";
  133. rbl = "dwl.dnswl.org";
  134. dkim = true;
  135. dkim_domainonly = false;
  136. dkim_match_from = true;
  137. ignore_whitelist = true;
  138. unknown = false;
  139. returncodes {
  140. DWL_DNSWL_NONE = "127.0.%d+.0";
  141. DWL_DNSWL_LOW = "127.0.%d+.1";
  142. DWL_DNSWL_MED = "127.0.%d+.2";
  143. DWL_DNSWL_HI = "127.0.%d+.3";
  144. DWL_DNSWL_BLOCKED = "127.0.0.255";
  145. }
  146. }
  147. }
  148. .include(try=true,priority=5) "${DBDIR}/dynamic/rbl.conf"
  149. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/rbl.conf"
  150. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/rbl.conf"
  151. }