[Rspamd-Users] "you are using old bayes schema for redis statistics" forever
Tim Harman
tim at muppetz.com
Thu Nov 29 22:21:36 UTC 2018
On 30/11/2018 11:15 am, Sophie Loewenthal wrote:
> Hi Tim,
>
> # rspamadm configtest
> unknown element in actions section: metrics
> syntax OK
>
> This is in configdump:
>
> metric {
> }
>
> But in
>
> # cat actions.conf
> reject = 14;
> add_header = 6;
> rewrite_subject = 6;
> subject = "***SPAM*** %s";
> greylist = null;
>
> metrics {
> symbol "MX_INVALID" {
> score = 1.0;
> description = "No connectable MX";
> one_shot = "true"; }
> symbol "MX_MISSING" {
> score = 1.5;
> description = "No MX record";
> one_shot = "true"; }
> symbol "MX_GOOD" {
> score = -0.5;
> description = "MX was ok";
> one_shot = "true"; }
> }
>
> Any idea how should this metrics { ... symbols ...} be amended?
>
> Best,
> Sophie
According to metrics.conf we're not supposed to be using it anymore:
less metrics.conf
# DEPRECATION WARNING!!
# This file is deprecated since 1.7
# Please use actions.conf and groups.conf files instead
metric {
name = "default";
.include(try=true; priority=1; duplicate=merge)
"$LOCAL_CONFDIR/local.d/metrics.conf"
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/metrics.conf"
}
I have the following in my local.d/rbl_group.conf
symbols {
"RBL_WPBL" {
description = "Listed in WPBL";
weight = 2.0;
}
"RBL_BARRACUDA" {
description = "Listed in Barracuda";
weight = 2.0;
}
"RBL_SPAMCOP" {
description = "Listed in Spamcop";
weight = 2.0;
}
"RBL_COBION" {
description = "Listed in IBM DNS Blacklist (Cobion)";
weight = 2.0;
}
}
More information about the Users
mailing list