Hallo,
im mailcow-Forum habe Unterstützung gesucht, da ich Probleme mit mailcow habe. Warum frage ich noch mal hier nach? Mich interessiert, ob noch jemand ähnlich Probleme hat in der Hoffnung, dass ich die Ursache finde.
Auf dem netcup VPS läuft Debian GNU/Linux 13 (trixie). Bei der Installation von mailcow bin ich strikt der Anleitung https://docs.mailcow.email/getstarted/install/ gefolgt. Ich musste allerdings bzgl. Firewall die Anpassung analog Hetz... (wieso ist hier im Forum das Wort Hetz... zensiert?) vornehmen, da netcup scheinbar keine stateful-Firewall hat, sondern jedes eingehende Paket isoliert geprüft wird.
Mein Problem steht im Zusammenhang mit postfix und unbound innerhalb mailcows.
Den Firewall habe ich wie in der Dokumentation von mailcow konfiguriert. Konkret besteht das Problem im postfix-Container. Ich kann dort ohne einen forward-Eintrag keine AAAA Abfrage erfolgreich durchführen.
Ohne forward-Eintrag in unbound.conf:
root@server:/opt/mailcow-dockerized# docker compose exec postfix-mailcow dig AAAA domain-de.mail.protection.outlook.com
; <<>> DiG 9.20.23-1~deb13u1-Debian <<>> AAAA domain-de.mail.protection.outlook.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 31800
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;domain-de.mail.protection.outlook.com. IN AAAA
;; Query time: 4000 msec
;; SERVER: 127.0.0.11#53(127.0.0.11) (UDP)
;; WHEN: Fri Jul 31 06:43:52 CEST 2026
;; MSG SIZE rcvd: 73
root@server:/opt/mailcow-dockerized#
Alles anzeigen
Mit forward-Eintrag in unbound.conf
rootserver:/opt/mailcow-dockerized# docker compose exec postfix-mailcow dig AAAA domain-de.mail.protection.outlook.com
; <<>> DiG 9.20.23-1~deb13u1-Debian <<>> AAAA domain-de.mail.protection.outlook.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35854
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;domain-de.mail.protection.outlook.com. IN AAAA
;; ANSWER SECTION:
domain-de.mail.protection.outlook.com. 10 IN AAAA 2a01:xxx
domain-de.mail.protection.outlook.com. 10 IN AAAA 2a01:xxx
domain-de.mail.protection.outlook.com. 10 IN AAAA 2a01:xxx
domain-de.mail.protection.outlook.com. 10 IN AAAA 2a01:xxx
;; Query time: 68 msec
;; SERVER: 127.0.0.11#53(127.0.0.11) (UDP)
;; WHEN: Fri Jul 31 06:42:44 CEST 2026
;; MSG SIZE rcvd: 196
root@server:/opt/mailcow-dockerized#
Alles anzeigen
Mein Workaround ist die Hinterlegung einer forward-zone in der unbound.conf. Danach hat der Versand und auch die Abfrage mittels "dig" aus dem postfix Container funktioniert.
forward-zone:
name: "mail.protection.outlook.com"
forward-addr: 5.1.66.255
forward-addr: 185.150.99.255
Auch direkt vom Host, außerhalb Docker, funktioniert die dig-Abfrage ohne Probleme mit dem netcup DNS.
Hat jemand ebenfalls eine mailcow Instanz bei netcup und ist auf ähnlich Probleme gestoßen?
Viele Grüße ...