sun.net.smtp.SmtpProtocolException inside a WO app
This is not a WO (Apple WebObjects) app I wrote but one I am helping to install and host. It is not java.mail but sun.net.SmtpClient, but I cannot find a forum for sun.net stuff...
The app tries to send email using the sun java sun.net.SmtpClient .
Anyway, we get this exception on the app side:
24 Nov 2005 21:41:14,572 ERROR [WorkerThread 2]: com.sPearWay.electronicCommerce.MailDelivery - sendEmail() exception:
sun.net.smtp.SmtpProtocolException:
at sun.net.smtp.SmtpClient.issueCommand(SmtpClient.java:48)
at sun.net.smtp.SmtpClient.closeServer(SmtpClient.java:38)
blah blah blah
notice there is nothing listed after sun.net.smtp.SmtpProtocolException: . Usually it will give the text for what sort of error it was, like a 550 or 554 and text.
But the mail server side had the following in the log:
2005-11-24 21:41:14 SMTP protocol violation: synchronization error (input sent without waiting for greeting): rejected connection from H=[166.70.252.252
] input="helo woodhall\r\n"
So it appears that the WO app (sun.net.SmtpClient) is screwing up and not following the smtp protocol of waiting for the remote server to identify itself, but is immediately blasting its HELO command out. Most servers today will enforce the protocol of waiting since about the only people who don't follow it are badly written spam senders.
Any ideas on why this is happening? Or what to do about it?
Thanks
Chad