Reset spam-filter training
Reset learning when training is unsuitable or poisoned, or when a drastic change in spam patterns calls for fresh learning. This is separate from removing a sender block.
- Open Spam AutoShield → Settings.
- Check Apply actions to and the exact servers.
- Choose Reset training data, read the confirmation, and run it only when that reset is intended.
- Wait for each final result. Plan new training and monitor filtering afterwards.
For dataset training, follow Train spam filter. Canceling later training does not erase learning already applied.
Command-line method
Section titled “Command-line method”From a root terminal on the intended mail server, run:
cpfence --reset-rspamd-training-dataThe command asks whether to permanently delete Redis database 0. Confirm its ownership and arrange a usable Redis backup first if recovery is required. Answer y or yes only when this server’s complete reset is intended; press Enter or answer N to cancel.
Read the final output. A Redis or authentication error is not a completed reset; review the cause before trying again. The command acts on this server, not the WebUI’s Apply actions to selection.
