Hello,
I see two warns in the rspamd logs:
rspamd_worker_guard_handler: workaround for shutdown enabled, please update your client, this support might be removed in future
2018-05-24 11:16:29 #20195(normal) <adf61f>; lua; neural.lua:492: cannot learn ANN tRFANND41F6CDA875D14DB260: too many ham samples: 40
I disable the autolearn in the statistic.conf:
classifier "bayes" {
tokenizer {
name = "osb";
}
backend = "redis";
servers = "
127.0.0.1:6379";
db = 3;
#min_tokens = 11;
#min_learns = 200;
#autolearn = [-5, 15];
#autolearn = true;
per_user = <<EOD
return function(task)
local rcpt = task:get_recipients(1)
if rcpt then
one_rcpt = rcpt[1]
if one_rcpt['domain'] then
return one_rcpt['domain']
end
end
return nil
end
EOD
statfile {
symbol = "BAYES_HAM";
spam = false;
}
statfile {
symbol = "BAYES_SPAM";
spam = true;
}
learn_condition =<<EOD
return function(task, is_spam, is_unlearn)
local prob = task:get_mempool():get_variable('bayes_prob', 'double')
if prob then
local in_class = false
local cl
if is_spam then
cl = 'spam'
in_class = prob >= 0.95
else
cl = 'ham'
in_class = prob <= 0.05
end
if in_class then
return false,string.format('already in class %s; probability %.2f%%',
cl, math.abs((prob - 0.5) * 200.0))
end
end
return true
end
EOD
}
the service is working very well but I want to know if these warnings can be harmful to my system
regards