Trying to implement a virtual email host with MTA STS+SNI
Not sure why this is not apart of the tls.TLSSocket type definition itself, but if SNI is done, I guess a servername property is dynamically added to the TLS Socket by the tls module. (see here: https://nodejs.org/api/tls.html#event-secureconnection)
Anyways, this change will expose the servername on the SMTP session
Trying to implement a virtual email host with MTA STS+SNI
Not sure why this is not apart of the
tls.TLSSocket
type definition itself, but if SNI is done, I guess aservername
property is dynamically added to the TLS Socket by thetls
module. (see here: https://nodejs.org/api/tls.html#event-secureconnection)Anyways, this change will expose the servername on the SMTP session