Nginx to DMS fails with SSL failed error:0A00010B:SSL routines::wrong version number
#4159
-
hi, help I've been sitting on this quite a bit and have no idea where the error lies I have nginx and mail server in my docker container and now I want to accept the connection to nginx and redirect to mail, but I get an error about the wrong version of SSL and I do not know what I should do next Here are my configs Nginx
and i got
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I am not that familiar with nginx configuration, but can you confirm you understand this?:
It is usually better to just expose the ports directly, without reverse proxy due to the above. It's rare that these ports are shared by any other mail server, unlike with web services where you need to route the common ports 80 and 443 to the different services HTTP port. The only other reason you'd have then is for certificate management. Nginx doesn't provision certificates like Caddy and Traefik, unless you're using something like Just to clarify, DMS has two types of TLS:
I assume from the config snippet you provided, that nginx is managing the cert and terminating TLS, after the connection is forwarded to DMS ports that expect TLS. That is why you get an error about failed SSL. |
Beta Was this translation helpful? Give feedback.
Correct:
If you do proxy to DMS, it should be at layer 7 only, and as mentioned you would need to configure PROXY protocol. This is more effort than it is worth for you, you shouldn't need to proxy connections from nginx to DMS.