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 |
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
Assigned to Michael Slusarz
State ⇒ Resolved
State ⇒ Assigned
Queue ⇒ Horde Framework Packages
Version ⇒ Git master
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Cannot send a message
Due ⇒ 11/21/2013
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
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
ERROR: Server read/timeout error.
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