With great help from chris on tg this seems to be solved. I donāt know the docker fu and that was the biggest fear in migrating to mailcow so Iām not sure what really happened and how but this is how it was solved
- docker-compose down complained it cannot something something network
[root@mailcow mailcow-dockerized]# docker-compose down
Stopping mailcowdockerized_netfilter-mailcow_1 ... done
Stopping mailcowdockerized_rspamd-mailcow_1 ... done
Stopping mailcowdockerized_acme-mailcow_1 ... done
Stopping mailcowdockerized_nginx-mailcow_1 ... done
Stopping mailcowdockerized_dovecot-mailcow_1 ... done
Stopping mailcowdockerized_postfix-mailcow_1 ... done
Stopping mailcowdockerized_php-fpm-mailcow_1 ... done
Stopping mailcowdockerized_mysql-mailcow_1 ... done
Stopping mailcowdockerized_watchdog-mailcow_1 ... done
Stopping mailcowdockerized_redis-mailcow_1 ... done
Stopping mailcowdockerized_memcached-mailcow_1 ... done
Stopping mailcowdockerized_unbound-mailcow_1 ... done
Stopping mailcowdockerized_dockerapi-mailcow_1 ... done
Stopping mailcowdockerized_ejabberd-mailcow_1 ... done
Stopping mailcowdockerized_sogo-mailcow_1 ... done
Stopping mailcowdockerized_olefy-mailcow_1 ... done
Stopping mailcowdockerized_solr-mailcow_1 ... done
Stopping mailcowdockerized_clamd-mailcow_1 ... done
Removing mailcowdockerized_ipv6nat-mailcow_1 ... done
Removing mailcowdockerized_netfilter-mailcow_1 ... done
Removing mailcowdockerized_rspamd-mailcow_1 ... done
Removing mailcowdockerized_acme-mailcow_1 ... done
Removing mailcowdockerized_nginx-mailcow_1 ... done
Removing mailcowdockerized_dovecot-mailcow_1 ... done
Removing mailcowdockerized_postfix-mailcow_1 ... done
Removing mailcowdockerized_php-fpm-mailcow_1 ... done
Removing mailcowdockerized_mysql-mailcow_1 ... done
Removing mailcowdockerized_watchdog-mailcow_1 ... done
Removing mailcowdockerized_redis-mailcow_1 ... done
Removing mailcowdockerized_memcached-mailcow_1 ... done
Removing mailcowdockerized_unbound-mailcow_1 ... done
Removing mailcowdockerized_dockerapi-mailcow_1 ... done
Removing mailcowdockerized_ejabberd-mailcow_1 ... done
Removing mailcowdockerized_sogo-mailcow_1 ... done
Removing mailcowdockerized_olefy-mailcow_1 ... done
Removing mailcowdockerized_solr-mailcow_1 ... done
Removing mailcowdockerized_clamd-mailcow_1 ... done
Removing network mailcowdockerized_mailcow-network
ERROR: error while removing network: network mailcowdockerized_mailcow-network id eb786536748d6682573275b9d38e97c07a6657256be1986b4588bdb8ac33d615 has active endpoints
so this āERROR: error while removing network: network mailcowdockerized_mailcow-network id eb786536748d6682573275b9d38e97c07a6657256be1986b4588bdb8ac33d615 has active endpointsā gave Chris idea to ask for docker ps so I did
[root@mailcow mailcow-dockerized]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b6f0b7756109 mailcow/watchdog:1.91 "/bin/sh -c '/watchdā¦" 12 hours ago Up About an hour mailcow-dockerized_watchdog-mailcow_2
90cd1e59b908 mailcow/dockerapi:1.38 "python3 -u /app/docā¦" 12 hours ago Up About an hour mailcow-dockerized_dockerapi-mailcow_2
e7343936c4ab memcached:alpine "docker-entrypoint.sā¦" 12 hours ago Up About an hour 11211/tcp mailcow-dockerized_memcached-mailcow_2
cc59cb867dc4 mailcow/olefy:1.7 "python3 -u /app/oleā¦" 12 hours ago Up About an hour mailcow-dockerized_olefy-mailcow_2
632cdbda35c3 mailcow/clamd:1.39 "/sbin/tini -g -- /cā¦" 12 hours ago Up About an hour mailcow-dockerized_clamd-mailcow_2
and here we see some *_2 containers that should not exist. How they came to be no one knows, he mentioned āswarmā but I never did anything similar so ā¦ why/how no clue but to fix this these needed to be nuked so:
[root@mailcow mailcow-dockerized]# docker stop b6f0b7756109
b6f0b7756109
[root@mailcow mailcow-dockerized]# docker rm b6f0b7756109
b6f0b7756109
[root@mailcow mailcow-dockerized]# docker stop 90cd1e59b908
90cd1e59b908
[root@mailcow mailcow-dockerized]# docker rm 90cd1e59b908
90cd1e59b908
[root@mailcow mailcow-dockerized]# docker stop e7343936c4ab
e7343936c4ab
[root@mailcow mailcow-dockerized]# docker rm e7343936c4ab
e7343936c4ab
[root@mailcow mailcow-dockerized]# docker stop cc59cb867dc4
cc59cb867dc4
[root@mailcow mailcow-dockerized]# docker rm cc59cb867dc4
cc59cb867dc4
[root@mailcow mailcow-dockerized]# docker stop 632cdbda35c3
632cdbda35c3
[root@mailcow mailcow-dockerized]# docker rm 632cdbda35c3
632cdbda35c3
[root@mailcow mailcow-dockerized]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@mailcow mailcow-dockerized]#
now, stop works great and start gets us where we need to be
[root@mailcow mailcow-dockerized]# docker-compose down --remove-orphans
Removing network mailcowdockerized_mailcow-network
[root@mailcow mailcow-dockerized]# docker-compose up -d
Creating network "mailcowdockerized_mailcow-network" with driver "bridge"
Creating mailcowdockerized_watchdog-mailcow_1 ... done
Creating mailcowdockerized_sogo-mailcow_1 ... done
Creating mailcowdockerized_clamd-mailcow_1 ... done
Creating mailcowdockerized_ejabberd-mailcow_1 ... done
Creating mailcowdockerized_dockerapi-mailcow_1 ... done
Creating mailcowdockerized_redis-mailcow_1 ... done
Creating mailcowdockerized_olefy-mailcow_1 ... done
Creating mailcowdockerized_unbound-mailcow_1 ... done
Creating mailcowdockerized_memcached-mailcow_1 ... done
Creating mailcowdockerized_solr-mailcow_1 ... done
Creating mailcowdockerized_mysql-mailcow_1 ... done
Creating mailcowdockerized_php-fpm-mailcow_1 ... done
Creating mailcowdockerized_postfix-mailcow_1 ... done
Creating mailcowdockerized_dovecot-mailcow_1 ... done
Creating mailcowdockerized_nginx-mailcow_1 ... done
Creating mailcowdockerized_acme-mailcow_1 ... done
Creating mailcowdockerized_rspamd-mailcow_1 ... done
Creating mailcowdockerized_netfilter-mailcow_1 ... done
Creating mailcowdockerized_ipv6nat-mailcow_1 ... done
[root@mailcow mailcow-dockerized]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c930ad5cfc56 mailcow/netfilter:1.41 "python3 -u /server.ā¦" 13 seconds ago Up 13 seconds mailcowdockerized_netfilter-mailcow_1
b32c94a10353 mailcow/rspamd:1.76 "/docker-entrypoint.ā¦" 13 seconds ago Up 13 seconds mailcowdockerized_rspamd-mailcow_1
59a6a072e70b mailcow/acme:1.78 "/sbin/tini -g -- /sā¦" 13 seconds ago Up 13 seconds mailcowdockerized_acme-mailcow_1
effd20ae0e03 nginx:mainline-alpine "/docker-entrypoint.ā¦" 14 seconds ago Up 11 seconds 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp mailcowdockerized_nginx-mailcow_1
723f213af5a7 mailcow/postfix:1.61 "/docker-entrypoint.ā¦" 15 seconds ago Up 14 seconds 0.0.0.0:25->25/tcp, 0.0.0.0:465->465/tcp, 0.0.0.0:587->587/tcp, 588/tcp mailcowdockerized_postfix-mailcow_1
268cfb1099ad mailcow/dovecot:1.145 "/docker-entrypoint.ā¦" 15 seconds ago Up 13 seconds 0.0.0.0:110->110/tcp, 0.0.0.0:143->143/tcp, 0.0.0.0:993->993/tcp, 0.0.0.0:995->995/tcp, 0.0.0.0:4190->4190/tcp, 127.0.0.1:19991->12345/tcp mailcowdockerized_dovecot-mailcow_1
bdd3b2a0c8fa mailcow/phpfpm:1.75 "/docker-entrypoint.ā¦" 15 seconds ago Up 14 seconds 9000/tcp mailcowdockerized_php-fpm-mailcow_1
a2bb9f5228a9 mariadb:10.5 "docker-entrypoint.sā¦" 15 seconds ago Up 15 seconds 127.0.0.1:13306->3306/tcp mailcowdockerized_mysql-mailcow_1
6a35a3393266 mailcow/solr:1.7 "docker-entrypoint.sā¦" 17 seconds ago Up 15 seconds 127.0.0.1:18983->8983/tcp mailcowdockerized_solr-mailcow_1
6919596827fc memcached:alpine "docker-entrypoint.sā¦" 17 seconds ago Up 15 seconds 11211/tcp mailcowdockerized_memcached-mailcow_1
40882d80925f redis:5-alpine "docker-entrypoint.sā¦" 17 seconds ago Up 15 seconds 127.0.0.1:7654->6379/tcp mailcowdockerized_redis-mailcow_1
d0eae2aa8753 mailcow/olefy:1.7 "python3 -u /app/oleā¦" 17 seconds ago Up 15 seconds mailcowdockerized_olefy-mailcow_1
80fddfd6709d mailcow/unbound:1.13 "/docker-entrypoint.ā¦" 17 seconds ago Up 15 seconds 53/tcp, 53/udp mailcowdockerized_unbound-mailcow_1
ecfa1637a618 mailcow/dockerapi:1.38 "python3 -u /app/docā¦" 17 seconds ago Up 16 seconds mailcowdockerized_dockerapi-mailcow_1
e9ba2ce9db55 mailcow/ejabberd:1.5 "/docker-entrypoint.ā¦" 17 seconds ago Up 15 seconds 1883/tcp, 0.0.0.0:5222->5222/tcp, 4369-4399/tcp, 0.0.0.0:5269->5269/tcp, 5280/tcp, 0.0.0.0:5443->5443/tcp mailcowdockerized_ejabberd-mailcow_1
c53bbb1ce8d2 mailcow/watchdog:1.91 "/bin/sh -c '/watchdā¦" 17 seconds ago Up 16 seconds mailcowdockerized_watchdog-mailcow_1
f21844b96345 mailcow/sogo:1.99 "/docker-entrypoint.ā¦" 17 seconds ago Up 15 seconds mailcowdockerized_sogo-mailcow_1
61bbf9056629 mailcow/clamd:1.39 "/sbin/tini -g -- /cā¦" 17 seconds ago Up 15 seconds mailcowdockerized_clamd-mailcow_1
[root@mailcow mailcow-dockerized]#
issue solved, no more dying clamav nor olefy
how this happened in the first place - still no clue, the history is rather clean:
basic setup
59 yum install python3 python3-libs python3-pip python3-setuptools
60 curl -L "https://github.com/docker/compose/releases/download/1.29.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
61 docker-compose
62 chmod a+x /usr/local/bin/docker-compose
63 docker-compose
64 docker-compose --version
65 systemctl enable docker.service
66 systemctl restart docker.service
67 yum install container-selinux
68 docker info | grep selinux
69 docker info
70 vi /etc/docker/daemon.json
71 systemctl restart docker.service
72 docker info
73 docker info | grep selinux
install mailcow
74 cd /opt
75 umask
76 git clone https://github.com/mailcow/mailcow-dockerized
77 cd mailcow-dockerized/
78 ls -la
79 ./generate_config.sh
80 vi mailcow.conf
81 docker-compose pull
82 docker-compose up -d
83 netstat -antu | grep 25
84 yum whatprovides */netstat
85 yum install net-tools
86 netstat -antu | grep 25
87 netstat -antup | grep 25
88 ps ax | grep 1062
89 rpm -qf /usr/libexec/postfix/master
90 yum remove postfix
91 systemctl status postfix
92 ps ax | grep master
93 docker-compose up -d
94 docker volume ls
95 docker-compose down
96 docker-compose up -d
97 docker volume ls
98 cd /opt
99 ls
100 cd mailcow-dockerized/
101 git pull
102 ./update.sh
103 ./update.sh --gc
104 docker system prune
105 docker volume ls
106 sync
And now I $#%^^%&#^ it up:
114 cd /opt/mailcow-dockerized/
116 docker-compose restart acme-mailcow
117 docker-compose logs --tail=200 -f acme-mailcow
118 vi mailcow.conf
119 git pull
120 git status
121 git pull
122 docker-compose up -d
123 docker-compose restart acme-mailcow
146 cd data
147 cd conf/
150 cd postfix/
154 vi main.cf
157 vi master.cf
162 vi allow_mailcow_local.regexp
163 vi anonymize_headers.pcre
164 vi custom_transport.pcre
165 vu smtp_dsn_filter
166 vi smtp_dsn_filter
171 cd ..
173 cd ..
175 docker-compose up -d
176 docker-compose logs --tail="all" -f postfix-mailcow
177 docker-compose logs --tail="all" -f postfix-mailcow | grep getipass.com
178 docker-compose logs --tail="all" -f postfix-mailcow | grep getipass
179 docker-compose logs --tail="all" -f postfix-mailcow
180 docker-compose logs --tail -f postfix-mailcow
181 docker-compose logs --tail="all" -f postfix-mailcow
182 docker-compose up -d
183 docker-compose down
184 systemctl restart docker
185 docker-compose down
186 docker-compose up -d
187 docker-compose logs --tail="all" -f postfix-mailcow
188 cd /opt/mailcow-dockerized/
191 vi mailcow.conf
192 vi docker-compose.yml
193 vi mailcow.conf
194 vi docker-compose.yml
204 vi data/conf/postfix/custom_postscreen_whitelist.cidr
205 docker-compose up -d
213 systemctl status firewalld
228 yum install bind-utils
231 cd /opt/mailcow-dockerized/
233 docker-compose logs --tail="all" -f postfix-mailcow
234 docker-compose logs --tail="all" -f postfix-mailcow | grep xyz
235 docker-compose logs --tail="all" | grep xyz
239 docker-compose logs --tail="all" -f rspamd
240 docker-compose logs --tail=1 postfix-mailcow dovecot-mailcow rspamd-mailcow
241 docker-compose logs --tail=1 postfix-mailcow dovecot-mailcow rspamd-mailcow -f
242 docker-compose logs --tail=1 -f postfix-mailcow dovecot-mailcow rspamd-mailcow
256 docker-compose logs --tail=1 -f postfix-mailcow dovecot-mailcow rspamd-mailcow
271 cd data/
273 cd conf/postfix/
275 vi master.cf
277 vi master.cf
278 docker-compose up -d
284 firewall-cmd --list-all
285 firewall-cmd --permanent --zone=public --add-port=2525/tcp
286 firewall-cmd --permanent --zone=public --add-port=2526/tcp
287 cd /opt/mailcow-dockerized/data/conf/postfix/
289 vi main.cf
290 vi master.cf
291 firewall-cmd --permanent --zone=public --add-port=10025/tcp
292 cd ..
293 docker-compose up -d
295 cd data/conf/postfix/
297 vi main.cf
298 vi master.cf
300 cd ..
302 cd ..
304 vi docker-compose.yml
305 docker-compose up -d
307 vi data/conf/postfix/master.cf
308 docker-compose up -d
309 telnet localhost 2525
310 vi data/conf/postfix/master.cf
311 docker-compose up -d
313 reboot
317 cd /opt/mailcow-dockerized/
318 docker-compose logs --tail=1 -f postfix-mailcow dovecot-mailcow rspamd-mailcow
319 sync
320 cd /opt/mailcow-dockerized/
321 git diff
326 shutdown -rf now
331 cd /opt/mailcow-dockerized/
Trying to fix it:
335 git checkout docker-compose.yml
336 vi docker-compose.yml
337 git checkout data/conf/postfix/master.cf
338 docker-compose up -d
339 git diff
340 cd /opt/mailcow-dockerized/
341 sync
342 reboot
343 w
344 ps ax
345 cd /opt/mailcow-dockerized/
346 git pull
347 firewall-cmd --list-all
348 git pull
349 docker-compose logs --tail=1 -f clamd-mailcow
350 docker-compose logs --tail=1 -f clamd-mailcow olefy-mailcow
351 git diff
352 vi docker-compose.yml
353 git diff
354 ls
355 ./update.sh
356 docker-compose up -d
357 docker-compose down
358 systemctl restart docker
359 docker-compose down
360 docker-compose up -d
361 docker-compose down
362 reboot
363 uptime
364 date
365 cd /opt/mailcow-dockerized/
366 docker-compose down
367 systemctl restart docker
368 docker-compose down
369 docker-compose up -d
370 vi docker-compose.yml
371 touch docker-compose.override.yml
372 vi docker-compose.override.yml
373 docker-compose down
374 systemctl stop docker
375 ps ax | grep dock
376 docker-compose up -d
377 vi data/conf/unbound/unbound.conf
378 docker-compose restart unbound-mailcow
379 vi data/conf/postfix/extra.cf
380 docker-compose restart postfix-mailcow
381 docker-compose logs --tail=1 -f clamd-mailcow
382 history
383 git diff
384 free -m
385 df -h
386 dmesg
387 tail -f /var/log/messages
388 ps ax
389 ps ax | grep ole
390 yum install sysstat
391 cd /var/log
392 grep -i oom messages
393 dmesg | grep -i oom
394 dmesg | grep -i "out of memory"
395 dmesg | grep -i "memory"
396 vi /etc/selinux/config
397 docker --version
398 docker-compose --version
399 containerd --version
400 ctr --address /var/run/docker/containerd/containerd.sock version
401 sync
402 ls -la
403 pwd
And finally, the fix:
404 cd /opt/mailcow-dockerized/
405 ls -la
406 docker-compose down
407 docker ps
408 docker-compose down --remove-orphans
409 docker ps
410 docker stop b6f0b7756109
411 docker rm b6f0b7756109
412 docker stop 90cd1e59b908
413 docker rm 90cd1e59b908
414 docker stop e7343936c4ab
415 docker rm e7343936c4ab
416 docker stop cc59cb867dc4
417 docker rm cc59cb867dc4
418 docker stop 632cdbda35c3
419 docker rm 632cdbda35c3
420 docker ps
421 docker-compose down --remove-orphans
422 docker-compose up -d
423 docker ps
424 docker ps | grep _2
425 docker-compose logs --tail=1 -f olefy-mailcow clamd-mailcow