From ba1101eba4fa23bb8a36a382fea665073d40df39 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 4 Dec 2019 15:52:53 +0100 Subject: [PATCH] Reputation configuration, replace ip_score --- filter/etc/rspamd/local.d/reputation.conf | 44 +++++++++++++++++++ .../etc/rspamd/scores.d/nethserver_group.conf | 11 +++++ 2 files changed, 55 insertions(+) create mode 100644 filter/etc/rspamd/local.d/reputation.conf create mode 100644 filter/etc/rspamd/scores.d/nethserver_group.conf diff --git a/filter/etc/rspamd/local.d/reputation.conf b/filter/etc/rspamd/local.d/reputation.conf new file mode 100644 index 00000000..b3eb7020 --- /dev/null +++ b/filter/etc/rspamd/local.d/reputation.conf @@ -0,0 +1,44 @@ +# +# This file will be overwritten by the next rpm update +# use /etc/rspamd/override.d/file.conf' - to override the defaults +# +# local.d/reputation.conf +rules { + ip_reputation = { + selector "ip" { + } + backend "redis" { + servers = "/var/run/redis-rspamd/rspamd"; + } + + symbol = "IP_REPUTATION"; + } + spf_reputation = { + selector "spf" { + } + backend "redis" { + servers = "/var/run/redis-rspamd/rspamd"; + } + + symbol = "SPF_REPUTATION"; + } + dkim_reputation = { + selector "dkim" { + } + backend "redis" { + servers = "/var/run/redis-rspamd/rspamd"; + } + + symbol = "DKIM_REPUTATION"; # Also adjusts scores for DKIM_ALLOW, DKIM_REJECT + } + generic_reputation = { + selector "generic" { + selector = "ip"; # see https://rspamd.com/doc/configuration/selectors.html + } + backend "redis" { + servers = "/var/run/redis-rspamd/rspamd"; + } + + symbol = "GENERIC_REPUTATION"; + } +} diff --git a/filter/etc/rspamd/scores.d/nethserver_group.conf b/filter/etc/rspamd/scores.d/nethserver_group.conf new file mode 100644 index 00000000..75b17186 --- /dev/null +++ b/filter/etc/rspamd/scores.d/nethserver_group.conf @@ -0,0 +1,11 @@ +# +# This file will be overwritten by the next rpm update +# use /etc/rspamd/local.d/nethserver_group.conf' - to override the defaults +# + +symbols = { + "IP_REPUTATION" { + score = 0.0; + description = "IP reputation"; + } +}