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

bsd at todoo.biz bsd at todoo.biz
Wed Apr 10 07:58:05 UTC 2019



> Le 9 avr. 2019 à 23:26, Tim Harman via Users <users at lists.rspamd.com> a écrit :
> 
> 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

I have changed my metrics.conf and syntax is "ok"… 

> root at dynmail:/etc/rspamd/local.d# rspamadm configtest
> symbol 'LOCAL_FUZZY_DENIED' has its score defined but there is no corresponding rule registered
> symbol 'LOCAL_FUZZY_WHITE' has its score defined but there is no corresponding rule registered
> symbol 'LOCAL_FUZZY_UNKNOWN' has its score defined but there is no corresponding rule registered
> symbol 'SBL_URIBL' has its score defined but there is no corresponding rule registered
> symbol 'RAMBLER_URIBL' has its score defined but there is no corresponding rule registered
> symbol 'RAMBLER_EMAILBL' has its score defined but there is no corresponding rule registered
> symbol 'RBL_ABUSECH' has its score defined but there is no corresponding rule registered
> symbol 'LOCAL_FUZZY_PROB' has its score defined but there is no corresponding rule registered
> syntax OK


When i trigger the script I still have the same problem : 

> root at dynmail:/etc/rspamd/local.d# rspamadm configwizard statistics
> 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]};

I am stuck with this problem. 

Thanks for your support. 

> -- 
> Users mailing list
> Users at lists.rspamd.com <mailto:Users at lists.rspamd.com>
> https://lists.rspamd.com/mailman/listinfo/users <https://lists.rspamd.com/mailman/listinfo/users>


More information about the Users mailing list