mailcow install(ft. docker)# E-Mail2024. 3. 28. 18:58
Table of Contents
728x90
반응형
[darksharavim]yum update
[darksharavim]yum install docker-compose-plugin
[darksharavim]docker -v
Docker version 26.0.2, build 3c863ff
[darksharavim]docker-compose -v
docker-compose version 1.29.2, build 5becea4
[darksharavim]su
# umask
0022 # <- Verify it is 0022
[darksharavim]cd /opt
[darksharavim]git clone https://github.com/mailcow/mailcow-dockerized
[darksharavim]cd mailcow-dockerized
[darksharavim]./generate_config.sh
Found Docker Compose Plugin (native).
Setting the DOCKER_COMPOSE_VERSION Variable to native
Notice: You´ll have to update this Compose Version via your Package Manager manually!
A config file exists and will be overwritten, are you sure you want to continue? [y/N] y
Press enter to confirm the detected value '[value]' where applicable or enter a custom value.
Mail server hostname (FQDN) - this is not your mail domain, but your mail servers hostname: mail.example.com
Timezone [Asia/Seoul]: Asia/Seoul
Which branch of mailcow do you want to use?
Available Branches:
- master branch (stable updates) | default, recommended [1]
- nightly branch (unstable updates, testing) | not-production ready [2]
Choose the Branch with it´s number [1/2] 1
Fetching origin
Already on 'master'
Generating snake-oil certificate...
Generating a 4096 bit RSA private key
.................................................................++
........................................................................................................++
writing new private key to 'data/assets/ssl-example/key.pem'
-----
Copying snake-oil certificate...
Detecting if your IP is listed on Spamhaus Bad ASN List...
Check completed! Your IP is clean
[darksharavim]docker-compose pull
## 아래와 같이 에러발생할 경우 ##
[darksharavim]docker-compose pull
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.nginx-mailcow.ports contains an invalid type, it should be a number, or an object
services.nginx-mailcow.ports contains an invalid type, it should be a number, or an object
## generate_config.sh 파일아래와 같이 수정 ##
HTTP_PORT=80
HTTP_BIND=0.0.0.0
HTTPS_PORT=443
HTTPS_BIND=0.0.0.0
[darksharavim]docker-compose pull
Pulling unbound-mailcow ... done
Pulling clamd-mailcow ... done
Pulling sogo-mailcow ... done
Pulling memcached-mailcow ... done
Pulling netfilter-mailcow ... done
Pulling redis-mailcow ... done
Pulling php-fpm-mailcow ... done
Pulling nginx-mailcow ... done
Pulling acme-mailcow ... done
Pulling mysql-mailcow ... done
Pulling postfix-mailcow ... done
Pulling dovecot-mailcow ... done
Pulling rspamd-mailcow ... done
Pulling watchdog-mailcow ... done
Pulling dockerapi-mailcow ... done
Pulling solr-mailcow ... done
Pulling olefy-mailcow ... done
Pulling ofelia-mailcow ... done
Pulling ipv6nat-mailcow ... done
[darksharavim]docker-compose up -d
## 아래와 같이 에러발생할 경우 ##
Creating network "mailcowdockerized_mailcow-network" with driver "bridge"
ERROR: Pool overlaps with other one on this address space
## 생성할려는 네트워크에 이미 충돌나는 네트워크가 있기때문에 발생 ##
## generate.sh 파일에서 네트워크 대역은 변경하면 해결됨 ##
IPV4_NETWORK=172.25.1
[darksharavim]docker-compose up -d
Creating network "mailcowdockerized_mailcow-network" with driver "bridge"
Creating volume "mailcowdockerized_vmail-vol-1" with default driver
Creating volume "mailcowdockerized_vmail-index-vol-1" with default driver
Creating volume "mailcowdockerized_mysql-vol-1" with default driver
Creating volume "mailcowdockerized_mysql-socket-vol-1" with default driver
Creating volume "mailcowdockerized_redis-vol-1" with default driver
Creating volume "mailcowdockerized_rspamd-vol-1" with default driver
Creating volume "mailcowdockerized_solr-vol-1" with default driver
Creating volume "mailcowdockerized_postfix-vol-1" with default driver
Creating volume "mailcowdockerized_crypt-vol-1" with default driver
Creating volume "mailcowdockerized_sogo-web-vol-1" with default driver
Creating volume "mailcowdockerized_sogo-userdata-backup-vol-1" with default driver
Creating volume "mailcowdockerized_clamd-db-vol-1" with default driver
Creating mailcowdockerized_unbound-mailcow_1 ... done
Creating mailcowdockerized_dockerapi-mailcow_1 ... done
Creating mailcowdockerized_memcached-mailcow_1 ... done
Creating mailcowdockerized_netfilter-mailcow_1 ... done
Creating mailcowdockerized_olefy-mailcow_1 ... done
Creating mailcowdockerized_sogo-mailcow_1 ... done
Creating mailcowdockerized_solr-mailcow_1 ... done
Creating mailcowdockerized_redis-mailcow_1 ... done
Creating mailcowdockerized_mysql-mailcow_1 ... done
Creating mailcowdockerized_php-fpm-mailcow_1 ... done
Creating mailcowdockerized_dovecot-mailcow_1 ...
Creating mailcowdockerized_nginx-mailcow_1 ...
Creating mailcowdockerized_nginx-mailcow_1 ... error
Creating mailcowdockerized_dovecot-mailcow_1 ... done
ERROR: for mailcowdockerized_nginx-mailcow_1 Cannot start service nginx-mailcow: driver failed programming external connectivity on endpoint mailcowdockerized_nginx-mailcow_1 (4d1857b432f3950b76101425a8648c8a990c370acc3b048e87f6855b677d5144): Bind for 0.0.0.0:443 failed: port is already allocated
Creating mailcowdockerized_ofelia-mailcow_1 ... done
Creating mailcowdockerized_rspamd-mailcow_1 ... done
Creating mailcowdockerized_postfix-mailcow_1 ... done
Creating mailcowdockerized_clamd-mailcow_1 ... done
ERROR: for nginx-mailcow Cannot start service nginx-mailcow: driver failed programming external connectivity on endpoint mailcowdockerized_nginx-mailcow_1 (4d1857b432f3950b76101425a8648c8a990c370acc3b048e87f6855b677d5144): Bind for 0.0.0.0:443 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
## 443포트가 이미 사용중이라 충돌나서 에러 발생 ##
## 포트 변경하면 해결됨 ##
[darksharavim]docker-compose up -d
Creating network "mailcowdockerized_mailcow-network" with driver "bridge"
Creating volume "mailcowdockerized_vmail-vol-1" with default driver
Creating volume "mailcowdockerized_vmail-index-vol-1" with default driver
Creating volume "mailcowdockerized_mysql-vol-1" with default driver
Creating volume "mailcowdockerized_mysql-socket-vol-1" with default driver
Creating volume "mailcowdockerized_redis-vol-1" with default driver
Creating volume "mailcowdockerized_rspamd-vol-1" with default driver
Creating volume "mailcowdockerized_solr-vol-1" with default driver
Creating volume "mailcowdockerized_postfix-vol-1" with default driver
Creating volume "mailcowdockerized_crypt-vol-1" with default driver
Creating volume "mailcowdockerized_sogo-web-vol-1" with default driver
Creating volume "mailcowdockerized_sogo-userdata-backup-vol-1" with default driver
Creating volume "mailcowdockerized_clamd-db-vol-1" with default driver
Creating mailcowdockerized_netfilter-mailcow_1 ... done
Creating mailcowdockerized_sogo-mailcow_1 ... done
Creating mailcowdockerized_olefy-mailcow_1 ... done
Creating mailcowdockerized_memcached-mailcow_1 ... done
Creating mailcowdockerized_dockerapi-mailcow_1 ... done
Creating mailcowdockerized_unbound-mailcow_1 ... done
Creating mailcowdockerized_solr-mailcow_1 ... done
Creating mailcowdockerized_redis-mailcow_1 ... done
Creating mailcowdockerized_mysql-mailcow_1 ... done
Creating mailcowdockerized_php-fpm-mailcow_1 ... done
Creating mailcowdockerized_dovecot-mailcow_1 ... done
Creating mailcowdockerized_nginx-mailcow_1 ... done
Creating mailcowdockerized_rspamd-mailcow_1 ... done
Creating mailcowdockerized_ofelia-mailcow_1 ... done
Creating mailcowdockerized_acme-mailcow_1 ... done
Creating mailcowdockerized_clamd-mailcow_1 ... done
Creating mailcowdockerized_postfix-mailcow_1 ... done
Creating mailcowdockerized_watchdog-mailcow_1 ... done
Creating mailcowdockerized_ipv6nat-mailcow_1 ... done
## 초기암호 ##
ID : admin
PW : moohoo
##############
728x90
반응형
'# E-Mail' 카테고리의 다른 글
qmail install(ft. centos7x) (0) | 2024.11.15 |
---|---|
550-5.7.1 is: duplicate To headers (0) | 2022.12.06 |
550-5.7.1 Messages missing a valid messageId header are not (0) | 2022.10.27 |
curl이용 imap 및 pop3 접속체크 (0) | 2022.09.23 |
curl smtp command (0) | 2022.09.23 |
@다크쉐라빔 :: 다크쉐라빔의 주절주절
안녕하세요. 이곳은 IT위주의 잡다한 정보를 올려두는 개인 블로그입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!