loopingz / smtp-relay

SMTP Toolbox
GNU Lesser General Public License v3.0
29 stars 3 forks source link

SSL/TLS Certificate #84

Open matteowiz opened 1 month ago

matteowiz commented 1 month ago

Hello,

is it possible to specify a ssl/tls server certificate to be used?

Regards

matteo

loopingz commented 1 month ago

Hello, you can specify the secure parameter to true.

Then you can configure it with the tls parameter that is documented here: https://nodejs.org/api/tls.html#tls_class_tls_tlssocket and here https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions

I rely on the great lib done by NodeMailer https://github.com/nodemailer/smtp-server so any of their options work on this project.

If you endup configuring TLS, I would appreciate an update of the README.md with an example of TLS configuration, as I think it would be helpful to other people.

Thank you