nodemailer / smtp-server

Create custom SMTP servers on the fly
Other
846 stars 145 forks source link

expose servername in session #188

Closed piboistudios closed 10 months ago

piboistudios commented 1 year ago

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