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.

surbl.conf 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. surbl {
  16. whitelist = [
  17. "https://maps.rspamd.com/rspamd/surbl-whitelist.inc.zst",
  18. "${DBDIR}/surbl-whitelist.inc.local",
  19. "fallback+file://${CONFDIR}/surbl-whitelist.inc"
  20. ];
  21. exceptions = [
  22. "https://maps.rspamd.com/rspamd/2tld.inc.zst",
  23. "${DBDIR}/2tld.inc.local",
  24. "fallback+file://${CONFDIR}/2tld.inc"
  25. ];
  26. rules {
  27. "SURBL_MULTI" {
  28. suffix = "multi.surbl.org";
  29. check_dkim = true;
  30. bits {
  31. CRACKED_SURBL = 128; # From February 2016
  32. ABUSE_SURBL = 64;
  33. MW_SURBL_MULTI = 16;
  34. PH_SURBL_MULTI = 8;
  35. SURBL_BLOCKED = 1;
  36. }
  37. }
  38. "URIBL_MULTI" {
  39. suffix = "multi.uribl.com";
  40. check_dkim = true;
  41. bits {
  42. URIBL_BLOCKED = 1;
  43. URIBL_BLACK = 2;
  44. URIBL_GREY = 4;
  45. URIBL_RED = 8;
  46. }
  47. }
  48. "RSPAMD_URIBL" {
  49. suffix = "uribl.rspamd.com";
  50. check_dkim = true;
  51. process_script =<<EOD
  52. function(url, suffix)
  53. local cr = require "rspamd_cryptobox_hash"
  54. local h = cr.create(url):base32():sub(1, 32)
  55. return string.format("%s.%s", h, suffix)
  56. end
  57. EOD;
  58. }
  59. "DBL" {
  60. suffix = "dbl.spamhaus.org";
  61. no_ip = true;
  62. check_dkim = true;
  63. ips = {
  64. # spam domain
  65. DBL_SPAM = "127.0.1.2";
  66. # phish domain
  67. DBL_PHISH = "127.0.1.4";
  68. # malware domain
  69. DBL_MALWARE = "127.0.1.5";
  70. # botnet C&C domain
  71. DBL_BOTNET = "127.0.1.6";
  72. # abused legit spam
  73. DBL_ABUSE = "127.0.1.102";
  74. # abused spammed redirector domain
  75. DBL_ABUSE_REDIR = "127.0.1.103";
  76. # abused legit phish
  77. DBL_ABUSE_PHISH = "127.0.1.104";
  78. # abused legit malware
  79. DBL_ABUSE_MALWARE = "127.0.1.105";
  80. # abused legit botnet C&C
  81. DBL_ABUSE_BOTNET = "127.0.1.106";
  82. # error - IP queries prohibited!
  83. DBL_PROHIBIT = "127.0.1.255";
  84. }
  85. }
  86. "SPAMHAUS_ZEN_URIBL" {
  87. suffix = "zen.spamhaus.org";
  88. resolve_ip = true;
  89. ips {
  90. URIBL_SBL = "127.0.0.2";
  91. URIBL_SBL_CSS = "127.0.0.3";
  92. URIBL_XBL = ["127.0.0.4", "127.0.0.5", "127.0.0.6", "127.0.0.7"];
  93. URIBL_PBL = ["127.0.0.10", "127.0.0.11"];
  94. URIBL_DROP = "127.0.0.9";
  95. }
  96. }
  97. "SEM_URIBL_UNKNOWN" {
  98. suffix = "uribl.spameatingmonkey.net";
  99. bits {
  100. SEM_URIBL = 2;
  101. }
  102. no_ip = true;
  103. }
  104. "SEM_URIBL_FRESH15_UNKNOWN" {
  105. suffix = "fresh15.spameatingmonkey.net";
  106. bits {
  107. SEM_URIBL_FRESH15 = 2;
  108. }
  109. no_ip = true;
  110. }
  111. "RBL_SARBL_BAD" {
  112. suffix = "public.sarbl.org";
  113. noip = true;
  114. images = true;
  115. }
  116. }
  117. .include(try=true,priority=5) "${DBDIR}/dynamic/surbl.conf"
  118. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/surbl.conf"
  119. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/surbl.conf"
  120. }