nodemailer / smtp-server

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

SNI + Secure socket interception #189

Closed piboistudios closed 10 months ago

piboistudios commented 1 year ago

This builds upon https://github.com/nodemailer/smtp-server/pull/188 (and can/should replace #188 if accepted)

This just adds an onSecure hook that allows library users to intercept secure sockets. Particularly useful for virtual hosting SMTP (which is now practical thanks to MTA STS; can and will just bounce emails that don't comply and use SNI)