Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
howto:useful_commands [2019/10/06 05:33]
Stephane de Labrusse [RPM's]
howto:useful_commands [2019/10/19 12:08] (current)
Stephane de Labrusse [Test rspamd by the command line]
Line 401: Line 401:
  
 https://​github.com/​NethServer/​dev/​issues/​5755#​issuecomment-492547473 https://​github.com/​NethServer/​dev/​issues/​5755#​issuecomment-492547473
 +
 +==== RESET bayes data====
 +
 +https://​mailcow.github.io/​mailcow-dockerized-docs/​u_e-rspamd/#​reset-learned-data
 +
 +You need to delete keys in Redis to reset learned mail, so create a copy of your Redis database now:
 +
 +Backup database
 +
 +
 +# It is better to stop Redis before you copy the file.
 +cp /​var/​lib/​docker/​volumes/​mailcowdockerized_redis-vol-1/​_data/​dump.rdb /root/
 +Reset Bayes data
 +
 +
 +docker-compose exec redis-mailcow sh -c '​redis-cli --scan --pattern BAYES_* | xargs redis-cli del'
 +docker-compose exec redis-mailcow sh -c '​redis-cli --scan --pattern RS* | xargs redis-cli del'
 +If it complains about...
 +
 +
 +(error) ERR wrong number of arguments for '​del'​ command
 +...the key pattern was not found and thus no data is available to delete.
 ====== Specific To Nethserver ====== ====== Specific To Nethserver ======