[horde] IMP 6.1.5 Can't send a message via smtp (issue with HEHLO error 502)

Gerard Breiner gerard.breiner at ias.u-psud.fr
Tue Nov 19 16:43:24 UTC 2013


Le 19 nov. 2013 à 16:46, Gerard Breiner <gerard.breiner at ias.u-psud.fr> a écrit :

> 
> Le 19 nov. 2013 à 11:56, lst_hoe02 at kwsoft.de a écrit :
> 
>> 
>> Zitat von Gerard Breiner <gerard.breiner at ias.u-psud.fr>:
>> 
>>> I cannot send an email. In my backend I log  the "smtp debug" and I get:
>>>> Mon, 18 Nov 2013 17:14:25 +0100
>>> S: 220 ************************************
>>> C: EHLO inf-webmail
>>> S: 502 5.5.2 Error: command not recognized
>> 
>> Disable Cisco PIX protocol f***up
>> 
>> http://www.debian-administration.org/articles/382
>> 
>> 
>> Regards
>> 
>> Andreas
>> 
>> 
>> -- 
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
> 
> Not sure IMHO  this have to do with my issue because I used telnet  for testing and HELO works but not EHLO.
> 
> telnet smtp.domain 25
> Trying x.x.x.x...
> Connected to mail.domain
> Escape character is '^]'.
> 220 ************************************
> HELO domain
> 250 mail.domain
> EHLO domain
> 502 5.5.2 Error: command not recognized
> 
> However I added a "print $e" in the default case line 386 de Smtp.php and I get  in horde.log the content of the exception that say the issue is at the line 807 about the command :  $e = new Horde_Smtp_Exception($details)
> 
> Is it normal to not have the code 502 in Exception.php ? 
> if i do understand , how the case 502 could be dealt if the code 502 is not defined in Horde/Smtp/Exception.php.
> Maybe I didn't understood how all this works ?
> 
> -----------------------------------------------
> exception 'Horde_Smtp_Exception' with message '5.5.2 Error: command not recognized' in /www/horde5/pear/php/Horde/Smtp.php:807
> Stack trace:
> #0 /www/horde5/pear/php/Horde/Smtp.php(370): Horde_Smtp->_getResponse(250)
> #1 /www/horde5/pear/php/Horde/Smtp.php(475): Horde_Smtp->login()
> #2 /www/horde5/pear/php/Horde/Mail/Transport/Smtphorde.php(134): Horde_Smtp->send('gerard.breiner at ...', 'gerard breiner ...', Resource id #211, Array)
> #3 /www/horde5/pear/php/Horde/Mime/Part.php(1752): Horde_Mail_Transport_Smtphorde->send('gerard breiner ...', Array, Resource id #200)
> #4 /www/horde5/imp/lib/Compose.php(1059): Horde_Mime_Part->send('gerard breiner ...', Object(Horde_Mime_Headers), Object(Horde_Mail_Transport_Smtphorde), Array)
> #5 /www/horde5/imp/lib/Compose.php(833): IMP_Compose->sendMessage(Object(Horde_Mail_Rfc822_List), Object(Horde_Mime_Headers), Object(Horde_Mime_Part))
> #6 /www/horde5/imp/lib/Ajax/Application/Handler/Common.php(538): IMP_Compose->buildAndSendMessage('??juyjty', Array, Object(IMP_Prefs_Identity), Array)
> #7 [internal function]: IMP_Ajax_Application_Handler_Common->sendMessage()
> #8 /www/horde5/pear/php/Horde/Core/Ajax/Application.php(171): call_user_func(Array)
> #9 /www/horde5/services/ajax.php(58): Horde_Core_Ajax_Application->doAction()
> 
> -----------------------------------------------------
> 
> Many thanks in advance for getting help.
> 
> Best regards.
> 
> Gérard Breiner-- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org

Rectification, the code 502 is do catch in the function _getResponse but  seems not detected in :

switch ($e->getSmtpCode()) 
380             case 502:
381                 // Old server - doesn't support EHLO
382                 $this->_connection->write('HELO '.$host);
383                 $this->_extensions = array();

ideas are welcomes…

Regards

Gérard Breiner

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1885 bytes
Desc: not available
URL: <http://lists.horde.org/archives/horde/attachments/20131119/77eb375d/attachment.bin>


More information about the horde mailing list