andris9/Nodemailer — Issue #56: not waiting 220 from server before first EHLO
Author: revolunet
Created: 2011-12-26 19:20:36+00:00
State: open

Hi there

I dont know is this is official SMTP protocol behavior or another exim4 requirement...

Look like nodemailer doesnt wait for the server GREETING before sending the first EHLO which breaks in some case with exim4 smtp.

this could ends up with errors like this (exim log) :

2011-12-26 19:32:15 SMTP protocol synchronization error (input sent without waiting for greeting): rejected connection from H=localhost [127.0.0.1] input="EHLO xxxxx.kimsufi.com\r\n"

smtp.js log :

SEND:
"EHLO xxxxxx.kimsufi.com\r\n"
RECEIVE:
"554 SMTP synchronization error\r\n"
--> mail error: [Error: Server responded with 554 SMTP synchronization error]

with a little timeout it works, but looks dirty to me... ny better idea ?

Thanks !