[Rspamd-Users] Converting old bayes to redis does not seem to work

Bill Pye bill.pye at phoenix-systems.co.uk
Wed Apr 10 06:05:17 UTC 2019


----- Original Message -----
> From: "Users" <users at lists.rspamd.com>
> To: "Users" <users at lists.rspamd.com>
> Cc: "Tim Harman" <tim at muppetz.com>
> Sent: Tuesday, 9 April, 2019 23:26:58
> Subject: Re: [Rspamd-Users] Converting old bayes to redis does not seem to work

> On 09/04/2019 9:47 pm, bsd--- via Users wrote:
>> Hello !
>> 
>> I have been trying to move from old bayes classification to redis
>> because :
>> 
>>> 2019-04-09 11:10:28 #24918(controller) <hmjsyh>; cfg;
>>> rspamd_redis_parse_classifier_opts: you are using old bayes schema for
>>> redis statistics, please consider converting it to a new one by using
>>> 'rspamadm configwizard statistics'
>> 
>> 
>> When trying to convert the bayes schema to new redis, I have the
>> following error :
>> 
>>> root at dynmail:/etc/rspamd/local.d# rspamadm configwizard statistics
>>> unknown element in actions section: soft_reject
>>> call to rspamadm lua script failed (2):
>>> /usr/share/rspamd/lualib/lua_redis.lua:313: attempt to index local
>>> 'rspamd_config' (a nil value); trace:
>>> [1]:{/usr/share/rspamd/lualib/lua_redis.lua:443 -
>>> try_load_redis_servers [Lua]};
>>> [2]:{/usr/share/rspamd/lualib/rspamadm//configwizard.lua:452 -
>>> check_redis_classifier [Lua]};
>>> [3]:{/usr/share/rspamd/lualib/rspamadm//configwizard.lua:652 -
>>> setup_statistic [Lua]};
>>> [4]:{/usr/share/rspamd/lualib/rspamadm//configwizard.lua:786 -
>>> <unknown> [Lua]};
>> 
>> My actions are as follow (in /etc/rspamd/local.d/metrics.conf) :
>> 
>>> actions {
>>>   reject = 13;
>>>   soft_reject = 7;
>>>   rewrite_subject = 8;
>>>   add_header = 6;
>>>   greylist = 4;
>>> }
> 
> soft_reject isn't a valid entry in the actions section:
> 
> -!- rspamd/local.d » cat actions.conf
> # Change to null to disable
> add_header = 6;
> # Greylist
> greylist = 4;
> soft_reject = 9;
> -!- rspamd/local.d » rspamadm configtest
> unknown element in actions section: soft_reject
> syntax OK
> --
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users

I may be slightly confused here but isn't "greylist" a soft reject? I see that in my log files for greylisted email as follows:

2019-04-09 07:15:23 #123082(normal) <feb400>; task; rspamd_add_passthrough_result: <20190408221503.6689C872118CE3B6 at adomain.com>: set pre-result to soft reject (no score): 'Try again later' from greylist(1)

Regards


Bill


More information about the Users mailing list