[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
Wed Nov 20 14:36:27 UTC 2013


Michael M Slusarz <slusarz at horde.org> a écrit :

> Quoting Michael M Slusarz <slusarz at horde.org>:
>
>> You will need to debug why the exception is not being caught  
>> correctly. (As noted, the code is designed to catch exactly this  
>> error.  But I have no idea why it isn't working, and no way to test  
>> in a production environment).
>
> ...and that being said, this may simply come down to a typo:
>
> http://github.com/horde/horde/commit/7e417546f3e3cba40773eee119cef9de7de77687
>
> Try this patch.
>
> michael
>
> ___________________________________
> Michael Slusarz [slusarz at horde.org]
>
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org

Hello,

Many thanks for your answers. I'm not the admin SMTP but I talk with  
him, I'm in charge for horde applications and in most cases web  
applications.
However, even though our smtp server answer to HELO instead ELHO, this  
case has been considered in Smtp.php in the case 502 about line 569.
Yet it appears that switch ($e->getSmtpCode()) do not get 502. so   
$this->_connection->write('HELO '.$host) is not executed.

Michael, I applied the patch you advice me, it is a good idea, but I  
can't still send a message. Nevertheless the exception is now 354 . As  
I print the exception $e and also the $replycode the logs  gives me  
more informations as shown below :

[LOG]
HORDE [imp] Une erreur est survenue lors de l'envoi du message : End  
data with <CR><LF>.<CR><LF> [pid 16998 on line 27 of  
"/www/horde5/pear/php/Horde/Core/Notification/Handler/Decorator/Hordelog.php"]
2013-11-20T14:46:26+01:00 DEBUG: HORDE [imp] Unexpected output when  
creating AJAX reponse: FLAG2----220
FLAG2----502
FLAG2----250
FLAG2----250
FLAG2----250
FLAG2----354
FLAG1 exception 'Horde_Smtp_Exception' with message 'End data with  
<CR><LF>.<CR><LF>' in /www/horde5/pear/php/Horde/Smtp.php:808
Stack trace:
#0 /www/horde5/pear/php/Horde/Smtp.php(588): Horde_Smtp->_getResponse(250)
#1 /www/horde5/pear/php/Horde/Smtp.php(822): Horde_Smtp->resetCmd()
#2 /www/horde5/pear/php/Horde/Smtp.php(538):  
Horde_Smtp->_getResponse(354, 'reset')
#3 /www/horde5/pear/php/Horde/Mail/Transport/Smtphorde.php(134):  
Horde_Smtp->send('gerard.breiner at ...', 'gerard breiner ...', Resource  
id #209, Array)
#4 /www/horde5/pear/php/Horde/Mime/Part.php(1752):  
Horde_Mail_Transport_Smtphorde->send('gerard breiner ...', Array,  
Resource id #198)
#5 /www/horde5/imp/lib/Compose.php(1059):  
Horde_Mime_Part->send('gerard breiner ...',  
Object(Horde_Mime_Headers), Object(Horde_Mail_Transport_Smtphorde),  
Array)
#6 /www/horde5/imp/lib/Compose.php(833):  
IMP_Compose->sendMessage(Object(Horde_Mail_Rfc822_List),  
Object(Horde_Mime_Headers), Object(Horde_Mime_Part))
#7 /www/horde5/imp/lib/Ajax/Application/Handler/Common.php(538):  
IMP_Compose->buildAndSendMessage('??htrhrh', Array,  
Object(IMP_Prefs_Identity), Array)
#8 [internal function]: IMP_Ajax_Application_Handler_Common->sendMessage()
#9 /www/horde5/pear/php/Horde/Core/Ajax/Application.php(171):  
call_user_func(Array)
#10 /www/horde5/services/ajax.php(58): Horde_Core_Ajax_Application->doAction()

[/LOG]

Best regards.

Gérard

-- 
Gérard Breiner
Institut d'Astrophysique Spatiale
Bât 121 Université Paris Sud 11
FR-91405 Orsay cedex



More information about the horde mailing list