[imp] Cannot connect with IMP to IMAP, login failed

Wim wim at karowim.org
Mon Mar 21 14:04:11 PST 2005


Hi,

 I am trying to connect Horde/IMP to my IMAP server but I always get 'Login Failed'. I am sure that my
 credentials are correct as these are working fine with a Mail Client (Mozilla). I can connect also to my
 IMAP Server with Squirrelmail (standards-based webmail package written in PHP4). Horde is running on the
 same server as my IMAP Server.
 This is my config in servers.php

 $servers['imap'] = array(
     'name' => 'IMAP Server',
     'server' => 'localhost',
     'hordeauth' => false,
     'protocol' => 'imap/notls',
     'port' => 143,
     'folders' => 'INBOX.',
     'maildomain' => 'example.com',
     'smtphost' => 'localhost',
     'smtpport' => 25,
     'dotfiles' => false,
     'hierarchies' => array()
);

 This is what I get in the horde.log
 HORDE [error] [imp] FAILED LOGIN x.x.x.x to localhost:143[imap/notls] as 'user' [on line 247 of
 /webroot/horde/imp/lib/Auth/imp.php"]
 HORDE [info] [imp] x.x.x.x failed [on line 31 of "/webroot/horde/imp/login.php"]

 Anyone an idea what the problem can be.

 ----
crystal ball cloudy today - seems as though it was cloudy the last time
you asked the exact same question - appears that you have made little
effort on your own to solve.
Spend already a few times on it.

/var/log/maillog (show authentication error? information?)
/var/log/messages (show authentication error? information?)
LOGIN: DEBUG: ip=[::ffff:127.0.0.1], command=AUTHENTICATE
imapd: LOGIN FAILED, ip=[::ffff:127.0.0.1]
imapd: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], command=AUTHENTICATE
imapd: LOGIN FAILED, ip=[::ffff:127.0.0.1]
imapd: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], command=AUTHENTICATE
imapd: LOGIN FAILED, ip=[::ffff:127.0.0.1]
imapd: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], command=LOGOUT
imapd: LOGOUT, ip=[::ffff:127.0.0.1]

try accessing /webroot/horde/test.php
show any problems? No problems

try accessing /webroot/horde/imp/test.php
show any problems? No problems
This is what I got after the PHP IMAP Support Test

server="localhost" user="user" mailbox="{localhost:143/imap/notls}INBOX"
array(3) {
[0]=>
string(52) "Retrying CRAM-MD5 authentication after Login failed."
[1]=>
string(52) "Retrying CRAM-MD5 authentication after Login failed."
[2]=>
string(50) "Can not authenticate to IMAP server: Login failed."
}

try
telnet localhost 143
can you login?
Yes no problem but still not possible with imp

if you can login, you should be able to login via the same username you
used when you logged in as in the telnet session
I can but not with imp

Anyone any ideas I don't find it, anyway many thanks





More information about the imp mailing list