[imp] Login problem
Brent J. Nordquist
bjn@horde.org
Fri, 21 Dec 2001 07:41:28 -0600 (CST)
On Tue, 18 Dec 2001, Thomas Jalsovsky <admin@postel.sk> wrote:
> It means, that I have the horde directory not under the webserver root
> but elsewhere and I made two aliases for the webmail (one for /horde
> and one for /imp).
See the other message I'm sending to the IMP list about how "imp" needs to
be under "horde". It's fine to have it outside the DocumentRoot, but you
should only need one alias (for /horde) because you won't be using /imp,
it will be /horde/imp.
> Now I changed the configuration of the whole server:
> RedHat 7.2, linux-2.4.16-0.3, apache-1.3.22 (compiled), imap-2001a-2,
> php-4.1.0 (compiled), mysql-3.23.46 (compiled), mod-ssl-2.8.5 (compiled),
> openssl-0.9.6b
Check the IMP list for recent reports of trouble with UW-IMAP 2001a -- if
you compiled your PHP with that version of the c-client it's probably not
going to work the way you want.
> > Have you checked your IMAP server logs to make sure it's actually trying
> > to connect?
>
> I found:
> Dec 18 18:04:09 server ipop3d[27879]: pop3 service init from 127.0.0.1
> Dec 18 18:04:09 server ipop3d[27879]: Command stream end of file while
> reading line user=??? host=UNKNOWN
Hm. Are you trying to configure IMP to use POP3 or IMAP? Because that
log entry shows it connecting using POP3. If you're trying to use IMAP,
you might want to use try simple "imap_test.php" script to make sure IMAP
support in PHP is working.
--- cut here ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>IMAP mailbox test</title>
</head>
<body>
<?php
$server = "example.com";
$user = "user";
$passwd = "password";
//
$mbname = '{'.$server.':143}INBOX';
echo "server=", $server, " user=", $user, " mailbox=", $mbname, "<br />\n";
$mbox = imap_open($mbname, $user, $passwd);
$minfo = @imap_mailboxmsginfo($mbox);
echo "INBOX has ", $minfo->Nmsgs, " messages (";
echo $minfo->Unread, " new ", $minfo->Recent, " recent)\n";
imap_close($mbox);
?>
</body>
</html>
--- cut here ---
--
Brent J. Nordquist <bjn@horde.org> N0BJN / OPN: #horde
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942