Go to file
andryyy 8513fabc85 Remove private files 2016-12-09 21:11:09 +01:00
data Remove private files 2016-12-09 21:11:09 +01:00
.gitignore Some changes 2016-12-09 21:10:11 +01:00
README.md Fix parameter 2016-12-09 20:40:57 +01:00
build-all.sh mailcow dockerized 2016-12-09 20:39:02 +01:00
build-dovecot.sh Fix messages and rebuild without cache 2016-12-09 20:52:19 +01:00
build-memcached.sh Fix messages and rebuild without cache 2016-12-09 20:52:19 +01:00
build-mysql.sh Fix messages and rebuild without cache 2016-12-09 20:52:19 +01:00
build-network.sh mailcow dockerized 2016-12-09 20:39:02 +01:00
build-nginx.sh Some changes 2016-12-09 21:10:11 +01:00
build-php-fpm.sh Fix messages and rebuild without cache 2016-12-09 20:52:19 +01:00
build-postfix.sh Fix messages and rebuild without cache 2016-12-09 20:52:19 +01:00
build-redis.sh Fix messages and rebuild without cache 2016-12-09 20:52:19 +01:00
build-rmilter.sh Fix messages and rebuild without cache 2016-12-09 20:52:19 +01:00
build-rspamd.sh Fix messages and rebuild without cache 2016-12-09 20:52:19 +01:00
build-sogo.sh Fix messages and rebuild without cache 2016-12-09 20:52:19 +01:00
fix-permissions.sh mailcow dockerized 2016-12-09 20:39:02 +01:00
mailcow.conf Some changes 2016-12-09 21:10:11 +01:00
print-status.sh mailcow dockerized 2016-12-09 20:39:02 +01:00

README.md

mailcow-dockerized

Configuration

  1. Open mailcow.conf and change stuff, do not touch versions, do not use special chars in passwords for now.

  2. ./build-all.sh

Done.

The default username for mailcow is admin with password moohoo.

Usage

build-*.files

(Re)build a container:

./build-$name.sh 

Any previous container with the same name will be stopped and removed. No persistent data is deleted at any time. If an image exists, you will be asked wether or not to repull/rebuild it.

MySQL

Connect to MySQL database:

./build-mysql.sh --client

Init schema (will also be installed when running ./build-mysql.sh without parameters):

./build-mysql.sh --init-schema

Reset mailcow admin to admin:moohoo:

./build-mysql.sh --reset-admin

Redis

Connect to redis database:

./build-mysql.sh client

rspamd

Use rspamadm:

docker exec -it rspamd-mailcow /bin/bash -c "rspamadm --help"

Use rspamc:

docker exec -it rspamd-mailcow /bin/bash -c "rspamc --help"

Set rspamd controller password:

docker exec -it rspamd-mailcow /bin/bash -c "rspamadm pw"

Copy given hash to data/conf/rspamd/override.d/worker-controller.inc:

...
enable_password = "myhash";
....

Remove persistent data

MySQL:

docker stop mysql-mailcow
docker rm mysql-mailcow
rm -rf data/db/mysql/*
./build-mysql.sh

Redis:

# If you feel hardcore:
docker stop redis-mailcow
docker rm redus-mailcow
rm -rf data/db/redis/*
./build-redis.sh

## It is almost always enough to just flush all keys:
./build-redis client
# FLUSHALL [ENTER]