nginx mail auth_http response support ssl?

Maxim Dounin mdounin at mdounin.ru
Tue Jun 13 16:08:12 UTC 2023


Hello!

On Tue, Jun 13, 2023 at 10:18:44AM +0800, lty at cndns.com wrote:

> I want the response to support ssl, is there a way to achieve it? 
> 
> HTTP/1.0 200 OK 
> 
> Auth-Status: OK 
> 
> Auth-Server: 198.51.100.1 
> 
> Auth-Port: 143 
> 
> add parameter Auth-Ssl: on ? 

The mail proxy module in nginx is designed to work with backend 
servers in trusted environment, and does not provide a direct way 
to establish SSL connections to backend servers.

If you want nginx to use SSL when connecting to backend servers, 
consider using an SSL tunnel to do so.  For example, you can make 
one with the stream module, see here for details:

http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx mailing list