[imp] "Error Connecting to SMTP Server" - Having difficulty troubleshooting !

2015-05-08 Thread Tim Smith
Hi,

Horde 5.2.5, Imp 6.2.8.  Both installed via PEAR.

When I try to send a mail in IMP, I get an error message saying "Error
Connecting to SMTP Server"

The server it is trying to connect to is a Postifx server, which gives
the following error " lost connection after UNKNOWN".

The authentication credentials are correct, I have validated these via
the openssl s_client method.

My horde/imp/config/backends.local.php looks like the below.  Although
the debug file exists, and I’ve even set it chmod 777, horde writes
absolutely nothing to the debug file.

$servers['imap']['disabled'] = true;
$servers['advanced'] = array (
'disabled' => false,
'name' => 'IMAP Server',
'hostspec' => 'mx.example.com',
'hordeauth' => 'full',
'protocol' => 'imap',
'port' => 993,
'secure' => 'ssl',
'smtp' => array(
'auth' => true,
'host' => 'send.example.com',
'password' => ‘none_of_your_business’,
'port' => 587,
'horde_auth'=>false,
'username' => 'horde',
'debug' => '/tmp/smtpdebug8may.txt',
'debug_raw' => true,
'localhost' => 'horde.example.com',
),
);


my horde/config/conf.php looks like the following :

$conf['mailer']['params']['host'] = 'send.example.com';
$conf['mailer']['params']['port'] = 587;
$conf['mailer']['params']['secure'] = 'ssl';
$conf['mailer']['params']['localhost'] = 'horde.example.com';
$conf['mailer']['params']['username'] = 'horde';
$conf['mailer']['params']['username_auth'] = false;
$conf['mailer']['params']['password'] = 'none_of_your_business';
$conf['mailer']['params']['password_auth'] = false;
$conf['mailer']['params']['auth'] = true;
$conf['mailer']['params']['lmtp'] = false;
$conf['mailer']['type'] = 'smtp';


Thanks for your help !
-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Re: [imp] "Error Connecting to SMTP Server" - Having difficulty troubleshooting !

2015-05-08 Thread Tim Smith
Have added "'secure' => 'ssl'".

Same result
"Error connecting to SMTP server. [0]  [pid 14004 on line 1157 of
"horde/imp/lib/Compose.php"]" in the horde logs (non debug)
"lost connection after UNKNOWN from" in the mail server logs

;-(

On 8 May 2015 at 17:42, Jan Schneider  wrote:
>
> Zitat von Tim Smith :
>
>> Hi,
>>
>> Horde 5.2.5, Imp 6.2.8.  Both installed via PEAR.
>>
>> When I try to send a mail in IMP, I get an error message saying "Error
>> Connecting to SMTP Server"
>>
>> The server it is trying to connect to is a Postifx server, which gives
>> the following error " lost connection after UNKNOWN".
>>
>> The authentication credentials are correct, I have validated these via
>> the openssl s_client method.
>>
>> My horde/imp/config/backends.local.php looks like the below.  Although
>> the debug file exists, and I’ve even set it chmod 777, horde writes
>> absolutely nothing to the debug file.
>>
>> $servers['imap']['disabled'] = true;
>> $servers['advanced'] = array (
>> 'disabled' => false,
>> 'name' => 'IMAP Server',
>> 'hostspec' => 'mx.example.com',
>> 'hordeauth' => 'full',
>> 'protocol' => 'imap',
>> 'port' => 993,
>> 'secure' => 'ssl',
>> 'smtp' => array(
>> 'auth' => true,
>> 'host' => 'send.example.com',
>> 'password' => ‘none_of_your_business’,
>> 'port' => 587,
>> 'horde_auth'=>false,
>> 'username' => 'horde',
>> 'debug' => '/tmp/smtpdebug8may.txt',
>> 'debug_raw' => true,
>> 'localhost' => 'horde.example.com',
>> ),
>> );
>>
>>
>> my horde/config/conf.php looks like the following :
>>
>> $conf['mailer']['params']['host'] = 'send.example.com';
>> $conf['mailer']['params']['port'] = 587;
>> $conf['mailer']['params']['secure'] = 'ssl';
>> $conf['mailer']['params']['localhost'] = 'horde.example.com';
>> $conf['mailer']['params']['username'] = 'horde';
>> $conf['mailer']['params']['username_auth'] = false;
>> $conf['mailer']['params']['password'] = 'none_of_your_business';
>> $conf['mailer']['params']['password_auth'] = false;
>> $conf['mailer']['params']['auth'] = true;
>> $conf['mailer']['params']['lmtp'] = false;
>> $conf['mailer']['type'] = 'smtp';
>>
>>
>> Thanks for your help !
>> --
>> imp mailing list
>> Frequently Asked Questions: http://wiki.horde.org/FAQ
>> To unsubscribe, mail: imp-unsubscr...@lists.horde.org
>
>
> Try setting the 'secure' setting in your backend.php's 'smtp' section to
> 'tls' or 'ssl'. The default should already be TLS though and that should be
> supported by the submission port.
>
> --
> Jan Schneider
> The Horde Project
> http://www.horde.org/
> https://www.facebook.com/hordeproject
>
> --
> imp mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: imp-unsubscr...@lists.horde.org
-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Re: [imp] "Error Connecting to SMTP Server" - Having difficulty troubleshooting !

2015-05-08 Thread Tim Smith
michael,

Nonsense.

How do you explain the fact that .

(1) I see "lost connection after UNKNOWN from
 " in the mail server logs ?  ;-)
(2) I can ping the mail server from the horde box
(3) I can manually authenticate via openssl s_client on the horde box.

Its not a network/port filtering issue.

On 8 May 2015 at 17:54, Michael M Slusarz  wrote:
> Quoting Tim Smith :
>
>> Hi,
>>
>> Horde 5.2.5, Imp 6.2.8.  Both installed via PEAR.
>>
>> When I try to send a mail in IMP, I get an error message saying "Error
>> Connecting to SMTP Server"
>>
>> The server it is trying to connect to is a Postifx server, which gives
>> the following error " lost connection after UNKNOWN".
>>
>> The authentication credentials are correct, I have validated these via
>> the openssl s_client method.
>>
>> My horde/imp/config/backends.local.php looks like the below.  Although
>> the debug file exists, and I’ve even set it chmod 777, horde writes
>> absolutely nothing to the debug file.
>>
>> $servers['imap']['disabled'] = true;
>> $servers['advanced'] = array (
>> 'disabled' => false,
>> 'name' => 'IMAP Server',
>> 'hostspec' => 'mx.example.com',
>> 'hordeauth' => 'full',
>> 'protocol' => 'imap',
>> 'port' => 993,
>> 'secure' => 'ssl',
>> 'smtp' => array(
>> 'auth' => true,
>> 'host' => 'send.example.com',
>> 'password' => ‘none_of_your_business’,
>> 'port' => 587,
>> 'horde_auth'=>false,
>> 'username' => 'horde',
>> 'debug' => '/tmp/smtpdebug8may.txt',
>> 'debug_raw' => true,
>> 'localhost' => 'horde.example.com',
>> ),
>> );
>
>
> If Horde writes nothing to the debug log, that means it was not able to
> reach that host/port combination.  Security settings shouldn't matter since
> TLS changeover hasn't occurred yet.
>
> This seems to be more of a network/port filtering issue than anything to do
> with Horde code.
>
> michael
>
> ___
> Michael Slusarz [slus...@horde.org]
>
>
> --
> imp mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: imp-unsubscr...@lists.horde.org
-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Re: [imp] "Error Connecting to SMTP Server" - Having difficulty troubleshooting !

2015-05-08 Thread Tim Smith
Hi michael,

Assuming I've put it in the right place
(horde/imp/lib/Compose/Exception.php, line 75, before "return true;"
), nothing logged in the debug log.

;-(


Also, coming back to your earlier point, even if "that means it was
not able to reach that host/port combination. " were true, it is a
pretty lousy sort of debug feature if "Horde writes nothing to the
debug log " because its unable to reach the host/port.   If I turn on
debugging on a piece of software, its because I want more verbosity
into what's going on behind the scenes.  Being unable to reach a
host/port seems to me to be a pretty obvious thing that should appear
in a debug log (infact, is should really appear in the standard logs,
you shouldn't need to turn on debugging to see a connectivity issue).


On 8 May 2015 at 18:15, Michael M Slusarz  wrote:
> Quoting Tim Smith :
>
>> michael,
>>
>> Nonsense.
>>
>> How do you explain the fact that .
>>
>> (1) I see "lost connection after UNKNOWN from
>>  " in the mail server logs ?  ;-)
>> (2) I can ping the mail server from the horde box
>> (3) I can manually authenticate via openssl s_client on the horde box.
>>
>> Its not a network/port filtering issue.
>
>
> stream_socket_client() is returning false for you for some reason.
>
> It's possible that adding this code to IMP_Compose_Exception#log() may
> provide further logging of the exact details of the problem:
>
> if (($previous = $this->getPrevious()) &&
> isset($previous->details)) {
> Horde::log($previous->details, $level);
>
> }
>
> michael
>
> ___
> Michael Slusarz [slus...@horde.org]
>
-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org