From 4680e7c733f51c8c6f36f63dd9e67f4acadbd127 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 2 Sep 2019 16:40:46 +0100 Subject: [PATCH] [Conf] Remove surbl parts, fix hash_format attribute --- conf/modules.d/rbl.conf | 10 +++- conf/modules.d/surbl.conf | 105 -------------------------------------- 2 files changed, 8 insertions(+), 107 deletions(-) diff --git a/conf/modules.d/rbl.conf b/conf/modules.d/rbl.conf index d6919b655..e92ed945d 100644 --- a/conf/modules.d/rbl.conf +++ b/conf/modules.d/rbl.conf @@ -19,6 +19,12 @@ rbl { default_exclude_users = true; default_unknown = true; + url_whitelist = [ + "https://maps.rspamd.com/rspamd/surbl-whitelist.inc.zst", + "${DBDIR}/surbl-whitelist.inc.local", + "fallback+file://${CONFDIR}/surbl-whitelist.inc" + ]; + rbls { spamhaus { @@ -163,7 +169,7 @@ rbl { RSPAMD_EMAILBL { ignore_defaults = true; emails_delimiter = "."; - hash_type = "base32"; + hash_format = "base32"; hash_len = 32; rbl = "email.rspamd.com"; replyto = true; @@ -232,7 +238,7 @@ rbl { urls = true; hash = 'blake2'; hash_len = 32; - hash_type = 'base32'; + hash_format = 'base32'; returncodes = { RSPAMD_URIBL = [ diff --git a/conf/modules.d/surbl.conf b/conf/modules.d/surbl.conf index a64256f10..89b8842a6 100644 --- a/conf/modules.d/surbl.conf +++ b/conf/modules.d/surbl.conf @@ -1,111 +1,6 @@ # Deprecated, use RBL module! surbl { - whitelist = [ - "https://maps.rspamd.com/rspamd/surbl-whitelist.inc.zst", - "${DBDIR}/surbl-whitelist.inc.local", - "fallback+file://${CONFDIR}/surbl-whitelist.inc" - ]; - rules { - "SURBL_MULTI" { - suffix = "multi.surbl.org"; - check_dkim = true; - check_emails = true; - bits { - CRACKED_SURBL = 128; # From February 2016 - ABUSE_SURBL = 64; - MW_SURBL_MULTI = 16; - PH_SURBL_MULTI = 8; - SURBL_BLOCKED = 1; - } - } - "URIBL_MULTI" { - suffix = "multi.uribl.com"; - check_dkim = true; - check_emails = true; - bits { - URIBL_BLOCKED = 1; - URIBL_BLACK = 2; - URIBL_GREY = 4; - URIBL_RED = 8; - } - } - "RSPAMD_URIBL" { - suffix = "uribl.rspamd.com"; - check_dkim = true; - check_emails = true; - process_script =<