Hi Community,

I have moved my mailcow installation to a different server, slightly changing the settings. Now I want to reset rspamd history and settings. How can I accomplish that? I’ve reset the training data, but not been able to reset the whole history of processed mails.

  • # docker-compose exec redis-mailcow redis-cli
    127.0.0.1:6379> del rs_historyrspamd_zst
    (integer) 1
    127.0.0.1:6379> del rs_history
    (integer) 1
    127.0.0.1:6379>

    Delete blacklists, whitelists and score thresholds:

    # source mailcow.conf
    # docker-compose exec mysql-mailcow mysql -umailcow -p$DBPASS mailcow
    MariaDB [mailcow]> delete from filterconf;

    Deleting settings: Well, you will know what you changed, right? If not, git fetch ; git checkout origin/master data/conf/rspamd ; docker-compose restart rspamd-mailcow

    Perhaps you need to delete the Rspamd volume:

    docker-compose down
    docker volume rm mailcowdockerized_rspamd-vol-1
    docker-compose up -d
# docker-compose exec redis-mailcow redis-cli
127.0.0.1:6379> del rs_historyrspamd_zst
(integer) 1
127.0.0.1:6379> del rs_history
(integer) 1
127.0.0.1:6379>

Delete blacklists, whitelists and score thresholds:

# source mailcow.conf
# docker-compose exec mysql-mailcow mysql -umailcow -p$DBPASS mailcow
MariaDB [mailcow]> delete from filterconf;

Deleting settings: Well, you will know what you changed, right? If not, git fetch ; git checkout origin/master data/conf/rspamd ; docker-compose restart rspamd-mailcow

Perhaps you need to delete the Rspamd volume:

docker-compose down
docker volume rm mailcowdockerized_rspamd-vol-1
docker-compose up -d

    Have something to say?

    Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

    No one is typing