nodemailer / smtp-server

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

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

Open vinodhreddygs opened 4 years ago

vinodhreddygs commented 4 years ago

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.

duylddev commented 3 years ago

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

andrealeo83 commented 3 years ago

I got the same issue, did you fix that?

duylddev commented 3 years ago

` 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

andrealeo83 commented 3 years ago

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

charlesmudy commented 7 months ago

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.