[Tickets #12853] Cannot send a message

noreply at bugs.horde.org noreply at bugs.horde.org
Thu Nov 21 09:56:57 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12853
------------------------------------------------------------------------------
  Ticket             | 12853
  Created By         | gerard.breiner at ias.u-psud.fr
  Summary            | Cannot send a message
  Queue              | IMP
  Version            | 6.1.6
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


gerard.breiner at ias.u-psud.fr (2013-11-21 09:56) wrote:

Hello,

As a follow to my post : [horde] IMP 6.1.5 Can't send a message via  
smtp (issue with HEHLO error 502)

I tried to send a message without success. The logs says :

"DEBUG: HORDE [imp] Une erreur est survenue lors de l'envoi du  
message : End data with <CR><LF>.<CR><LF> [pid 16646 on line 27 of  
"/www/horde5/pear/php/Horde/Core/Notification/Handler/Decorator/Hordelog.php"]
2013-11-21T10:45:02+01:00 DEBUG: HORDE [imp] Unexpected output when  
creating AJAX reponse:"

Given that my smtp server doesn't support the EHLO, it is the case 502  
that is applied.
Nevertheless I added the line 368 for testing HELO outside the "catch"  
and in this case all works very fine.

I configured my backend with [smtp][debug].

Here is the output of the smtp debug :

Thu, 21 Nov 2013 10:51:44 +0100
S: 220 ************************************
C: EHLO inf-webmail
S: 502 5.5.2 Error: command not recognized
C: HELO inf-webmail
C: MAIL FROM:<gerard.breiner at ias.u-psud.fr>
S: 250 inf-mail.ias.u-psud.fr
C: RCPT TO:<gerard.breiner at ias.u-psud.fr>
S: 250 2.1.0 Ok
C: DATA
S: 250 2.1.5 Ok
C: RSET
S: 354 End data with <CR><LF>.<CR><LF>
C: QUIT
>> Slow Command: 30,018 seconds
>> ERROR: Server read/timeout error.

Piece of Smtp.php

367   $this->_connection->write('EHLO ' . $ehlo);
368                 //$this->_connection->write('HELO ' . $ehlo);
369         try {
370             $resp = $this->_getResponse(250);
371             foreach ($resp as $val) {
372                 $tmp = explode(' ', $val, 2);
373                 $this->_extensions[$tmp[0]] = empty($tmp[1])
374                     ? true
375                     : $tmp[1];
376             }
377         } catch (Horde_Smtp_Exception $e) {
378             switch ($e->getSmtpCode()) {
379             case 502:
380                 // Old server - doesn't support EHLO
381                 $this->_connection->write('HELO '.$host);
382 print "CASE 502\n".$host;
383                 $this->_extensions = array();
384                 break;
385
386             default:
387                 $this->logout();
388                 throw $e;
389
390             }

Many thanks in advance .

Best regards.

Gérard Breiner
Institut d'Astrophysique Spatiale
Bât 121
FR:91405 Orsay Campus





More information about the bugs mailing list