slimta / python-slimta

Python libraries to send, receive, and queue email.
https://slimta.org/
MIT License
171 stars 43 forks source link

Implement SNI callback #181

Open andryyy opened 10 months ago

andryyy commented 10 months ago

Set server_hostname for inbound (server side) SSLContext using SNI callback.

Can be used in tls2 handler like this:

    print(ssl_socket.context.server_hostname)

If no SNI is available, server_hostname will remain None, no exceptions will be raised.