hello all,
i am getting the error "connection dropped by imap-server" when i try
to login. the page simply hangs for some time on redirect.php and then
i get this error message.
i checked configuration of configtest.php, earlier it tool few seconds
and i used to get the success message but now its first hangs on
"Checking outgoing mail service..." i get a success message on this
but after sometime and then it simply fails on IMAP.
i checked my imap server setting and increased MAXPERIP to 200 which i
think is sufficent for squirrelmail accesss imap from localhost.
telnet localhost 143 ..works abs. fine.
# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL
ACL2=UNION] Courier-IMAP ready. Copyright 1998-2004 Double Precision,
Inc. See COPYING for distribution information.
a login [EMAIL PROTECTED] <password>
a OK LOGIN Ok.
a logout
* BYE Courier-IMAP server shutting down
a OK LOGOUT completed
Connection closed by foreign host.
#
i am able to receive mails on thunderbird. enabled imap logging at
DEBUG level 2 these are the logs
Sep 16 17:46:12 ngblhost1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 16 17:49:02 ngblhost1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 16 17:49:17 ngblhost1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 16 17:51:17 ngblhost1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 16 17:52:47 ngblhost1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 16 17:55:17 ngblhost1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 16 17:57:17 ngblhost1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 16 18:03:39 ngblhost1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 16 18:06:05 ngblhost1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 16 18:06:14 ngblhost1 imapd: LOGIN: DEBUG: ip=[::ffff:127.0.0.1],
command=LOGIN
Sep 16 18:06:14 ngblhost1 imapd: LOGIN: DEBUG: ip=[::ffff:127.0.0.1],
[EMAIL PROTECTED]
Sep 16 18:06:14 ngblhost1 imapd: LOGIN: DEBUG: ip=[::ffff:127.0.0.1],
password=<password>
Sep 16 18:06:14 ngblhost1 imapd: LOGIN, [EMAIL PROTECTED],
ip=[::ffff:127.0.0.1], protocol=IMAP
Sep 16 18:06:16 ngblhost1 imapd: LOGOUT, [EMAIL PROTECTED],
ip=[::ffff:127.0.0.1], headers=0, body=0, time=2
Sep 16 18:07:40 ngblhost1 imapd: Connection, ip=[::ffff:127.0.0.1]
and when tryinf to connect from squirrelmail the only message i get is
"imapd: Connection, ip=[::ffff:127.0.0.1]" nothing after that and then
i get the connection dropped error.
i thought it was the imap error but i am able to connect to imap by
all other means.
server conf : RedHat 8.0
squirrelmail 1.4.4 (tired with 1.4.8 also but was unable to login, same error)
Courier-imap - 4.0.1
courier-authlib-0.58
php-4.4.4
apche-2.0.59 (about 200 virtual hosts)
mail server is a default qmr (qmailrocks) installation.
after lot of trials i think its some thing to do with fsockopen or
fgets. i tried executing this simple script
<?php
/**
* Check the socket
*/
echo "Checking socket... \n";
/** Can we open a connection? */
$stream = fsockopen("localhost", 143,$errorNumber, $errorString);
if(!$stream) {
echo "error : $errorNumber , $errorString \n";
}
else {
echo "success \n";
}
//$imapline = fgets($stream);
if ($imapline) {
echo $imapline;
}
else {
echo "failed to get a line from socket";
}
?>
commenting fgets give the results instantaneously but as i uncomment
the fgets line script hangs and then i get the error ""failed to get
a line from socket"
thanks
Sandeep
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines:
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives:
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users