smtp-server icon indicating copy to clipboard operation
smtp-server copied to clipboard

How to handle Timeout errors i.e. 421 Timeout - closing connection

Open vinodhreddygs opened this issue 5 years ago • 5 comments

Hi, After SMTP server authentication, I'am encountered "421 Timeout - closing connection" error in the my server. Please let me know how to handle this type of issues or errors. Thanks.

vinodhreddygs avatar Apr 23 '20 10:04 vinodhreddygs

I got the same issue, did you fix that? @vinodhreddygs

duylddev avatar Mar 29 '21 03:03 duylddev

I got the same issue, did you fix that?

andrealeo83 avatar May 27 '21 13:05 andrealeo83

` const server = new SMTPServer({ onData(stream, session, cb) {

}, disabledCommands: ['AUTH'], disableReverseLookup: true, logger: false, secure: false, hideSTARTTLS: true, hide8BITMIME: true, hidePIPELINING: true, hideSMTPUTF8: true }) `

Follow this code and it works like a charm @andrealeo83

duylddev avatar May 27 '21 13:05 duylddev

I resolved following this https://github.com/nodemailer/smtp-server/blob/master/examples/server.js#L104 thanks to https://github.com/nodemailer/smtp-server/issues/160#issuecomment-779056674

andrealeo83 avatar May 27 '21 17:05 andrealeo83

This seems old but currently experiencing this issue from the client side ... tested on other client application like wordpress and it would work but for other applications like Laravel ... I get timeout.

Not sure where the problem is coming from.

charlesmudy avatar Dec 03 '23 22:12 charlesmudy