Mailcow-dockerized: RSPAMD - howto reset statistics and reboot bayes training

Created on 4 Jul 2018  路  16Comments  路  Source: mailcow/mailcow-dockerized

Amazon mails for example have BAYES_SPAM(7.50)[100.00%]. I don't know what went wrong, but I would like to restart the bayes training. Is there somewhere a howto?
Thank you!

dunno support

Most helpful comment

# docker-compose stop rspamd-mailcow
# docker-compose exec redis-mailcow /bin/sh
/data # redis-cli KEYS *BAYES* | xargs redis-cli DEL
/data # redis-cli KEYS RS* | xargs redis-cli DEL
/data # exit
# docker-compose start rspamd-mailcow

馃憤

All 16 comments

Have you ever moved them from junk to inbox?

Yes I have ... always the same result 7.50

# docker-compose stop rspamd-mailcow
# docker-compose exec redis-mailcow /bin/sh
/data # redis-cli KEYS *BAYES* | xargs redis-cli DEL
/data # redis-cli KEYS RS* | xargs redis-cli DEL
/data # exit
# docker-compose start rspamd-mailcow

馃憤

Thank you for your help! Now it has to learn again ... then we will see!

The automatic learning of RSPAMD is useless. It also learns its own errors and produces unnecessary subsequent errors. We have used mailscanners for years and had always trained it manually, making the system almost unbeatable in detection rate. We had used it so that emails were forwarded to special mailboxes (spam@, no-spam@). I miss such a simple solution in Mailcow.
Currently the system is simply chaotic because we cannot use the move mechanism in mailcow mailboxes. Since there are no real mailboxes there are only alias mailboxes that forward to a larger internal mail server.
Tried to explain it here: https://github.com/mailcow/mailcow-dockerized/issues/1547 that there should be more mechanisms to use spam/ham learning.

Autolearn was disabled a few days ago.

A mailbox solution is probably possible, but I don't have much free time left at this moment...

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Will this ever be fixed?

Dont even know what you mean.

Hi, I meant the rspamd BAYES autolearing.
I found no way to disable auto learning in rspamd to stop it breaking bayes.

Ah. :) It is not active at this point. You can move mail from Junk to * (except for Trash) to learn it as ham or move any mail from * to Junk to learn it as spam.

Autolearn will be enabled with Rspamd 2.0, since it was improved a lot.

How did you disable bayes? In the local.d/bayes-classifier.conf? And which value did you set?

Disable autolearn? This is already disabled since a few months.

If you want to disable it, I recommend to just reduce the scores to 0 in data/conf/rspamd/local.d/statistics_group.conf.

Edit: And restart rspamd-mailcow. :)

Thanks!

Like this?

symbols = {
"BAYES_SPAM" {
weight = 0;
description = "Message probably spam, probability: ";
}
"BAYES_HAM" {
weight = 0;
description = "Message probably ham, probability: ";
}
}

Yes, should be fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schoebelh picture schoebelh  路  3Comments

CrAazZyMaN21 picture CrAazZyMaN21  路  3Comments

pgollor picture pgollor  路  3Comments

phipag picture phipag  路  3Comments

RogerSik picture RogerSik  路  3Comments