Author Topic: SMTP Server - Invalid response to HELO command - 500 Unknown  (Read 14407 times)

SimonJ

  • Jr. Member
  • **
  • Posts: 7
SMTP Server - Invalid response to HELO command - 500 Unknown
« on: April 16, 2008, 01:41:27 pm »
Hi.

Two weeks ago I installed a test of popgrabber free (v100) on a new mail server for a client to retrieve mail from their ISP to a local copy of the old EMWAC server. This worked perfectly with no issues. 

We then purchased and installed the Popgrabber standard as we have roughly thirty accounts to retrieve and forward to the EMWAC SMTP service on the same machine. The registration has been completed (It appears to be successful.) When trying to retrieve any of the accounts (newly created or the initial test accounts) we now have the HELO error.

I can connect to my smtp service via telnet. the HELO command is OK 250, the HELO domain name command is OK 250 and the EHLO command is ok 250. but the following is logged in the Popgrabber log.

2008-04-16T13:19:33: Processing account --EMAIL ADDRESS-- on server pop3.immunovet.co.za
2008-04-16T13:19:33: Establishing POP3 connection to pop3.immunovet.co.za on port 110
2008-04-16T13:19:33: Logging in to POP3 Server
2008-04-16T13:19:34: Retrieving message count
2008-04-16T13:19:34: 2 message(s) on server
2008-04-16T13:19:34: Retrieving message 1
2008-04-16T13:19:50: Message 1 succesfully downloaded
2008-04-16T13:19:50: Connecting to SMTP Server mailrelay.immunovet.local on port 25
2008-04-16T13:19:50: Error connecting to SMTP Server (mailrelay.immunovet.local): Invalid response to HELO command: 500 Unknown or unimplemented command

Please note that this only happened after the upgrade from Setuppopgrabberfree100.exe to Setuppopgrabber105.exe

« Last Edit: April 16, 2008, 07:18:23 pm by Eclarsys Support »

Eclarsys Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 245
Re: SMTP Server - Invalid response to HELO command - 500 Unknown
« Reply #1 on: April 16, 2008, 05:31:52 pm »
Hello,

The difference between these 2 versions, is that the newer one starts the SMTP session with an "EHLO" command and falls back to "HELO" if the server does not support it. The other difference is that older PopGrabber versions did not send the hostname after the HELO command. We suspect your email server is not expecting this.

To check for problem 1: Make a telnet to your SMTP Server and send a "EHLO testserver". Post the response from the server here.
To check for problem 2: Extract the updated MailLibrary to your installation directory, this version will write in the log file the hostname of the PopGrabber machine.

The fast solution: Extract MailLibraryHELO.zip to your PopGrabber installation directory. This version does not implement extended SMTP (like the older PopGrabber versions).

Let us know if this helps.

Regards,

Eclarsys Support

SimonJ

  • Jr. Member
  • **
  • Posts: 7
Re: SMTP Server - Invalid response to HELO command - 500 Unknown
« Reply #2 on: April 17, 2008, 01:23:11 pm »
Hi Guys

Thanks very much, I will try what you have suggested and post back in a couple of days once I am back on site.

I must admit I was a little hesitant with your product, but thus far I have found it excellent and you support outstanding. Keep up the good work and I will revert to you soon.

Cheers.

Simon

Eclarsys Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 245
Re: SMTP Server - Invalid response to HELO command - 500 Unknown
« Reply #3 on: April 17, 2008, 03:36:08 pm »
We appreciate your comments.

Let us know if you have any problems.

SimonJ

  • Jr. Member
  • **
  • Posts: 7
Re: SMTP Server - Invalid response to HELO command - 500 Unknown
« Reply #4 on: April 21, 2008, 02:37:03 pm »
 Your assumption was correct. The response to the EHLO Servername was as follows:

220 127.0.0.1 IMS SMTP Receiver Version 0.83 Ready
ehlo mailrelay
500 Unknown or unimplemented command

I replaced the dll with the logging of the helo machinename, as you suggested. I am now receiving the error below:

2008-04-21T14:33:27: Error connecting to SMTP Server (localhost): Invalid response to 'HELO mailrelay' command: 500 Unknown or unimplemented command

If I telnet to the server and run the command, there is no issue. It seems the servers welcome message is the disconnecting the session now.

Cheers.

Simon




Eclarsys Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 245
Re: SMTP Server - Invalid response to HELO command - 500 Unknown
« Reply #5 on: April 21, 2008, 04:42:50 pm »
It's really strange that the server accepts the HELO command using Telnet but not from PopGrabber... Try using this modified MailLibrary.dll.

This one does not send the hostname. The only other thing you should maybe try is using the IP instead of the hostname (try with the real IP, and with 127.0.0.1 if PopGrabber is running in the same machine as the SMTP server, as seems to be the case here).

SimonJ

  • Jr. Member
  • **
  • Posts: 7
Re: SMTP Server - Invalid response to HELO command - 500 Unknown
« Reply #6 on: April 22, 2008, 12:48:29 pm »
Thanks.

I'll let you know the result.

Cheers.

Simon

SimonJ

  • Jr. Member
  • **
  • Posts: 7
Re: SMTP Server - Invalid response to HELO command - 500 Unknown
« Reply #7 on: April 24, 2008, 04:31:01 pm »
Hi Guys

I now have the following response from IMS EMWAC. I have tried on both the hostname using the latest dll and on the localhost IP 127.0.0.1.
I have attached the IMS mailserver files for you to have a look at. I have also included the documentation to get it running. pay special attention to the Windows 2000 fixes.

maillibrary version 1.0.5.29733 gives the following error:
Error connecting to SMTP Server (mailserver): Invalid response to HELO: 220 MAILSERVER.sna.local IMS SMTP Receiver Version 0.83 Ready

maillibrary version 1.0.5.29377 gives the following error:
2008-04-24T16:25:44: Error connecting to SMTP Server (mailserver): Invalid response to 'HELO MAILSERVER' command: 500 Unknown or unimplemented command

maillibrary version 1.0.5.28127 gives the following error:
2008-04-24T16:26:47: Error connecting to SMTP Server (mailserver): Invalid response to HELO: 220 MAILSERVER.sna.local IMS SMTP Receiver Version 0.83 Ready

maillibrary version 1.0.5.25039 gives the following error:
2008-04-24T16:28:16: Error connecting to SMTP Server (mailserver): Invalid response to HELO command: 500 Unknown or unimplemented command

Please see if you can resolve this as I now have two clients waiting for resolution.

Thanks very much.

Simon

Eclarsys Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 245
Re: SMTP Server - Invalid response to HELO command - 500 Unknown
« Reply #8 on: April 25, 2008, 10:41:03 am »
We found the problem. There was an error parsing the HELO response. Please use the attached MailLibrary.

The installer in the download area has also been updated.

Regards,

Eclarsys Support

SimonJ

  • Jr. Member
  • **
  • Posts: 7
Re: SMTP Server - Invalid response to HELO command - 500 Unknown
« Reply #9 on: April 25, 2008, 12:02:39 pm »
Hi Guys

That's good news. Thanks again for the prompt response, and I will test it and let you know.

Thanks again for all the help.

Cheers.

Simon

SimonJ

  • Jr. Member
  • **
  • Posts: 7
Re: SMTP Server - Invalid response to HELO command - 500 Unknown
« Reply #10 on: April 29, 2008, 08:56:38 pm »
Hi Guys

Well done. Popgrabber is now configured and working with 15 accounts retrieving mail and forwarding to the old EMWAC IMS Server no problems.

Thanks for the assistance and keep up the good work.

Cheers.

Simon