Revert "[Rspamd] Use reputation plugin instead of ip_ and url_reputation"

This reverts commit 73e87068d8.
master
andryyy 2020-10-08 16:52:20 +02:00
parent 73e87068d8
commit d6688d918b
10 changed files with 50 additions and 11565 deletions

View File

@ -1,2 +0,0 @@
172.22.1.250/32
fd4d:6169:6c63:6f77::d/128

View File

@ -1,2 +0,0 @@
172.22.1.0/24
fd4d:6169:6c63:6f77::/64

View File

@ -1,2 +0,0 @@
172.22.1.12/32
fd4d:6169:6c63:6f77::10/128

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +0,0 @@
172.22.1.0/24
fd4d:6169:6c63:6f77::/64

View File

@ -31,20 +31,3 @@ 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;
}
}
}

View File

@ -0,0 +1,24 @@
# how each action is treated in scoring
actions {
reject = 1.0;
"add header" = 0.25;
"rewrite subject" = 0.25;
"no action" = 1.0;
}
# how each component is evaluated
scores {
asn = 0.5;
country = 0.1;
ipnet = 0.8;
ip = 1.0;
}
asn_prefix = "a:";
country_prefix = "c:";
hash = "ip_score";
ipnet_prefix = "n:";
lower_bound = 10;
metric = "default";
max_score = 10;
min_score = -5;
score_divisor = 10;
symbol = "IP_SCORE";

View File

@ -1,10 +0,0 @@
rules {
ip_reputation = {
selector "ip" {
}
backend "redis" {
servers = "redis";
}
symbol = "IP_REPUTATION";
}
}

View File

@ -0,0 +1,26 @@
# Key prefix for redis - default "Ur."
key_prefix = "Ur.";
# Symbols to insert - defaults as shown
symbols {
white = "URL_REPUTATION_WHITE";
black = "URL_REPUTATION_BLACK";
grey = "URL_REPUTATION_GREY";
neutral = "URL_REPUTATION_NEUTRAL";
}
# DKIM/DMARC/SPF allow symbols - defaults as shown
foreign_symbols {
dmarc = "DMARC_POLICY_ALLOW";
dkim = "R_DKIM_ALLOW";
spf = "R_SPF_ALLOW";
}
# SURBL metatags to ignore - default as shown
ignore_surbl = ["URIBL_BLOCKED", "DBL_PROHIBIT", "SURBL_BLOCKED"];
# Amount of samples required for scoring - default 5
threshold = 5;
# Maximum number of TLDs to update reputation on (default 1)
update_limit = 1;
# Maximum number of TLDs to query reputation on (default 100)
query_limit = 100;
# If true, try to find most 'relevant' URL (default true)
relevance = true;
enabled = true;

View File

@ -1 +0,0 @@
enable_password = "$2$sbs867o6ipcmx68qw5kishm39m9xqi5r$6t61dfmameywabgyjdtekhj85gdqgw7res5ygdwphozdcirfcr3y";