nodemailer / smtp-server

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

Failing to even connect with secured - using Let's Encrypt #131

Closed calebsmithdev closed 3 years ago

calebsmithdev commented 4 years ago

I have my SMTPServer setup to be secured and reaching out to my Let's Encrypt folder for the ca, key, and cert. Everything seems to work fine and it all starts up and is ready to roll, but trying to send a email to the server causes a socket time out and it "unexpectedly closes". If I do not secure it, then it works just fine. Does anyone have any recommendations here?

edit: after a bit of trial and error, i've discovered its TLS related. If I just try to hit with SSL, it works fine. Any advice here would be great!

ArunJRK commented 3 years ago

Site SSLs are different from mail SSLs look into this for creating mail SSLs. This could help. https://www.dalesandro.net/create-self-signed-smime-certificates/

calebsmithdev commented 3 years ago

@ArunJRK this was super helpful!! Yep I had no idea, so I'll be getting this going soon.