SMTPMAIL 501 Syntactically invalid EHLO argument(s)

Hi,

We are suddenly having the following appear when using SMTPMAIL
501 Syntactically invalid EHLO argument(s)

As far as I know nothing has changed in the last month - ( we have been running the same program/smtpmail for years). Any ides as to where I start looking?

below is a test list from the socketemail.log

Regards
Mike

06/04/10 16:51:43
************** ****** New Group ******* ************
Socket email started
Input Parameters
EmailFrom = mike@sweetens.co.uk
EmailReplyTo =
EmailTo = <info@sweetens.co.uk>
EmailCC =
Attachments = test.pdf:type=application/data:filetype=B64ENCODED
LocalFiles = xinvprint\test.pdf
Subject = PDF Invoices for test.pdf
Body = PDF Invoices from Test at sweetens
MIMEHeader =
LocalHostName = Mike
Delivery Receipt = no
Read Receipt = no
Importance = 2
DoAuth = yes
AuthType = base64
User = mike@sweetens.co.uk
Password = scs01
06/04/10 16:51:43 processing Attachment xinvprint\test.pdf
06/04/10 16:51:43 opening socket
06/04/10 16:51:43 Socket Connection Established.
06/04/10 16:51:43 Number of lines: 2
str:220 ESMTP Exim Tue, 06 Apr 2010 16:51:43 +0100

06/04/10 16:51:43 Parse Line:1
Line:220 ESMTP Exim Tue, 06 Apr 2010 16:51:43 +0100
06/04/10 16:51:43 Begin read state 1
RESP:220 ESMTP Exim Tue, 06 Apr 2010 16:51:43 +0100

06/04/10 16:51:43 1 220 EHLO
06/04/10 16:51:43 newstate 2
CLIENT:EHLO mike@sweetens.co.uk

06/04/10 16:51:43 newstate - before 0 26 0
06/04/10 16:51:43 newstate - after 26 26 26
06/04/10 16:51:43 End read state 2
06/04/10 16:51:44 Number of lines: 2
str:501 Syntactically invalid EHLO argument(s)
 

LarryD

Active Member
Not to sound "forum cop", but did you try to google "501 Syntactically invalid EHLO argument" and look at some of the answers? There are about 29000 results when I checked. adding exim knocked it down to 24,200.
 
Hi Larry,

I did Google "501 Syntactically invalid EHLO argument" but I got fed up looking through the 1000th that referred to Mozilla or exim. All I wanted to know if anybody else had had similar problems, or could point me in the right direction.

Regards
Mike
 

vgabriel

New Member
There is a problem with chars used in login name.
Login name is also used in EHLO command.
Allowed are: alpha chars + numeric + hyphen (@ is invalid)


Fix:
replace vstate = newState(2, "EHLO " + C_User + crlf,hsocket).
with
vstate = newState(2, "EHLO " + vLocalHostName + crlf,hsocket).

in smtpmail module
 
Hi All,

There was a simple answer - our Email hosting supplier had changed the machine which was our SMTP server, and did not tell us. They also changed it so that we needed to have authentication. After lots of frustrating phone calls the system is now working again.

Mike
 
Top