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

bsd at todoo.biz bsd at todoo.biz
Tue Apr 9 09:47:24 UTC 2019


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;
> }
> 
> group "fuzzy" {
>     max_score = 12.0;
>     symbol "LOCAL_FUZZY_UNKNOWN" {
>         weight = 1.0;
>         description = "Generic fuzzy hash match";
>     }
>     symbol "LOCAL_FUZZY_DENIED" {
>         weight = 6.0;
>         description = "Denied fuzzy hash";
>     }
>     symbol "LOCAL_FUZZY_PROB" {
>         weight = 5.0;
>         description = "Probable fuzzy hash";
>     }
>     symbol "LOCAL_FUZZY_WHITE" {
>         weight = -3.1;
>         description = "Whitelisted fuzzy hash";
>     }

Not really sure what to do from there on… 


Thanks for your help. 

---
DynFi 
6 rue Montmartre - 75001 Paris
web: https://www.dynfi.com






More information about the Users mailing list