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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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/rbl.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/rbl.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/rbl.html
  14. rbl {
  15. default_from = true;
  16. default_received = false;
  17. default_exclude_users = true;
  18. default_unknown = true;
  19. url_whitelist = [
  20. "https://maps.rspamd.com/rspamd/surbl-whitelist.inc.zst",
  21. "$LOCAL_CONFDIR/local.d/maps.d/surbl-whitelist.inc.local",
  22. "${DBDIR}/surbl-whitelist.inc.local",
  23. "fallback+file://${CONFDIR}/maps.d/surbl-whitelist.inc"
  24. ];
  25. rbls {
  26. spamhaus {
  27. symbol = "SPAMHAUS"; # Augmented by prefixes
  28. rbl = "zen.spamhaus.org";
  29. ipv6 = true;
  30. received = true;
  31. from = true;
  32. symbols_prefixes = {
  33. received = 'RECEIVED',
  34. from = 'RBL',
  35. }
  36. returncodes {
  37. SPAMHAUS_SBL = "127.0.0.2";
  38. SPAMHAUS_CSS = "127.0.0.3";
  39. SPAMHAUS_XBL = ["127.0.0.4", "127.0.0.5",
  40. "127.0.0.6", "127.0.0.7"];
  41. SPAMHAUS_PBL = ["127.0.0.10", "127.0.0.11"];
  42. SPAMHAUS_DROP = "127.0.0.9";
  43. SPAMHAUS_BLOCKED_OPENRESOLVER = "127.255.255.254";
  44. SPAMHAUS_BLOCKED= "127.255.255.255";
  45. }
  46. }
  47. mailspike {
  48. symbol = "MAILSPIKE";
  49. rbl = "rep.mailspike.net";
  50. is_whitelist = true;
  51. whitelist_exception = "MAILSPIKE";
  52. whitelist_exception = "RWL_MAILSPIKE_GOOD";
  53. whitelist_exception = "RWL_MAILSPIKE_NEUTRAL";
  54. whitelist_exception = "RWL_MAILSPIKE_POSSIBLE";
  55. whitelist_exception = "RBL_MAILSPIKE_WORST";
  56. whitelist_exception = "RBL_MAILSPIKE_VERYBAD";
  57. whitelist_exception = "RBL_MAILSPIKE_BAD";
  58. returncodes {
  59. RBL_MAILSPIKE_WORST = "127.0.0.10";
  60. RBL_MAILSPIKE_VERYBAD = "127.0.0.11";
  61. RBL_MAILSPIKE_BAD = "127.0.0.12";
  62. RWL_MAILSPIKE_NEUTRAL = ["127.0.0.16", "127.0.0.15", "127.0.0.14", "127.0.0.13"];
  63. RWL_MAILSPIKE_POSSIBLE = "127.0.0.17";
  64. RWL_MAILSPIKE_GOOD = "127.0.0.18";
  65. RWL_MAILSPIKE_VERYGOOD = "127.0.0.19";
  66. RWL_MAILSPIKE_EXCELLENT = "127.0.0.20";
  67. }
  68. }
  69. senderscore {
  70. symbol = "RBL_SENDERSCORE";
  71. rbl = "bl.score.senderscore.com";
  72. }
  73. sem {
  74. symbol = "RBL_SEM";
  75. rbl = "bl.spameatingmonkey.net";
  76. ipv6 = false;
  77. }
  78. semIPv6 {
  79. symbol = "RBL_SEM_IPV6";
  80. rbl = "bl.ipv6.spameatingmonkey.net";
  81. ipv4 = false;
  82. ipv6 = true;
  83. }
  84. dnswl {
  85. symbol = "RCVD_IN_DNSWL";
  86. rbl = "list.dnswl.org";
  87. ipv6 = true;
  88. is_whitelist = true;
  89. whitelist_exception = "RCVD_IN_DNSWL";
  90. whitelist_exception = "RCVD_IN_DNSWL_NONE";
  91. whitelist_exception = "RCVD_IN_DNSWL_LOW";
  92. whitelist_exception = "DNSWL_BLOCKED";
  93. returncodes {
  94. RCVD_IN_DNSWL_NONE = "127.0.%d+.0";
  95. RCVD_IN_DNSWL_LOW = "127.0.%d+.1";
  96. RCVD_IN_DNSWL_MED = "127.0.%d+.2";
  97. RCVD_IN_DNSWL_HI = "127.0.%d+.3";
  98. DNSWL_BLOCKED = "127.0.0.255";
  99. }
  100. }
  101. # Provided by https://virusfree.cz
  102. virusfree {
  103. symbol = "RBL_VIRUSFREE_UNKNOWN";
  104. rbl = "bip.virusfree.cz";
  105. ipv6 = true;
  106. returncodes {
  107. RBL_VIRUSFREE_BOTNET = "127.0.0.2";
  108. }
  109. }
  110. nixspam {
  111. symbol = "RBL_NIXSPAM";
  112. rbl = "ix.dnsbl.manitu.net";
  113. ipv6 = true;
  114. }
  115. blocklistde {
  116. symbols_prefixes = {
  117. received = 'RECEIVED',
  118. from = 'RBL',
  119. }
  120. symbol = "BLOCKLISTDE";
  121. rbl = "bl.blocklist.de";
  122. ipv6 = true;
  123. received = true;
  124. from = true;
  125. }
  126. dnswl_dwl {
  127. symbol = "DWL_DNSWL";
  128. rbl = "dwl.dnswl.org";
  129. dkim = true;
  130. dkim_domainonly = false;
  131. dkim_match_from = true;
  132. ignore_whitelist = true;
  133. unknown = false;
  134. returncodes {
  135. DWL_DNSWL_NONE = "127.0.%d+.0";
  136. DWL_DNSWL_LOW = "127.0.%d+.1";
  137. DWL_DNSWL_MED = "127.0.%d+.2";
  138. DWL_DNSWL_HI = "127.0.%d+.3";
  139. DWL_DNSWL_BLOCKED = "127.0.0.255";
  140. }
  141. }
  142. # Old emails module
  143. RSPAMD_EMAILBL {
  144. ignore_defaults = true;
  145. emails_delimiter = ".";
  146. hash_format = "base32";
  147. hash_len = 32;
  148. rbl = "email.rspamd.com";
  149. replyto = true;
  150. hash = "blake2";
  151. returncodes = {
  152. RSPAMD_EMAILBL = "127.0.0.2";
  153. }
  154. }
  155. MSBL_EBL {
  156. ignore_whitelist = true;
  157. ignore_defaults = true;
  158. rbl = "ebl.msbl.org";
  159. emails_domainonly = false;
  160. replyto = true;
  161. hash = "sha1";
  162. returncodes = {
  163. MSBL_EBL = [
  164. "127.0.0.2",
  165. "127.0.0.3"
  166. ];
  167. MSBL_EBL_GREY = [
  168. "127.0.1.2",
  169. "127.0.1.3"
  170. ];
  171. }
  172. }
  173. # Old SURBL module
  174. "SURBL_MULTI" {
  175. ignore_defaults = true;
  176. rbl = "multi.surbl.org";
  177. dkim = true;
  178. emails = true;
  179. emails_domainonly = true;
  180. urls = true;
  181. returnbits = {
  182. CRACKED_SURBL = 128; # From February 2016
  183. ABUSE_SURBL = 64;
  184. MW_SURBL_MULTI = 16;
  185. PH_SURBL_MULTI = 8;
  186. SURBL_BLOCKED = 1;
  187. }
  188. }
  189. "URIBL_MULTI" {
  190. ignore_defaults = true;
  191. rbl = "multi.uribl.com";
  192. dkim = true;
  193. emails = true;
  194. emails_domainonly = true;
  195. urls = true;
  196. returnbits {
  197. URIBL_BLOCKED = 1;
  198. URIBL_BLACK = 2;
  199. URIBL_GREY = 4;
  200. URIBL_RED = 8;
  201. }
  202. }
  203. "RSPAMD_URIBL" {
  204. ignore_defaults = true;
  205. rbl = "uribl.rspamd.com";
  206. dkim = true;
  207. emails = true;
  208. emails_domainonly = true;
  209. urls = true;
  210. hash = 'blake2';
  211. hash_len = 32;
  212. hash_format = 'base32';
  213. returncodes = {
  214. RSPAMD_URIBL = [
  215. "127.0.0.2",
  216. ];
  217. }
  218. }
  219. "DBL" {
  220. ignore_defaults = true;
  221. rbl = "dbl.spamhaus.org";
  222. no_ip = true;
  223. dkim = true;
  224. emails = true;
  225. emails_domainonly = true;
  226. urls = true;
  227. returncodes = {
  228. # spam domain
  229. DBL_SPAM = "127.0.1.2";
  230. # phish domain
  231. DBL_PHISH = "127.0.1.4";
  232. # malware domain
  233. DBL_MALWARE = "127.0.1.5";
  234. # botnet C&C domain
  235. DBL_BOTNET = "127.0.1.6";
  236. # abused legit spam
  237. DBL_ABUSE = "127.0.1.102";
  238. # abused spammed redirector domain
  239. DBL_ABUSE_REDIR = "127.0.1.103";
  240. # abused legit phish
  241. DBL_ABUSE_PHISH = "127.0.1.104";
  242. # abused legit malware
  243. DBL_ABUSE_MALWARE = "127.0.1.105";
  244. # abused legit botnet C&C
  245. DBL_ABUSE_BOTNET = "127.0.1.106";
  246. # error - IP queries prohibited!
  247. DBL_PROHIBIT = "127.0.1.255";
  248. # issue #3074
  249. DBL_BLOCKED_OPENRESOLVER = "127.255.255.254";
  250. DBL_BLOCKED = "127.255.255.255";
  251. }
  252. }
  253. # Not enabled by default due to privacy concerns! (see also groups.d/surbl_group.conf)
  254. #"SPAMHAUS_ZEN_URIBL" {
  255. # suffix = "zen.spamhaus.org";
  256. # resolve_ip = true;
  257. # check_emails = true;
  258. # ips {
  259. # URIBL_SBL = "127.0.0.2";
  260. # URIBL_SBL_CSS = "127.0.0.3";
  261. # URIBL_XBL = ["127.0.0.4", "127.0.0.5", "127.0.0.6", "127.0.0.7"];
  262. # URIBL_PBL = ["127.0.0.10", "127.0.0.11"];
  263. # URIBL_DROP = "127.0.0.9";
  264. # }
  265. #}
  266. "SEM_URIBL_UNKNOWN" {
  267. ignore_defaults = true;
  268. rbl = "uribl.spameatingmonkey.net";
  269. no_ip = true;
  270. dkim = true;
  271. emails = true;
  272. emails_domainonly = true;
  273. urls = true;
  274. returnbits {
  275. SEM_URIBL = 2;
  276. }
  277. }
  278. "SEM_URIBL_FRESH15_UNKNOWN" {
  279. ignore_defaults = true;
  280. rbl = "fresh15.spameatingmonkey.net";
  281. no_ip = true;
  282. dkim = true;
  283. emails = true;
  284. emails_domainonly = true;
  285. urls = true;
  286. returnbits {
  287. SEM_URIBL_FRESH15 = 2;
  288. }
  289. }
  290. # Proved to be broken
  291. #"RBL_SARBL_BAD" {
  292. # suffix = "public.sarbl.org";
  293. # noip = true;
  294. # images = true;
  295. #}
  296. }
  297. .include(try=true,priority=5) "${DBDIR}/dynamic/rbl.conf"
  298. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/rbl.conf"
  299. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/rbl.conf"
  300. }