Skip to content

Commit

Permalink
Reputation configuration, replace ip_score
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Dec 5, 2019
1 parent 66162c7 commit ba1101e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
44 changes: 44 additions & 0 deletions 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";
}
}
11 changes: 11 additions & 0 deletions 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";
}
}

0 comments on commit ba1101e

Please sign in to comment.