[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

This commit is contained in:
andre.peters
2017-12-09 09:08:18 +01:00
parent c8f41cdae2
commit 873222d5f8
13 changed files with 172 additions and 23 deletions

View File

@@ -1,4 +1,8 @@
MX_IMPLICIT {
expression = "MX_GOOD and MX_MISSING";
score = -0.01;
expression = "MX_GOOD and MX_MISSING";
score = -0.01;
}
VIRUS_FOUND {
expression = "CLAM_VIRUS & !MAILCOW_WHITE";
score = 2000;
}

View File

@@ -1,14 +1,4 @@
rules {
DKIM_FAIL {
action = "add header";
expression = "R_DKIM_REJECT & !MAILLIST & !MAILCOW_WHITE & !MAILCOW_BLACK";
require_action = ["no action", "greylist", "soft reject"];
}
VIRUS_FOUND {
action = "reject";
expression = "CLAM_VIRUS & !MAILCOW_WHITE";
honor_action = ["reject"];
}
WHITELIST_FORWARDING_HOST_NO_REJECT {
action = "add header";
expression = "WHITELISTED_FWD_HOST";
@@ -19,9 +9,4 @@ rules {
expression = "WHITELISTED_FWD_HOST";
require_action = ["greylist", "soft reject"];
}
ADD_UNAUTH_SUBJ {
action = "rewrite subject";
subject = "[Unauth] %s";
expression = "SPOOFED_SENDER";
}
}

View File

@@ -7,8 +7,7 @@ classifier "bayes" {
servers = "redis:6379";
min_tokens = 11;
min_learns = 20;
autolearn = true;
autolearn = [-20, 50];
per_user = <<EOD
return function(task)
local rcpt = task:get_recipients(1)