Well
Caddy is working perfectly on other services, and was working ok before the latest mailcow version.
The problem occurs at the login page. This page is perfectly displayed, but when entering the credentials, it wants to forward to the server real name instead of the public name.
And as the real server name is not known on the internet, it fails.
If you correct the wrong name by the public name, it will work.