From e24862bdae65f5eb13b918b9ffa82e4d3c835661 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 20 Apr 2017 21:11:49 +0200 Subject: [PATCH] New reset admin routine --- docs/u_and_e.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/u_and_e.md b/docs/u_and_e.md index 3f52b05e..c0a7a804 100644 --- a/docs/u_and_e.md +++ b/docs/u_and_e.md @@ -75,7 +75,7 @@ Beware that a mailbox user can login to mailcow and override a domain policy fil Make your changes in `data/Dockerfiles/$service` and build the image locally: ``` -docker build data/Dockerfiles/service -t andryyy/mailcow-dockerized:$service +docker build data/Dockerfiles/service -t mailcow/$service ``` Now auto-recreate modified containers: @@ -311,14 +311,11 @@ Running `docker-compose down -v` will **destroy all mailcow: dockerized volumes* ## Reset admin password Reset mailcow admin to `admin:moohoo`: -1\. Drop admin table ``` -source mailcow.conf -docker-compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} -e "DROP TABLE admin;" +cd mailcow_path +bash reset_admin.sh ``` -2\. Open mailcow UI to auto-init the db - ## Rspamd ### Learn spam and ham