From 1b2731d6e6e1dbf3368f8270a1cbd566ce24fa08 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 8 Oct 2020 17:03:39 +0200 Subject: [PATCH] [Rspamd] Add reputation plugin, remove deprecated plugins --- data/conf/rspamd/local.d/groups.conf | 17 +++++++++++++++++ data/conf/rspamd/local.d/reputation.conf | 10 ++++++++++ 2 files changed, 27 insertions(+) create mode 100644 data/conf/rspamd/local.d/reputation.conf diff --git a/data/conf/rspamd/local.d/groups.conf b/data/conf/rspamd/local.d/groups.conf index 7172b6b5..ef599ef3 100644 --- a/data/conf/rspamd/local.d/groups.conf +++ b/data/conf/rspamd/local.d/groups.conf @@ -31,3 +31,20 @@ group "MX" { one_shot = true; } } + +group "reputation" { + symbols = { + "IP_REPUTATION_HAM" { + weight = 1.0; + } + "IP_REPUTATION_SPAM" { + weight = 4.0; + } + "SENDER_REP_HAM" { + weight = 1.0; + } + "SENDER_REP_SPAM" { + weight = 2.0; + } + } +} diff --git a/data/conf/rspamd/local.d/reputation.conf b/data/conf/rspamd/local.d/reputation.conf new file mode 100644 index 00000000..0e3d03eb --- /dev/null +++ b/data/conf/rspamd/local.d/reputation.conf @@ -0,0 +1,10 @@ +rules { + ip_reputation = { + selector "ip" { + } + backend "redis" { + servers = "redis"; + } + symbol = "IP_REPUTATION"; + } +}