-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Description
Contribution guidelines
- I've read the contribution guidelines and wholeheartedly agree
Checklist prior issue creation
- I understand that failure to follow below instructions may cause this issue to be closed.
- I understand that vague, incomplete or inaccurate information may cause this issue to be closed.
- I understand that this form is intended solely for reporting software bugs and not for support-related inquiries.
- I understand that all responses are voluntary and community-driven, and do not constitute commercial support.
- I confirm that I have reviewed previous issues to ensure this matter has not already been addressed.
- I confirm that my environment meets all prerequisite requirements as specified in the official documentation.
Description
I 've mentioned this before in Telegram only to be told this was impossible. Apparently I wasn't the only one to have this issue as you can see here #6795 As its causing duplicate entries, it causes dns issues as you can see below. Unable to access Webui.
Steps to reproduce:
- This seems to happen at random. Not sure entirely sure what causes it.
- I could be possible when I run docker compose down; docker compose up -d
- I have two mail cow instances setup on two different networks. The other network does not do this.
- The affected instance is up to date.
- AND no, I didn't put these entries in myself....
Logs:
netfilter-mailcow-1 | # Warning: table ip filter is managed by iptables-nft, do not touch!
netfilter-mailcow-1 | # Warning: table ip nat is managed by iptables-nft, do not touch!
netfilter-mailcow-1 | # Warning: table ip6 filter is managed by iptables-nft, do not touch!
netfilter-mailcow-1 | # Warning: table ip6 nat is managed by iptables-nft, do not touch!
netfilter-mailcow-1 | 2026-01-04 00:37:02 INFO: Using NFTables backend
netfilter-mailcow-1 | 2026-01-04 00:37:02 INFO: Clearing all bans
netfilter-mailcow-1 | 2026-01-04 00:37:02 INFO: Initializing mailcow netfilter chain
netfilter-mailcow-1 | 2026-01-04 00:37:02 INFO: Setting MAILCOW isolation
netfilter-mailcow-1 | 2026-01-04 00:37:02 INFO: Watching Redis channel F2B_CHANNEL
netfilter-mailcow-1 | 2026-01-04 00:37:02 INFO: Denylist was changed, it has 1 entries
netfilter-mailcow-1 | 2026-01-04 00:37:02 CRIT: Added host/network 81.30.107.0/24 to denylist
unbound-mailcow-1 | 2026-01-04 00:42:03: Healthcheck: DNS Resolution Failed on attempt 2 for hub.docker.com! Trying again...
unbound-mailcow-1 | 2026-01-04 00:42:05: Healthcheck: DNS Resolution Failed on attempt 3 for hub.docker.com! Trying again...
unbound-mailcow-1 | 2026-01-04 00:42:05: Healthcheck: DNS Resolution not possible after 3 attempts for hub.docker.com... Gave up!
unbound-mailcow-1 | 2026-01-04 00:42:05: Healthcheck: Too many DNS failures (1 failures allowed, you got 3 failures), marking Healthcheck as unhealthy...
Temp fix: Go and clean up iptables.
Long term fix, I would imagine [#6795 ](https://github.com/mailcow/mailcow-dockerized/issues/6795)
Which branch are you using?
master (stable)
Which architecture are you using?
x86_64
Operating System:
running Ubuntu 24.04.3 LTS
Server/VM specifications:
CPU 8x Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
Is Apparmor, SELinux or similar active?
Yes
Virtualization technology:
None
Docker version:
Docker version 29.1.3, build f52814d
docker-compose version or docker compose version:
Docker Compose version v5.0.1
mailcow version:
2025-12a
Reverse proxy:
Zoraxy (https://github.com/tobychui/zoraxy)
Logs of git diff:
NA
Logs of iptables -L -vn:
Chain INPUT (policy DROP 7127 packets, 1324K bytes)
num pkts bytes target prot opt in out source destination
1 161K 188M MAILCOW 0 -- * * 0.0.0.0/0 0.0.0.0/0 /* mailcow */
2 162K 188M MAILCOW 0 -- * * 0.0.0.0/0 0.0.0.0/0 /* mailcow */
3 20529 165M ACCEPT 0 -- lo * 0.0.0.0/0 0.0.0.0/0
4 133K 21M ACCEPT 0 -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
5 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
6 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
7 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:53
8 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
9 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110
10 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143
11 6 312 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
12 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:465
13 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:587
14 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:873
15 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:993
16 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:995
17 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:4190
18 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:4080
19 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:7443
20 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8084
21 1 60 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8000
22 103 6180 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9090
23 0 0 ACCEPT 17 -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:53
24 0 0 ACCEPT 17 -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:11335
25 0 0 ACCEPT 17 -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:11445
26 406 37080 ACCEPT 17 -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:137
27 576 139K ACCEPT 17 -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:138
28 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:139
29 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:445
30 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9880
31 0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9443
Chain FORWARD (policy DROP 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 915K 337M MAILCOW 0 -- * * 0.0.0.0/0 0.0.0.0/0 /* mailcow */
2 881K 335M DOCKER-USER 0 -- * * 0.0.0.0/0 0.0.0.0/0
3 881K 335M DOCKER-FORWARD 0 -- * * 0.0.0.0/0 0.0.0.0/0
4 0 0 MAILCOW 0 -- * * 0.0.0.0/0 0.0.0.0/0 /* mailcow */
Chain OUTPUT (policy ACCEPT 176K packets, 420M bytes)
num pkts bytes target prot opt in out source destination
Chain DOCKER (4 references)
num pkts bytes target prot opt in out source destination
1 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.13 tcp dpt:3306
2 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.250 tcp dpt:12345
3 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.250 tcp dpt:4190
4 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.250 tcp dpt:995
5 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.250 tcp dpt:993
6 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.250 tcp dpt:143
7 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.250 tcp dpt:110
8 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.253 tcp dpt:587
9 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.253 tcp dpt:465
10 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.253 tcp dpt:25
11 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.249 tcp dpt:6379
12 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.3 tcp dpt:8084
13 0 0 ACCEPT 6 -- !br-mailcow br-mailcow 0.0.0.0/0 172.22.1.3 tcp dpt:7443
14 10 600 ACCEPT 6 -- !br-964aff83e1dd br-964aff83e1dd 0.0.0.0/0 172.18.0.2 tcp dpt:80
15 0 0 ACCEPT 6 -- !br-05a342260808 br-05a342260808 0.0.0.0/0 172.19.0.2 tcp dpt:8000
16 88679 4613K ACCEPT 6 -- !br-05a342260808 br-05a342260808 0.0.0.0/0 172.19.0.2 tcp dpt:443
17 258 14823 ACCEPT 6 -- !br-05a342260808 br-05a342260808 0.0.0.0/0 172.19.0.2 tcp dpt:80
18 0 0 DROP 0 -- !br-05a342260808 br-05a342260808 0.0.0.0/0 0.0.0.0/0
19 0 0 DROP 0 -- !br-964aff83e1dd br-964aff83e1dd 0.0.0.0/0 0.0.0.0/0
20 0 0 DROP 0 -- !br-mailcow br-mailcow 0.0.0.0/0 0.0.0.0/0
21 0 0 DROP 0 -- !docker0 docker0 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-BRIDGE (1 references)
num pkts bytes target prot opt in out source destination
1 88937 4628K DOCKER 0 -- * br-05a342260808 0.0.0.0/0 0.0.0.0/0
2 10 600 DOCKER 0 -- * br-964aff83e1dd 0.0.0.0/0 0.0.0.0/0
3 0 0 DOCKER 0 -- * br-mailcow 0.0.0.0/0 0.0.0.0/0
4 0 0 DOCKER 0 -- * docker0 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-CT (1 references)
num pkts bytes target prot opt in out source destination
1 64193 34M ACCEPT 0 -- * br-05a342260808 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
2 87 18449 ACCEPT 0 -- * br-964aff83e1dd 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
3 20479 8057K ACCEPT 0 -- * br-mailcow 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
4 0 0 ACCEPT 0 -- * docker0 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
Chain DOCKER-FORWARD (1 references)
num pkts bytes target prot opt in out source destination
1 881K 335M DOCKER-CT 0 -- * * 0.0.0.0/0 0.0.0.0/0
2 796K 293M DOCKER-INTERNAL 0 -- * * 0.0.0.0/0 0.0.0.0/0
3 796K 293M DOCKER-BRIDGE 0 -- * * 0.0.0.0/0 0.0.0.0/0
4 668K 286M ACCEPT 0 -- br-05a342260808 * 0.0.0.0/0 0.0.0.0/0
5 0 0 ACCEPT 0 -- br-964aff83e1dd * 0.0.0.0/0 0.0.0.0/0
6 39100 2539K ACCEPT 0 -- br-mailcow * 0.0.0.0/0 0.0.0.0/0
7 0 0 ACCEPT 0 -- docker0 * 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-INTERNAL (1 references)
num pkts bytes target prot opt in out source destination
Chain DOCKER-USER (1 references)
num pkts bytes target prot opt in out source destination
Chain MAILCOW (4 references)
num pkts bytes target prot opt in out source destination
1 0 0 DROP 0 -- * * 81.30.107.0/24 0.0.0.0/0
2 0 0 DROP 6 -- !br-mailcow br-mailcow 0.0.0.0/0 0.0.0.0/0 /* mailcow isolation */
3 0 0 DROP 0 -- * * 81.30.107.0/24 0.0.0.0/0
4 34035 1991K DROP 6 -- !br-mailcow br-mailcow 0.0.0.0/0 0.0.0.0/0 /* mailcow isolation */
Logs of ip6tables -L -vn:
Chain INPUT (policy DROP 3434 packets, 516K bytes)
num pkts bytes target prot opt in out source destination
1 3414 510K MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
2 3436 516K MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
3 3436 516K MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
4 3436 516K MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
5 3436 516K MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
6 3436 516K MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
7 2 152 ACCEPT 0 -- lo * ::/0 ::/0
8 0 0 ACCEPT 0 -- * * ::/0 ::/0 ctstate RELATED,ESTABLISHED
9 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:22
10 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:25
11 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:53
12 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:80
13 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:110
14 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:143
15 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:443
16 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:465
17 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:587
18 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:873
19 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:993
20 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:995
21 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:4190
22 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:4080
23 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:7443
24 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:8084
25 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:8000
26 0 0 ACCEPT 6 -- * * ::/0 ::/0 tcp dpt:9090
27 0 0 ACCEPT 17 -- * * ::/0 ::/0 udp dpt:53
28 0 0 ACCEPT 17 -- * * ::/0 ::/0 udp dpt:11335
29 0 0 ACCEPT 17 -- * * ::/0 ::/0 udp dpt:11445
Chain FORWARD (policy DROP 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 0 0 MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
2 0 0 DOCKER-USER 0 -- * * ::/0 ::/0
3 0 0 DOCKER-FORWARD 0 -- * * ::/0 ::/0
4 0 0 MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
5 0 0 MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
6 0 0 MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
7 0 0 MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
8 0 0 MAILCOW 0 -- * * ::/0 ::/0 /* mailcow */
Chain OUTPUT (policy ACCEPT 16026 packets, 1045K bytes)
num pkts bytes target prot opt in out source destination
Chain DOCKER (0 references)
num pkts bytes target prot opt in out source destination
Chain DOCKER-BRIDGE (1 references)
num pkts bytes target prot opt in out source destination
Chain DOCKER-CT (1 references)
num pkts bytes target prot opt in out source destination
Chain DOCKER-FORWARD (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 DOCKER-CT 0 -- * * ::/0 ::/0
2 0 0 DOCKER-INTERNAL 0 -- * * ::/0 ::/0
3 0 0 DOCKER-BRIDGE 0 -- * * ::/0 ::/0
Chain DOCKER-INTERNAL (1 references)
num pkts bytes target prot opt in out source destination
Chain DOCKER-USER (1 references)
num pkts bytes target prot opt in out source destination
Chain MAILCOW (12 references)
num pkts bytes target prot opt in out source destination
Logs of iptables -L -vn -t nat:
Chain PREROUTING (policy ACCEPT 32031 packets, 3244K bytes)
pkts bytes target prot opt in out source destination
94263 4900K DOCKER 0 -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
Chain INPUT (policy ACCEPT 334 packets, 42583 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 3493 packets, 176K bytes)
pkts bytes target prot opt in out source destination
0 0 DOCKER 0 -- * * 0.0.0.0/0 !127.0.0.0/8 ADDRTYPE match dst-type LOCAL
Chain POSTROUTING (policy ACCEPT 94074 packets, 4897K bytes)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE 0 -- * !docker0 172.17.0.0/16 0.0.0.0/0
1667 248K MASQUERADE 0 -- * !br-05a342260808 172.19.0.0/16 0.0.0.0/0
25686 1693K MASQUERADE 0 -- * !br-mailcow 172.22.1.0/24 0.0.0.0/0
0 0 MASQUERADE 0 -- * !br-964aff83e1dd 172.18.0.0/16 0.0.0.0/0
638 29499 MASQUERADE 0 -- * !br-442f00620afc 172.19.0.0/16 0.0.0.0/0
637 29439 MASQUERADE 0 -- * !br-cffb1adb3dda 172.18.0.0/16 0.0.0.0/0
0 0 MASQUERADE 0 -- * !br-847e5c2f7998 172.19.0.0/16 0.0.0.0/0
Chain DOCKER (2 references)
pkts bytes target prot opt in out source destination
267 15299 DNAT 6 -- !br-05a342260808 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 to:172.19.0.2:80
91589 4765K DNAT 6 -- !br-05a342260808 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 to:172.19.0.2:443
0 0 DNAT 6 -- !br-05a342260808 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8000 to:172.19.0.2:8000
10 600 DNAT 6 -- !br-964aff83e1dd * 0.0.0.0/0 0.0.0.0/0 tcp dpt:4080 to:172.18.0.2:80
81 4860 DNAT 6 -- !br-mailcow * 0.0.0.0/0 0.0.0.0/0 tcp dpt:7443 to:172.22.1.3:7443
0 0 DNAT 6 -- !br-mailcow * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8084 to:172.22.1.3:8084
0 0 DNAT 6 -- !br-mailcow * 0.0.0.0/0 127.0.0.1 tcp dpt:7654 to:172.22.1.249:6379
8 408 DNAT 6 -- !br-mailcow * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 to:172.22.1.253:25
37 2140 DNAT 6 -- !br-mailcow * 0.0.0.0/0 0.0.0.0/0 tcp dpt:465 to:172.22.1.253:465
8 400 DNAT 6 -- !br-mailcow * 0.0.0.0/0 0.0.0.0/0 tcp dpt:587 to:172.22.1.253:587
1105 66200 DNAT 6 -- !br-mailcow * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110 to:172.22.1.250:110
15 792 DNAT 6 -- !br-mailcow * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143 to:172.22.1.250:143
7 316 DNAT 6 -- !br-mailcow * 0.0.0.0/0 0.0.0.0/0 tcp dpt:993 to:172.22.1.250:993
41 2364 DNAT 6 -- !br-mailcow * 0.0.0.0/0 0.0.0.0/0 tcp dpt:995 to:172.22.1.250:995
11 628 DNAT 6 -- !br-mailcow * 0.0.0.0/0 0.0.0.0/0 tcp dpt:4190 to:172.22.1.250:4190
0 0 DNAT 6 -- !br-mailcow * 0.0.0.0/0 127.0.0.1 tcp dpt:19991 to:172.22.1.250:12345
0 0 DNAT 6 -- !br-mailcow * 0.0.0.0/0 127.0.0.1 tcp dpt:13306 to:172.22.1.13:3306
Logs of ip6tables -L -vn -t nat:
Chain PREROUTING (policy ACCEPT 314 packets, 98724 bytes)
pkts bytes target prot opt in out source destination
0 0 DOCKER 0 -- * * ::/0 ::/0 ADDRTYPE match dst-type LOCAL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 13838 packets, 707K bytes)
pkts bytes target prot opt in out source destination
0 0 DOCKER 0 -- * * ::/0 !::1 ADDRTYPE match dst-type LOCAL
Chain POSTROUTING (policy ACCEPT 13838 packets, 707K bytes)
pkts bytes target prot opt in out source destination
Chain DOCKER (2 references)
pkts bytes target prot opt in out source destinatio
DNS check:
;; communications error to 172.22.1.254#53: connection refused
;; communications error to 172.22.1.254#53: connection refused
;; communications error to 172.22.1.254#53: connection refused
;; no servers could be reached
Reactions are currently unavailable