Telnetting from inside the container and discourse-doctor both failed with the exact same message.
It brought me onto the right track though. I tried out telnet from some other machines and stumbled upon the problem with one with IPv6 disabled: My mail server didn’t accept IPv4 connections.
Nextcloud and Gitea on the same machine were fine using IPv6, but Discourse seemingly doesn’t (maybe a Docker limitation?).
Anyway: I fixed the mail server config and it works flawlessly now. Thanks for the help! ![]()