From: Vsevolod Stakhov Date: Tue, 24 Dec 2013 17:07:12 +0000 (+0000) Subject: Improve spamhaus RBL support. X-Git-Tag: 0.6.6~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b0f1587bb149bc7a1f4114a9ec5d5e4f301aaa9;p=thirdparty%2Frspamd.git Improve spamhaus RBL support. Submitted by: AL --- diff --git a/conf/metrics.conf b/conf/metrics.conf index 498defa40e..4db1e45a3c 100644 --- a/conf/metrics.conf +++ b/conf/metrics.conf @@ -322,21 +322,12 @@ metric { description = "One received header with 'bad' patterns inside"; name = "ONCE_RECEIVED_STRICT"; } - symbol { - weight = 2.0; - description = "From address is listed in zen spamhaus BL"; - name = "RBL_ZEN"; - } - symbol { - weight = 3.0; - description = "Received headers contains addresses from XBL spamhaus RBL"; - name = "RBL_XBL"; - } - symbol { - weight = 2.0; - description = "Received headers contains addresses from PBL spamhaus RBL"; - name = "RBL_PBL"; - } + symbol { name = "RBL_SPAMHAUS"; weight = 0.0; description = "From address is listed in zen"; } + symbol { name = "RBL_SPAMHAUS_SBL"; weight = 2.0; description = "From address is listed in zen sbl"; } + symbol { name = "RBL_SPAMHAUS_CSS"; weight = 2.0; description = "From address is listed in zen css"; } + symbol { name = "RBL_SPAMHAUS_XBL"; weight = 4.0; description = "From address is listed in zen xbl"; } + symbol { name = "RBL_SPAMHAUS_PBL"; weight = 2.0; description = "From address is listed in zen pbl"; } + symbol { name = "RECEIVED_SPAMHAUS_XBL"; weight = 3.0; description = "Received address is listed in zen pbl"; } symbol { weight = 2.0; description = "From address is listed in senderscore.com BL"; diff --git a/conf/modules.conf b/conf/modules.conf index dd619b0bfe..41296b7bf1 100644 --- a/conf/modules.conf +++ b/conf/modules.conf @@ -71,28 +71,34 @@ rbl { default_from = true; rbls { - spamhaus_zen { - symbol = "RBL_ZEN"; - rbl = "zen.spamhaus.org"; - ipv4 = true; - ipv6 = true; - } - spamhaus_pbl { - symbol = "RECEIVED_PBL"; - rbl = "pbl.spamhaus.org"; - ipv4 = true; - ipv6 = true; - received = true; - from = false; - } + + spamhaus { + symbol = "RBL_SPAMHAUS"; + rbl = "zen.spamhaus.org"; + ipv4 = true; + ipv6 = true; + unknown = false; + returncodes { + RBL_SPAMHAUS_SBL = "127.0.0.2"; + RBL_SPAMHAUS_CSS = "127.0.0.3"; + RBL_SPAMHAUS_XBL = "127.0.0.4"; + RBL_SPAMHAUS_XBL = "127.0.0.5"; + RBL_SPAMHAUS_XBL = "127.0.0.6"; + RBL_SPAMHAUS_XBL = "127.0.0.7"; + RBL_SPAMHAUS_PBL = "127.0.0.10"; + RBL_SPAMHAUS_PBL = "127.0.0.11"; + } + } + spamhaus_xbl { - symbol = "RECEIVED_XBL"; + symbol = "RECEIVED_SPAMHAUS_XBL"; rbl = "xbl.spamhaus.org"; ipv4 = true; ipv6 = true; received = true; from = false; } + mailspike { symbol = "RBL_MAILSPIKE"; rbl = "bl.mailspike.net";