Closed almostkareem closed 3 years ago
Most probably your TLS certificate is not valid (either expired or CA chain is missing) and these clients are validating the certificate.
I have not set up any TLS Certificate.
In this case SMTP-server is using self generated certificates that are always invalid. You need to provide valid certificates in order to accept mail.
Please can you give me a doc or something something to achieve this?
See the docs here https://nodemailer.com/extras/smtp-server/#tls-and-startls-notice
After setting up a certificate and a private key I now get : Error: Socket closed unexpectedly 20|mail-api | at TLSSocket.onError (/var/apps/mail-api/node_modules/smtp-server/lib/smtp-server.js:473:29)
@andris9 I do get the same exact error after setting up the certificate and key. The certificate was issued by Let's encrypt for the host
secure: true, key: fs.readFileSync("/etc/letsencrypt/live/mail-smtp.sendus.io/privkey.pem"), cert: fs.readFileSync("/etc/letsencrypt/live/mail-smtp.smtp.sendus.io/fullchain.pem"), //Also tried to use cert.pem with no sucess
Error: Socket closed unexpectedly
20|mail-api | at TLSSocket.onError (/var/apps/mail-api/node_modules/smtp-server/lib/smtp-server.js:473:29)
Any chance you could help with this?
Hello, I have been using this package to receive inbound emails, but some mail servers like gitlab or dribbble cannot send messages to my SMTP server, this the error I get :
Thanks, any help appreciated