View Full Version : Failed to login to SMTP server: 500 5.3.3 Unrecognized command
alraaayeq1
24-12-05, 05:02 PM
Hi,
I tried to find any posted topic about this issue, sorry if it was discussed before.
the issue is I can't login to my SMTP because of unknown command, I have done the following:
1- filled the system confg. according to our local SMTP specifications
2- updated the php.ini SMTP lines.
3- I have updated my mail class lib from the CSVs.
currently , I am using easyPHP on windows 2000, the SMTP ( MS exchange server ) works fine with other clients but not with dotProject.
this is the error message!!!
Failed to login to SMTP server: 500 5.3.3 Unrecognized command
can any body help!!!! ( I neeeeeeed it :( )
alraaayeq1
24-12-05, 07:39 PM
below is the debugging message
c:\program files\easyphp1-8\www\dotproject\classes\libmail.class.php(416): Authentication failed on server: 500 5.3.3 Unrecognized command
Update your classes/libmail.class.php file from the latest stable_2 in cvs.
http://cvs.sourceforge.net/viewcvs.py/dotproject/dotproject/classes/libmail.class.php?rev=1.20&view=log
Pedro A.
alraaayeq1
26-12-05, 03:31 PM
Update your classes/libmail.class.php file from the latest stable_2 in cvs.
http://cvs.sourceforge.net/viewcvs.py/dotproject/dotproject/classes/libmail.class.php?rev=1.20&view=log
Pedro A.
Thanks, but as I said above, I already updated it.
Still I have the same problem...:(
alraaayeq1
28-12-05, 11:10 PM
I have done many tests, and tried to debug the code, the server says
503 5.5.2 Send hello first
what does that mean, do we missed a command or somthings
any how, I found SMTP classes that worked greate... yet I dont have the time to integrate dotproject with them, can any body help
I see you don't understand SMTP (Simple Mail Transfer Protocol) so I recommend you to read:
http://www.networksorcery.com/enp/protocol/smtp.htm
and the RFCs, specially RFC 2821.
What is happening is that you are trying to send emails without issuing a HELO (yes it only has one L, RFC 2821) command to the smtp server. It serves as the start of a smtp conversation.
If you are really using smtp with dotProject, and please verify your setings on dotProject for that, then line 401 of libmail.class.php is responsible for that:
$this->socketSend("HELO " . $this->getHostName());
There may be smtp servers that do not accept a HELO command but a EHLO command instead, so my suggestion would be to change that line to:
$this->socketSend("EHLO " . $this->getHostName());
And see how it goes.
Also be aware of authentication requirement issues since your smtp may require or not authentication, and you can set those options trough the dotProject System Admin, System Configuration.
Pedro A.
alraaayeq1
01-01-06, 06:53 PM
pedroa,
Thanks for the link and hints!
Actually, I have integrated the dotproject email features with more generic and trusted SMTP Classes, it works 100% perfect.
Thanks again.
dretim23
04-10-06, 07:21 PM
I see you don't understand SMTP (Simple Mail Transfer Protocol) so I recommend you to read:
http://www.networksorcery.com/enp/protocol/smtp.htm
and the RFCs, specially RFC 2821.
What is happening is that you are trying to send emails without issuing a HELO (yes it only has one L, RFC 2821) command to the smtp server. It serves as the start of a smtp conversation.
If you are really using smtp with dotProject, and please verify your setings on dotProject for that, then line 401 of libmail.class.php is responsible for that:
$this->socketSend("HELO " . $this->getHostName());
There may be smtp servers that do not accept a HELO command but a EHLO command instead, so my suggestion would be to change that line to:
$this->socketSend("EHLO " . $this->getHostName());
And see how it goes.
Also be aware of authentication requirement issues since your smtp may require or not authentication, and you can set those options trough the dotProject System Admin, System Configuration.
Pedro A.
i have updated the libmail.class.php to version 1.24 and changed according to quoted. but i still got following error:
/classes/libmail.class.php(430): Authentication failed on server: 250-ETRN
Unable to mail followup. Quit without recording followup to database.
the target smtp server is Exchange 2003.
DotVince
04-10-06, 09:02 PM
pedroa,
Thanks for the link and hints!
Actually, I have integrated the dotproject email features with more generic and trusted SMTP Classes, it works 100% perfect.
Thanks again.
Hi,
If you are still around, would you care to share, or tell us which classes you used?
thanks,
- Vince
i have updated the libmail.class.php to version 1.24 and changed according to quoted. but i still got following error:
/classes/libmail.class.php(430): Authentication failed on server: 250-ETRN
Unable to mail followup. Quit without recording followup to database.
the target smtp server is Exchange 2003.
250 is not a blocking error, so you should check if your server supports authentication and what are your firewall settings. Also if you have relaying problems changing
$this->socketSend("EHLO " . $this->getHostName());
to
$this->socketSend("EHLO " . '[XXX.XXX.XXX.XXX]');
where XXX.XXX.XXX.XXX should match your servers IP, may help.
Pedro A.
dretim23
05-10-06, 12:38 PM
250 is not a blocking error, so you should check if your server supports authentication and what are your firewall settings. Also if you have relaying problems changing
$this->socketSend("EHLO " . $this->getHostName());
to
$this->socketSend("EHLO " . '[XXX.XXX.XXX.XXX]');
where XXX.XXX.XXX.XXX should match your servers IP, may help.
Pedro A.
dotproject is in the same lan of mail server. it require authentication. both dotproject and mail server have not set firewall.
the server of IP should be
'xxx.xxx.xxx.xxx' or '[xxx.xxx.xxx.xxx]' ?
It should be bracketed according to RFC standard, but MS dimension does not allways bow to standards so anything will do as long as it works :)
Pedro A.
enricom
01-07-07, 08:46 AM
I had the same problems as described in previous posts, and previous suggestions also did not work. My Web host is using Windows and IIS.
I enabled debug messages and saw the following:
Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not in a.b.c.d form in E:\USERS\myaccount\www\myfolder\dotproject\classes \libmail.class.php on line 495
So as a very quick and dirty hack, the following worked for me.
***** libmail.class.php v 1.28 @ line 490 *****
function getHostName()
{
// Grab the server address, return a hostname for it.
//if ($host = gethostbyaddr($_SERVER['SERVER_ADDR']))
// return $host;
//else
// return '[' . $_SERVER['SERVER_ADDR'] . ']';
//Hack code:
return 'smtp.myhost.com'; //replace with your smtp server address
}
*************************************
itstuffimed
21-01-09, 08:40 AM
Here is what we did to fix it on our install
Dot Project: 2.1.2
Host: IIS
Server: Windows 2003
Email server: Exchange 2003
Change the initial socket connecto to be:
$this->socketSend('HELO ' . '[192.168.0.10]');
192.168.0.10 is your exchange mail server IP address.
That is the only way we were able to get it to work.
Hope this helps.
I had the same problems as described in previous posts, and previous suggestions also did not work. My Web host is using Windows and IIS.
I enabled debug messages and saw the following:
Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not in a.b.c.d form in E:\USERS\myaccount\www\myfolder\dotproject\classes \libmail.class.php on line 495
So as a very quick and dirty hack, the following worked for me.
***** libmail.class.php v 1.28 @ line 490 *****
function getHostName()
{
// Grab the server address, return a hostname for it.
//if ($host = gethostbyaddr($_SERVER['SERVER_ADDR']))
// return $host;
//else
// return '[' . $_SERVER['SERVER_ADDR'] . ']';
//Hack code:
return 'smtp.myhost.com'; //replace with your smtp server address
}
*************************************
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.