computer-playbook/roles/server_docker-mailu
2023-06-29 14:29:58 +02:00
..
handlers Refactored docker roles 2023-04-26 11:52:11 +02:00
meta Implemented telegram notifications 2023-05-28 22:17:33 +02:00
tasks Refactored 2023-04-26 14:38:02 +02:00
templates Changed mysql to mariadb 2023-06-21 12:56:28 +02:00
vars Merged client playbook and server playbook 2023-04-18 14:52:43 +02:00
README.md Added testing links 2023-06-29 14:29:58 +02:00

role server_docker-mailu

setup

bugs

fetchmail

Fetchmail doesn't work with big amounts of data. For further information see this issue: https://github.com/Mailu/Mailu/issues/1719.

deactivation

If you have fetchmail installed and want to deinstall it keep in mind to delete all fetched accounts from the administration panel before you delete fetchmail.

security concerns

The german wikipedia tells that there are some security concern with fetchmail. If in the future a customer needs to functions of fetchmail, it could be better to write a docker container for getmail instead because it should be more secure.

workaround

If you need to receive emails from another account this should help:

  • Redirect to your new email account
  • Export all data from your original account
  • Import all data from your original account to your new account

delete data

To delete all volumes and data execute:

  rm -vr /etc/mailu/; docker volume rm $(docker volume ls -q | grep mailu_)

Be careful!

ports

Keep in mind to change the conflicting ports manual. Execute

  netstat -tulpn

to verify that there aren't port conflicts

admin account

Before you can use Mailu, you must create the primary administrator user account. This should be admin@{{hostname}}. Use the following command, changing PASSWORD to your liking:

  docker-compose -p mailu exec admin flask mailu admin {{admin}} {{hostname}} PASSWORD

cli user management

How to manage users is described here: https://mailu.io/master/cli.html

Up

  docker-compose -p mailu up -d

debug

database

database access

To access the database execute

  docker exec -it mailu-database-1 mysql -u root -D mailu -p

mailu_front_1

sudo docker container exec -it mailu_front_1 /bin/bash

restart everything

sudo docker restart mailu_smtp_1 mailu_imap_1 mailu_antispam_1 mailu_redis_1 mailu_webdav_1 mailu_front_1 mailu_database_1 mailu_webmail_1 mailu_admin_1 mailu_antivirus_1

resend queued mails

docker-compose exec -it smtp postqueue -f

test

update

For update instructions follow:

todo

See