CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • "Connection refused" code=111
Pages: [1]

Author Topic: "Connection refused" code=111  (Read 1556 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
"Connection refused" code=111
March 26, 2009, 03:41:31 am
This issue has been posted before, but each case is different and the host is not being terribly helpful in this case. This is a Drupal 5.16 CiviCRM 1.8 site. Yes, 1.8--when I was given this site fix it up, just last week, it was Drupal 5.1. :(

Anyhow, If I use smtp.mysite.com:25 for the SMTP settings and attempt to email a contact I get:

Code: [Select]
[to_string] => [pear_error: message="php_network_getaddresses: getaddrinfo failed: Name or service not known" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]

If I use localhost:25 then I get:

Code: [Select]
[to_string] => [pear_error: message="Connection refused" code=111 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]

I tried using other ports but all give the same result. The host used the Drupal contactus form, which of course works, and he sent me a snippet from the mail log, apparently to prove to me that localhost works, but I don't know how to read it exactly.

I tried enabling debugging in packages/Mail/smtp.php and I get simply:

Code: [Select]
DEBUG: Send: QUIT

Any suggestions how to further debug this?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: "Connection refused" code=111
March 27, 2009, 01:10:26 am
To follow up, the host had claimed that the error was "caused by a glitch in the software." Since I couldn't convince them otherwise, I installed this SMTP tester Pear package on the site:

http://www.phpclasses.org/browse/package/14.html

When that gave the same error, then they decided to fix it. They did and now it works. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • "Connection refused" code=111

This forum was archived on 2017-11-26.