New reset admin routine

master
andryyy 2017-04-20 21:11:49 +02:00
parent d0d87ead49
commit e24862bdae
1 changed files with 3 additions and 6 deletions

View File

@ -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: 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: Now auto-recreate modified containers:
@ -311,14 +311,11 @@ Running `docker-compose down -v` will **destroy all mailcow: dockerized volumes*
## Reset admin password ## Reset admin password
Reset mailcow admin to `admin:moohoo`: Reset mailcow admin to `admin:moohoo`:
1\. Drop admin table
``` ```
source mailcow.conf cd mailcow_path
docker-compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} -e "DROP TABLE admin;" bash reset_admin.sh
``` ```
2\. Open mailcow UI to auto-init the db
## Rspamd ## Rspamd
### Learn spam and ham ### Learn spam and ham