nginx mail auth_http response support ssl?

L
  • 13 Jun '23
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 ? 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20230613/41cf362b/attachment.htm>
M
  • 13 Jun '23
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/