6.0.0-beta1
8/15/25

[#12853] Cannot send a message
Summary Cannot send a message
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester gerard.breiner (at) ias (dot) u-psud (dot) fr
Created 11/21/2013 (4285 days ago)
Due
Updated 11/22/2013 (4284 days ago)
Assigned 11/21/2013 (4285 days ago)
Resolved 11/21/2013 (4285 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/22/2013 09:35:59 AM gerard (dot) breiner (at) ias (dot) u-psud (dot) fr Comment #4 Reply to this comment
Many thanks Michael....
11/21/2013 10:16:59 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit 0f8aa286302445ade355e89ab15e425dd9e55a1c
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Thu Nov 21 15:11:05 2013 -0700

     [mms] Fix handling servers that don't support ESMTP (Bug #12853).

  framework/Smtp/lib/Horde/Smtp.php |    6 ++++++
  framework/Smtp/package.xml        |    2 ++
  2 files changed, 8 insertions(+), 0 deletions(-)

http://git.horde.org/horde-git/-/commit/0f8aa286302445ade355e89ab15e425dd9e55a1c
11/21/2013 10:15:59 PM Michael Slusarz Comment #2
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
Horde_Smtp 1.3.1.
11/21/2013 10:12:57 PM Michael Slusarz Priority ⇒ 2. Medium
State ⇒ Assigned
Queue ⇒ Horde Framework Packages
Version ⇒ Git master
 
11/21/2013 09:56:57 AM gerard (dot) breiner (at) ias (dot) u-psud (dot) fr Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Cannot send a message
Due ⇒ 11/21/2013
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
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@ias.u-psud.fr>
S: 250 inf-mail.ias.u-psud.fr
C: RCPT TO:<gerard.breiner@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

Saved Queries