[Rspamd-Users] "you are using old bayes schema for redis statistics" forever
Sophie Loewenthal
sophie at klunky.co.uk
Thu Nov 29 22:26:00 UTC 2018
"# Please use actions.conf and groups.conf files instead"
Except my metrics are defined in the actions.conf file!
Now there is a /etc/rspamd/metrics.conf that came with the distribution. Should I delete this? It has the same content as yours.
> On 29 Nov 2018, at 23:21, Tim Harman via Users <users at lists.rspamd.com> wrote:
>
> 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;
> }
> }
> --
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users
More information about the Users
mailing list