Nicholas Vettese on Fri, 17 May 2002 10:26:15 -0400


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

Re: [PLUG] TWIG fails to connect to IMAP server (RH7.3)


I have been looking at different groupware packages for about a month now, and came across TWIG. I havent tried it, but I also came across tiggi (www.neddix.de/twiggi-gw ), based on the TWIG program, and still being worked on. I have it installed, but I have been spending time with moregroupware and phpgroupware, so I can't tell you much more beyond that.

Nick


From: Kevin Brosius <kbrosius@kns.com>
Reply-To: plug@lists.phillylinux.org
To: plug@lists.phillylinux.org
Subject: Re: [PLUG] TWIG fails to connect to IMAP server (RH7.3)
Date: Fri, 17 May 2002 08:50:42 -0400

Bill Jonas wrote:
>
> Hi,
>
> I'm trying to evaluate some webmail packages, and I was pointed to TWIG
> (<http://twig.screwdriver.net/>).
> I've been having some problems getting it to run (as well as other
> PHP packages, so I think the problem's related).
>
> So I've installed the package, configured it to look at the IMAP server
> on localhost, and enabled the IMAP server by editing /etc/xinetd.d/imap.
> When I go to /twig/test.php3, the basic IMAP test (to make sure that
> IMAP support is compiled into PHP) works, and the SQL test (to connect
> to the SQL server, DB, and DB table) works as well.  However, the test
> that attempts to log in the IMAP server fails.  After entering my
> username and password and clicking the submit button, it attempts to
> connect to localhost:143 and returns with the error message:
>
>   Warning: Couldn't open stream {localhost:143}INBOX in
>     /var/www/html/twig/lib/mail/php-imap.inc.php3 on line 81
>   Failed
>
> Now I know that this is obviously bogus, since I can connect to the IMAP
> server both from localhost and remotely and speak IMAP with it, and Mutt
> also works fine (again, from localhost and a different host).  Relevant
> portions of /var/log/maillog:
>
> Connecting with netcat from localhost:
> May 16 20:24:25 cipher imapd[3804]: imap service init from 127.0.0.1
> May 16 20:24:29 cipher imapd[3804]: Login user=bj
> host=localhost.localdomain [127.0.0.1]
> May 16 20:24:33 cipher imapd[3804]: Logout user=bj
> host=localhost.localdomain [127.0.0.1]
>
> Using Mutt on localhost:
> May 16 20:24:39 cipher imapd[3806]: imap service init from 127.0.0.1
> May 16 20:24:42 cipher imapd[3806]: Login user=bj
> host=localhost.localdomain [127.0.0.1]
> May 16 20:24:43 cipher imapd[3806]: Command stream end of file, while
> reading line user=bj host=localhost.localdomain [127.0.0.1]
>
> Connecting with netcat from a different host on my network:
> May 16 20:24:54 cipher imapd[3807]: imap service init from 10.1.1.2
> May 16 20:25:01 cipher imapd[3807]: Login user=bj
> host=epoch.billjonas.com [10.1.1.2]
> May 16 20:25:05 cipher imapd[3807]: Logout user=bj
> host=epoch.billjonas.com [10.1.1.2]
>
> And with Mutt from the other host:
> May 16 20:25:15 cipher imapd[3810]: imap service init from 10.1.1.2
> May 16 20:25:20 cipher imapd[3810]: Login user=bj
> host=epoch.billjonas.com [10.1.1.2]
> May 16 20:25:26 cipher imapd[3810]: Logout user=bj
> host=epoch.billjonas.com [10.1.1.2]
>
> When I try to use TWIG:
> May 16 20:25:40 cipher imapd[3811]: imap service init from 127.0.0.1
> May 16 20:25:40 cipher imapd[3811]: Command stream end of file, while
> reading line user=??? host=UNKNOWN
>
> Relevant versions of related packages:
> apache-1.3.23-11
> php-pgsql-4.1.2-7
> apache-devel-1.3.23-11
> php-devel-4.1.2-7
> imap-2001a-10
> php-4.1.2-7
> php-ldap-4.1.2-7
> php-imap-4.1.2-7
>
> The IMAP server is, according to RPM, the U. Washington IMAP server.  In
> any case, it's the one that comes with RedHat 7.3.  TWIG is 2.7.5,
> installed from tarball.
>
> Another possibility is that there are problems with the IMAP functions
> in PHP4 (or maybe some subtle differences from PHP3).  I found this
> whilst searching Google:
> <http://dbforums.com/archive/181/2002/03/3/324021>.  Based on this, I
> grabbed an SRPM of PHP3 from RH6.2 and compiled it.  Still no love,
> still the same behavior..
>
> Neither my username nor password contain any high-ASCII characters;
> they're all in the 7-bit range.
>
> Relevant settings in TWIG's config.inc.php3:
> $config["auth"]                 = "forms";
> $config["security"]             = "basic";
> $config["login_handler"]        = "cookie"; (Note that I have cookies
>                                              enabled in my browser.)
> $config["imap_servertype"]      = "php-imap";  (The other alternative is
>                                                 php-pop3.)
> $config["imap_server"]          = "localhost";
> $config["imap_port"]            = "143";
>
> Any help appreciated.


Myabe you already looked, but this seems related: http://hyppo.screwdriver.net/show.phtml?id=135893

The mail archive is available off the twig site.

--
Kevin Brosius

______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx



______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug