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

Michael M Slusarz slusarz at mail.curecanti.org
Mon Mar 21 14:22:33 PST 2005


Quoting Wim <wim at karowim.org>:

> 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."
> }

If using Cyrus IMAP, you need to disable CRAM-MD5 authentication (I 
think c-client only supports plaintext login - i may be a bit hazy so 
check the archives because I know this has come up previously).

michael

_______________________________________
Michael Slusarz [slusarz at curecanti.org]


More information about the imp mailing list