Nextcloud in Docker not connecting to smtp email server on host network

at least one topic exists Docker: how to use postfix from host

I frequently see connection issues with connections between containers on the same host. I assume there are issues with iptables but I never was in the mood to troubleshoot. as my relevant containers are all http behind reverse proxy I just made intern split-brain dns on the reverse proxy Probably DNS help with NC Docker + Collabora + Wireguard tunnel

Newer Docker versions include a special hostname host.docker.internal → add as --add-host=host.docker.internal:host-gateway argument

https://medium.com/@TimvanBaarsen/how-to-connect-to-the-docker-host-from-inside-a-docker-container-112b4c71bc66