From: Vsevolod Stakhov Date: Mon, 29 Aug 2016 17:12:38 +0000 (+0100) Subject: [Fix] Avoid extra symbols for RBLs X-Git-Tag: 1.4.0~531 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2d94b51496b0ea8a504bbda02ab4434cba61cc7;p=thirdparty%2Frspamd.git [Fix] Avoid extra symbols for RBLs --- diff --git a/conf/metrics.conf b/conf/metrics.conf index 9441310804..ecb8105dc0 100644 --- a/conf/metrics.conf +++ b/conf/metrics.conf @@ -487,18 +487,6 @@ metric { weight = 4.0; description = "From address is listed in zen xbl"; } - symbol "RBL_SPAMHAUS_XBL1" { - weight = 4.0; - description = "From address is listed in zen xbl (obsoleted/reserved)"; - } - symbol "RBL_SPAMHAUS_XBL2" { - weight = 4.0; - description = "From address is listed in zen xbl (obsoleted/reserved)"; - } - symbol "RBL_SPAMHAUS_XBL3" { - weight = 4.0; - description = "From address is listed in zen xbl (reserved)"; - } symbol "RBL_SPAMHAUS_XBL_ANY" { weight = 4.0; description = "From or receive address is listed in zen xbl (any list)"; @@ -507,10 +495,6 @@ metric { weight = 2.0; description = "From address is listed in zen pbl (ISP list)"; } - symbol "RBL_SPAMHAUS_PBL1" { - weight = 2.0; - description = "From address is listed in zen pbl (Spamhaus list)"; - } symbol "RBL_SPAMHAUS_DROP" { weight = 7.0; description = "From address is listed in zen drop bl"; diff --git a/conf/modules.d/rbl.conf b/conf/modules.d/rbl.conf index dc2b2bdcc0..7544881bfc 100644 --- a/conf/modules.d/rbl.conf +++ b/conf/modules.d/rbl.conf @@ -28,23 +28,25 @@ rbl { returncodes { RBL_SPAMHAUS_SBL = "127.0.0.2"; RBL_SPAMHAUS_CSS = "127.0.0.3"; + RBL_SPAMHAUS_XBL = ["127.0.0.4", "127.0.0.5", + "127.0.0.6", "127.0.0.7"]; RBL_SPAMHAUS_XBL = "127.0.0.4"; - RBL_SPAMHAUS_XBL1 = "127.0.0.5"; - RBL_SPAMHAUS_XBL2 = "127.0.0.6"; - RBL_SPAMHAUS_XBL3 = "127.0.0.7"; - RBL_SPAMHAUS_PBL = "127.0.0.10"; - RBL_SPAMHAUS_PBL1 = "127.0.0.11"; + RBL_SPAMHAUS_PBL = ["127.0.0.10", "127.0.0.11"]; RBL_SPAMHAUS_DROP = "127.0.0.9"; } } spamhaus_xbl { - symbol = "RECEIVED_SPAMHAUS_XBL"; - rbl = "xbl.spamhaus.org"; + symbol = "RECEIVED_SPAMHAUS"; + rbl = "zen.spamhaus.org"; ipv6 = true; received = true; from = false; ignore_whitelists = true; + returncodes { + RECEIVED_SPAMHAUS_XBL = ["127.0.0.4", "127.0.0.5", + "127.0.0.6", "127.0.0.7"]; + } } spamhaus_swl {