<div>Hi!</div><div><div><div> </div><div>So, when proxying SMTP/IMAP, is it possible to get the Server Name that mail clients send as a part of Client Hello?</div><div> </div><div>Similar to Embedded Variables for ngx_http_ssl_module:</div><div><div><div><code>$ssl_server_name</code></div><div>returns the server name requested through <a href="http://en.wikipedia.org/wiki/Server_Name_Indication">SNI</a> (1.7.0);</div><div> </div><div>Or should I use `stream` to proxy mail? What about STARTTLS then, I still want to terminate TLS on NGINX.</div><div> </div><div>Any ideas?</div><div> </div><div>Thanks,</div><div>Denis</div></div></div></div><div> </div></div>