In mailcow.conf you can enter Ports, which I did. I cannot use the standard ports, as there is another system answering them
HTTP_PORT=8080
HTTP BIND=
HTTPS_PORT=8443
HTTPS_BIND=
Now lets encrypt does not work. Output of “docker compose logs –tail=200 -f acme-mailcow” is as follows:
acme-mailcow-1 | ValueError: Challenge did not pass for www.hotzweb.ch: {‘identifier’: {‘type’: ‘dns’, ‘value’: ‘www.hotzweb.ch’}, ‘status’: ‘invalid’, ‘expires’: ‘2024-04-01T08:50:20Z’, ‘challenges’: [{‘type’: ‘http-01’, ‘status’: ‘invalid’, ‘error’: {‘type’: ‘urn:ietf:params:acme:error:connection’, ‘detail’: ‘82.136.105.63: Fetching http://www.hotzweb.ch/.well-known/acme-challenge/ZvrgbCaQb3v38pbRWX6gI29l48KvK7HyzW3AMkv8CSk: Timeout during connect (likely firewall problem)’, ‘status’: 400}, ‘url’: ‘https://acme-v02.api.letsencrypt.org/acme/chall-v3/330455535137/W9TlUA’, ‘token’: ‘ZvrgbCaQb3v38pbRWX6gI29l48KvK7HyzW3AMkv8CSk’, ‘validationRecord’: [{‘url’: ‘http://www.hotzweb.ch/.well-known/acme-challenge/ZvrgbCaQb3v38pbRWX6gI29l48KvK7HyzW3AMkv8CSk’, ‘hostname’: ‘www.hotzweb.ch’, ‘port’: ‘80’, ‘addressesResolved’: [‘82.136.105.63’], ‘addressUsed’: ‘82.136.105.63’, ‘resolverAddrs’: [‘A:10.0.12.89:20043’, ‘AAAA:10.0.12.81:27875’]}], ‘validated’: ‘2024-03-25T08:50:22Z’}]}
acme-mailcow-1 | Mon Mar 25 09:50:35 CET 2024 - Failed to obtain certificate /var/lib/acme/www.hotzweb.ch/cert.pem for domains ‘www.hotzweb.ch’
Obviously, Let’s encryt tries to contact my domain on port 80, not 8080, but there is something else answering, and it does not know anything about the requested information.
Now does this mean the port definition in mailcow.conf is useless or is there something wrong?