#33330 [Opn->Bgs]: Can't connect to server,143: Error 0

From: Date: Tue, 14 Jun 2005 02:27:54 +0000
Subject: #33330 [Opn->Bgs]: Can't connect to server,143: Error 0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80281@lists.php.net to get a copy of this message
ID: 33330 Updated by: sniper@php.net Reported By: pavel dot stratil-jun at fenix dot cz -Status: Open +Status: Bogus Bug Type: IMAP related Operating System: Solaris 9 PHP Version: 5.0.4 New Comment: Works fine for me -> must be something wrong with your system. Previous Comments: ------------------------------------------------------------------------ [2005-06-14 03:10:55] pavel dot stratil-jun at fenix dot cz Description: ------------ Hi, when trying to connect to a remote imap server (i.e. www.sendmail.cz), imap_open fails with Can't connect to sendmail.cz,143: Error 0 - I checked remote accessibility to {www.sendmail.cz:143/imap/notls}INBOX from other people's horde/imp/test.php page - I can connect to localhost mailboxes without problem - I checked if firewall isn't misconfigured - I tried different about 10 different c-client versions (2000, 2001something, 2002b, 2002d, 2002e, the newest ones, ...) - I asked people with a working remote access from horde/imp/test.php to give me their configuration. Everything works fine for example on Debian Woody (3.0) with PHP 4.3.10 and 2002e. - I tried using the c-client's mtest utility. mtest can connect to the given mailbox without problems, for example with 2002e. - This problem is present since I ever tried to get remote access to imap servers. I use solaris 9 only, problem noted first with php 4.3.6, remained until now (5.0.4). Different configure lines have been used from rather basic ones to huge ones. - I don't use the recode extension My conclusions: a OS specific PHP bug (OS because it works on debian machines for sure, PHP because the mtest c-client utility can connect, unlike the imap_open call) Test code comment: the server www.sendmail.cz is a freemail service provider which I chosed for tests because of remote imap accessiblility Thanks for helping out. Am ready to reply to any questions. Pavel S. Reproduce code: --------------- <? $mbox = imap_open ("{www.sendmail.cz:143/imap/notls}INBOX", "***", "***"); echo imap_last_error(); ?> Expected result: ---------------- not an error message (= nothing) Actual result: -------------- Can't connect to sendmail.cz,143: Error 0 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33330&edit=1

« previous php.bugs (#80281) next »