[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

May 30 01:07:01 HORDE [error] [imp] FAILED LOGIN to[imap/notls] as user [on line 270 of
May 30 01:22:58 HORDE [error] [imp] FAILED LOGIN to[imap/notls] as user [on line 270 of

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 {} 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 {}: invalid remote
specification (errflg=2) in Unknown on line 0

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


$conf['auth']['driver'] = 'imap';

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

$servers['imap'] = array(
    'name' => 'localhost IMAP',
    'server' => '',
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => 'Mail/',
    'namespace' => '',
    'maildomain' => '',
    'smtphost' => '',
    '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 - 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