[horde] Error connecting to smtp server

Kinglok, Fong busywater at gmail.com
Wed Aug 28 06:57:38 UTC 2013


On 28 Aug, 2013, at 2:31 PM, Michael M Slusarz <slusarz at horde.org> wrote:

> Quoting "Kinglok, Fong" <busywater at gmail.com>:
> 
>> On 28 Aug, 2013, at 2:07 PM, Michael M Slusarz <slusarz at horde.org> wrote:
>> 
>>> Quoting XG41 <witscher at gmail.com>:
>>> 
>>>> Hi,
>>>> 
>>>> After upgrading imp 6.1.4 I am unable to send email. I get this error message. I haven't changed anything other than to upgrade all upgradable packages. Using Ubuntu LTS.
>>>> 
>>>> I seem to recall someone mentioning a similar problem but can't seem to find the message. Has anyone else had this issue? Any help would be appreciated.
>>>> 
>>>> 
>>>> 2013-08-28T05:11:00+00:00 ERR: HORDE [imp] Error connecting to SMTP server. [0] php_network_getaddresses: getaddrinfo failed: Name or service not known [pid 13963 on line 1064 of "/var/www/horde/imp/lib/Compose.php"]
>>> 
>>> I would double check your SMTP host settings.  Or temporarily convert your SMTP host to an IP address (maybe a DNS resolving issue?).
>>> 
>>> 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
>> 
>> 
>> Hi,
>> 
>> I encounter the same issue in failing sending email after upgrading to imp 6.1.4.
>> 
>> I try installing (since upgrading to 6.1.4 does not install the package)
>> pear install horde/Horde_Smtp
>> 
>> and then in horde debugging message, I got
>> 2013-08-28 14:20:46.463285500 2013-08-28T06:20:46+00:00 DEBUG: HORDE  1. Horde_Core_Ajax_Application->doAction() /var/www/html/webmail/services/ajax.php:58
>> 2013-08-28 14:20:46.463287500  2. call_user_func() /usr/share/php/Horde/Core/Ajax/Application.php:162
>> 2013-08-28 14:20:46.463809500  3. IMP_Ajax_Application_Handler_Common->sendMessage()
>> 2013-08-28 14:20:46.464267500  4. IMP_Compose->buildAndSendMessage() /var/www/html/webmail/imp/lib/Ajax/Application/Handler/Common.php:530
>> 2013-08-28 14:20:46.464270500  5. IMP_Compose->sendMessage() /var/www/html/webmail/imp/lib/Compose.php:838
>> 2013-08-28 14:20:46.464272500  6. Horde_Core_Ajax_Application->doAction() /var/www/html/webmail/services/ajax.php:58
>> 2013-08-28 14:20:46.464274500  7. call_user_func() /usr/share/php/Horde/Core/Ajax/Application.php:162
>> 2013-08-28 14:20:46.464784500  8. IMP_Ajax_Application_Handler_Common->sendMessage()
>> 2013-08-28 14:20:46.464787500  9. IMP_Compose->buildAndSendMessage() /var/www/html/webmail/imp/lib/Ajax/Application/Handler/Common.php:530
>> 2013-08-28 14:20:46.464789500 10. IMP_Compose->sendMessage() /var/www/html/webmail/imp/lib/Compose.php:838
>> 2013-08-28 14:20:46.464791500 11. Horde_Mime_Part->send() /var/www/html/webmail/imp/lib/Compose.php:1062
>> 2013-08-28 14:20:46.465285500 12. Horde_Core_Ajax_Application->doAction() /var/www/html/webmail/services/ajax.php:58
>> 2013-08-28 14:20:46.465288500 13. call_user_func() /usr/share/php/Horde/Core/Ajax/Application.php:162
>> 2013-08-28 14:20:46.465290500 14. IMP_Ajax_Application_Handler_Common->sendMessage()
>> 2013-08-28 14:20:46.465292500 15. IMP_Compose->buildAndSendMessage() /var/www/html/webmail/imp/lib/Ajax/Application/Handler/Common.php:530
>> 2013-08-28 14:20:46.465787500 16. IMP_Compose->sendMessage() /var/www/html/webmail/imp/lib/Compose.php:838
>> 2013-08-28 14:20:46.465789500 17. Horde_Mime_Part->send() /var/www/html/webmail/imp/lib/Compose.php:1062
>> 2013-08-28 14:20:46.465791500 18. Horde_Mail_Transport_Smtphorde->send() /usr/share/php/Horde/Mime/Part.php:1752
>> 2013-08-28 14:20:46.465793500 19. Horde_Core_Ajax_Application->doAction() /var/www/html/webmail/services/ajax.php:58
>> 2013-08-28 14:20:46.466509500 20. call_user_func() /usr/share/php/Horde/Core/Ajax/Application.php:162
>> 2013-08-28 14:20:46.466511500 21. IMP_Ajax_Application_Handler_Common->sendMessage()
>> 2013-08-28 14:20:46.466513500 22. IMP_Compose->buildAndSendMessage() /var/www/html/webmail/imp/lib/Ajax/Application/Handler/Common.php:530
>> 2013-08-28 14:20:46.466515500 23. IMP_Compose->sendMessage() /var/www/html/webmail/imp/lib/Compose.php:838
>> 2013-08-28 14:20:46.467013500 24. Horde_Mime_Part->send() /var/www/html/webmail/imp/lib/Compose.php:1062
>> 2013-08-28 14:20:46.467015500 25. Horde_Mail_Transport_Smtphorde->send() /usr/share/php/Horde/Mime/Part.php:1752
>> 2013-08-28 14:20:46.467017500 26. Horde_Smtp->send() /usr/share/php/Horde/Mail/Transport/Smtphorde.php:134
>> 2013-08-28 14:20:46.467019500 27. Horde_Smtp->_getResponse() /usr/share/php/Horde/Smtp.php:483
> 
> You need to provide a SMTP debug log (see backends.php).
> 
> michael
> 
> ___________________________________
> Michael Slusarz [slusarz at horde.org]
> 


Hi Michael,

Here you are.

S: 220 mail.domain.com ESMTP
C: EHLO mail
S: 250-mail.domain.com
S: 250-PIPELINING
S: 250-SIZE 104857600
S: 250-VRFY
S: 250-ETRN
S: 250-STARTTLS
S: 250-ENHANCEDSTATUSCODES
S: 250-8BITMIME
S: 250 DSN
C: MAIL FROM:<postmaster at domain.com> SIZE=1158
C: RCPT TO:<abc at foo.com>
C: DATA
S: 530 5.7.0 Must issue a STARTTLS command first
S: 530 5.7.0 Must issue a STARTTLS command first
S: 530 5.7.0 Must issue a STARTTLS command first
C: RSET
S: 530 5.7.0 Must issue a STARTTLS command first
C: QUIT
S: 221 2.0.0 Bye


My imp config: (backend.local.php)
...
$servers['advanced'] = array(
    'disabled' => false,
    'name' => 'Advanced IMAP Server',
    'hostspec' => '127.0.0.1',
    'hordeauth' => 'full',
    'protocol' => 'imap',
    'port' => 143,
    'secure' => false,
    'maildomain' => '',
    'smtp' => array(
    //    'auth' => true,
        'debug' => '/tmp/smtp_log',
    //    'host' => 'smtp.example.com',
    //    'imp_auth' => false,
    //    'localhost' => 'localhost',
    //    'password' => null,
    //    'port' => 587,
    //    'username' => null
          'horde_auth' => true,
...

I have my horde mailer setup in horde config
$conf['mailer']['params']['host'] = 'mail.domain.com';
$conf['mailer']['params']['port'] = 587;
$conf['mailer']['params']['auth'] = true;
$conf['mailer']['type'] = 'smtp';


Hope this helps.

Kinglok, Fong
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.horde.org/archives/horde/attachments/20130828/8c15e288/attachment-0001.bin>


More information about the horde mailing list