summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-21 14:22:06 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-21 14:22:06 +0000
commit3dbdd23b75db057f7034cf48025c607c32fe11ff (patch)
treea9a44ed7545cb1e2d654084f822d719ee6e1fde6 /conf
parent8a0502e70cfb9ee9531403a29e637e3c451a157f (diff)
downloadrspamd-3dbdd23b75db057f7034cf48025c607c32fe11ff.tar.gz
rspamd-3dbdd23b75db057f7034cf48025c607c32fe11ff.zip
Rework spf module.
- Copy data to memory pool as cached record might be destroyed causing freed memory being passed to the protocol output (use after free). - Allow SPF_NEUTRAL policy to be handled separately. - Add R_SPF_NEUTRAL to the default config.
Diffstat (limited to 'conf')
-rw-r--r--conf/metrics.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/conf/metrics.conf b/conf/metrics.conf
index 283e4a735..5147cf00a 100644
--- a/conf/metrics.conf
+++ b/conf/metrics.conf
@@ -537,6 +537,11 @@ metric {
name = "R_SPF_SOFTFAIL";
}
symbol {
+ weight = 0.0;
+ description = "SPF policy is neutral";
+ name = "R_SPF_NEUTRAL";
+ }
+ symbol {
weight = -1.1;
description = "SPF verification alowed";
name = "R_SPF_ALLOW";