[imp] IMP RC-3 login problem

Hisham Elshahawi hisham@g3D.com
Thu, 30 May 2002 12:19:56 -0400


I am noticing similar issues.  I just upgraded from IMP 2.2.8 to IMP 3.1
RC-3 running on FreeBSD-4.5stable.  After tooling with various config
options I determined that it fails to login and the IMAP connection is never
being made, even when I remotely specified an IMAP server IP.  The errors
are:

/var/log/horde.log:
May 30 01:07:01 HORDE [error] [imp] FAILED LOGIN 127.0.0.1 to
127.0.0.1:143[imap/notls] as user [on line 270 of
"/usr/local/www/horde/imp/lib/IMP.php"]
May 30 01:22:58 HORDE [error] [imp] FAILED LOGIN 127.0.0.1 to
127.0.0.1:143[imap/notls] as user [on line 270 of
"/usr/local/www/horde/imp/lib/IMP.php"]

Line 255 of IMP.php shows where the imap connection is being opened:
$imp['stream'] = @imap_open($connstr, $imp['user'],
Secret::read(Secret::getKey('imp'), $imp['pass']));

After tracing what line 270 is in lib/IMP.php, I noticed it was just the log
printing function, however it is called ONLY if the imap connection does not
return a valid code.  I removed the '@' infront of imap_open() to unsuppress
error reporting.  Logging in now errors in browser:

Warning: Couldn't open stream {127.0.0.1:143/imap/notls} in
/usr/local/www/horde/imp/lib/IMP.php on line 257

Warning: Cannot add header information - headers already sent by (output
started at /usr/local/www/horde/imp/lib/IMP.php:257) in
/usr/local/www/horde/imp/redirect.php on line 87

Notice: Can't open mailbox {127.0.0.1:143/imap/notls}: invalid remote
specification (errflg=2) in Unknown on line 0


Has anyone seen this or has suggestions as to what this might mean?

Hisham


MY CONFIG
horde.php:
$conf['auth']['driver'] = 'imap';

registry.php:
$this->registry['auth']['login'] = 'imp';
$this->registry['auth']['logout'] = 'imp';

imp/servers.php:
$servers['imap'] = array(
    'name' => 'localhost IMAP',
    'server' => '127.0.0.1',
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => 'Mail/',
    'namespace' => '',
    'maildomain' => '',
    'smtphost' => '127.0.0.1',
    'realm' => '',
    'preferred' => ''
);

Horde Versions
Horde: 2.1
IMP: 3.1 (run IMP tests)
Turba: 1.1
PHP Version
View phpinfo() screen
PHP Version: 4.2.1
PHP Major Version: 4.2
PHP Minor Version: 1
PHP Version Classification: release
You are running a supported version of PHP.
PHP Module Capabilities
FTP Support: Yes
Gettext Support: Yes
IMAP Support: Yes
LDAP Support: Yes
MCAL Support: No
Mcrypt Support: Yes
MySQL Support: Yes
PostgreSQL Support: No
XML Support: Yes
Miscellaneous PHP Settings
magic_quotes_runtime set to Off: Yes
PHP Sessions
Session counter: 1
To unregister the session: click here
PEAR
PEAR - Yes
Recent PEAR - Yes
Mail::RFC822 - Yes
Log - Yes
DB - Yes

--
Hisham Elshahawi        Email: hisham at g3D.com
g3D, LLC.               Web: http://www.g3D.com