[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



>Good question. And yes, dovecot is listening to all interfaces and IP
>address. 
>netstat -tl | grep -i imap
>tcp        0      0 *:imaps       *:*             LISTEN
>tcp        0      0 *:imap        *:*             LISTEN
>
>
>An error message from the /var/log/httpd/error.log:
>
>PHP Warning:  fsockopen() [<a
>href='function.fsockopen'>function.fsockopen</a>]: unable to connect to
>localhost:143 (Connection timed out)
>in /usr/share/squirrelmail/src/configtest.php on line 255
>  
>
James,

There's a small example script at <a  rel="nofollow" href="http://php.net/fsockopen";>http://php.net/fsockopen</a> (along with a 
description of the function).  I'd recommend modifying it and running it 
on the box as a further trouble shooting measure.  Something like:

|&lt;?php
$fp = fsockopen(&quot;localhost&quot;, 143, $errno, $errstr);
if (!$fp) {
   echo &quot;DAMN IT: $errstr ($errno)&lt;br /&gt;\n&quot;;
} else {
   echo &quot;Made the connection...no problems here.&quot;;
   fclose($fp);
}
?&gt; |

Also, what version of squirrelmail are you running?  My version (1.4.3) 
doesn't even *have* configtest.php...

John


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00035" href="msg00035.html">[ale] Squirrelmail, PHP5, dovecot - SOLVED!</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00029" href="msg00029.html">[ale] Squirrelmail, PHP5, dovecot</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
<li><strong><a name="00030" href="msg00030.html">[ale] Squirrelmail, PHP5, dovecot</a></strong>
<ul><li><em>From:</em> jb at sourceillustrated.com (John Wells)</li></ul></li>
<li><strong><a name="00032" href="msg00032.html">[ale] Squirrelmail, PHP5, dovecot</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00033.html">[ale] Running PPP over a modem</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00035.html">[ale] Squirrelmail, PHP5, dovecot - SOLVED!</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00032.html">[ale] Squirrelmail, PHP5, dovecot</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00035.html">[ale] Squirrelmail, PHP5, dovecot - SOLVED!</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00034"><strong>Date</strong></a></li>
<li><a href="threads.html#00034"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>