[Rspamd-Users] Converting old bayes to redis does not seem to work
Tim Harman
tim at muppetz.com
Tue Apr 9 21:26:58 UTC 2019
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
More information about the Users
mailing list