Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual learning is not working according to bayes db #123

Open
s256 opened this issue Apr 28, 2020 · 3 comments
Open

Manual learning is not working according to bayes db #123

s256 opened this issue Apr 28, 2020 · 3 comments

Comments

@s256
Copy link

s256 commented Apr 28, 2020

After a fresh install there should be an empty bayes db, by marking quarantined messages as spam or ham this db should fill slowly but steadily.

This does not happen according to sa-learn --username=vmail --dump magic

So I decided to make an initial learning with
sa-learn --ham --username=vmail /usr/share/doc/spamassassin/examples/sample-nonspam.txt.gz
and
sa-learn --spam --username=vmail /usr/share/doc/spamassassin/examples/sample-spam.txt

Resulting in:

sa-learn --username=vmail --dump magic 
0.000          0          3          0  non-token data: bayes db version
0.000          0          1         0  non-token data: nspam
0.000          0          1          0  non-token data: nham
0.000          0        547          0  non-token data: ntokens
0.000          0  987802486          0  non-token data: oldest atime
0.000          0 1058995800          0  non-token data: newest atime
0.000          0          0          0  non-token data: last journal sync atime
0.000          0          0          0  non-token data: last expiry atime
0.000          0          0          0  non-token data: last expire atime delta
0.000          0          0          0  non-token data: last expire reduction count

Now I again marked mails in quarantine spam or ham and was expecting to see changes in the bayes db. After a couple of mails and some minutes waiting I just saw the same output.

Nothing changed in the bayes db. This seems not right.

I activated debug and started modoboa via manage.py runserver but there was no exception. Everything seems normal.

Let me know if I can provide more information.

@tonioo
Copy link
Member

tonioo commented May 18, 2020

@s256 Can you copy your settings here please?

@s256
Copy link
Author

s256 commented Jun 2, 2020

Sorry, I can't. I disabled and removed the amavisd including the amavis plugin for modoboa. I'm using rspamd now. So I can only offer the django config.

With all the open issues regarding the amavis plugin I didn't feel comfortable using it in production.
Currently I don't have a dev instance. I'll let you know as soon as I have the time to set one up again.

@tonioo You must have a running modoboa instance don't you? is it working for you?

@tonioo
Copy link
Member

tonioo commented Jun 9, 2020

@s256 Unfortunately I'm not using the amavis plugin...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants