Repository navigation
Document the Rspamd Bayes database reset procedure - #291
Merged
Merged
Conversation
Resetting the Bayesian classifier required knowledge of the Redis keys used by Rspamd and of the volume layout, which was not documented anywhere. Administrators had no safe way to start the training over after a corpus mistake. Describe how to snapshot the persistent Redis DB, drop the Bayes keys and the learn cache, verify the learn counters, and roll back to the snapshot if needed. The learn cache must be dropped too, otherwise re-training with the original corpus is silently skipped. Assisted-by: Claude Code:claude-opus-5
7 of 15 tasks
stephdl
approved these changes
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a README section describing how to reset the Rspamd Bayesian
classifier, so administrators can start the training over after a bad
corpus.
The procedure covers:
redis-cli --rdbRS_*,BAYES_*, the bareRScounterkey) plus the
learned_*learn cache — without the latter,re-training with the original corpus is silently skipped as
"already learned"
rspamc-wrapper statwould otherwise be carried in the module backup set through
volumes/rspamd-redisDocumentation only, no code changes.
Refs NethServer/dev#8138