From f7817011cd0fa1d593ffae453f3802f51a1d977e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 14 May 2018 14:00:49 +0100 Subject: [PATCH] [Conf] Add MSBL proposed return codes --- conf/modules.d/emails.conf | 14 +++++++++++++- conf/scores.d/surbl_group.conf | 6 ++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/conf/modules.d/emails.conf b/conf/modules.d/emails.conf index accdd4d2d..74a67cf46 100644 --- a/conf/modules.d/emails.conf +++ b/conf/modules.d/emails.conf @@ -22,13 +22,25 @@ emails { dnsbl = "email.rspamd.com"; check_replyto = true; hash = "blake2"; + returncodes = { + RSPAMD_EMAILBL = "127.0.0.2"; + } } MSBL_EBL { dnsbl = "ebl.msbl.org"; domain_only = false; check_replyto = true; hash = "sha1"; - expect_ip = "127.0.0.2"; + returncodes = { + MSBL_EBL = [ + "127.0.0.2", + "127.0.0.3" + ]; + MSBL_EBL_GREY = [ + "127.0.1.2", + "127.0.1.3" + ]; + } } } .include(try=true,priority=5) "${DBDIR}/dynamic/emails.conf" diff --git a/conf/scores.d/surbl_group.conf b/conf/scores.d/surbl_group.conf index 839c68e61..9605df5c0 100644 --- a/conf/scores.d/surbl_group.conf +++ b/conf/scores.d/surbl_group.conf @@ -57,6 +57,12 @@ symbols = { one_shot = true; } + "MSBL_EBL_GREY" { + weight = 0.5; # TODO: test it + description = "MSBL emailbl grey list"; + one_shot = true; + } + "SEM_URIBL_UNKNOWN" { weight = 0.0; description = "Spameatingmonkey uribl: unknown result"; -- 2.39.5