Исходный код вики Docker: Установка Mailcow

Редактировал(а) Алексей Александрович Иванов 2025/12/11 13:34

Последние авторы
1 ===== Debian/Ubuntu:[[¶>>url:https://docs.mailcow.email/getstarted/install/#debianubuntu]] =====
2
3 {{{1. apt update apt install -y git openssl curl gawk coreutils grep jq}}}
4
5 2. apt update apt install docker-compose-plugin
6
7 == Installing mailcow ==
8
9 1. (((
10 Clone the repository:
11
12 {{{su
13 }}}
14
15 umask 0022
16
17 cd /opt
18
19 git clone https:~/~/github.com/mailcow/mailcow-dockerized cd mailcow-dockerized
20 )))
21 1. (((
22 Generate the configuration file:
23
24 {{{./generate_config.sh}}}
25 )))
26 1. (((
27 Adjust the configuration if necessary:
28
29 {{{
30 }}}
31
32 nano mailcow.conf
33
34
35 )))
36
37 == Starting mailcow[[¶>>url:https://docs.mailcow.email/getstarted/install/#starting-mailcow]] ==
38
39 docker compose pull docker compose up -d
40
41 You can now access **https:~/~/${MAILCOW_HOSTNAME}/admin** using the default credentials admin and the password moohoo.
42
43
44 Перенос почтового хранилища
45
46 cd /opt/mailcow-dockerized
47 docker compose down
48
49 mkdir -p /mnt/vmail/vmail_data
50
51 rsync -aHAX ~-~-info=progress2 /var/lib/docker/volumes/mailcowdockerized_vmail-vol-1/_data/ /mnt/vmail/vmail_data/
52
53 chown -R 5000:5000 /mnt/vmail/vmail_data
54 chmod -R 700 /mnt/vmail/vmail_data