[imp] IMP - IMAP authentication problem

Mark Worsdall imp at worsdall.demon.co.uk
Tue Sep 20 16:06:09 PDT 2005


In message <loom.20050920T231303-627 at post.gmane.org>, Diego Peinador 
<diegopeinador at gmail.com> writes
>Hi,
>I have a funny problem with the IMAP authentication in IMP4. It always says
>'Login failed.' when i try to login. I dont get any errors when i use
>thunderbird to check my mail, i can even use the imap server for horde
>administration authentication but not for the mail (IMP) authentication
>Some of my configurations settings:
>
>servers.php:
>$servers['imap'] = array(
>    'name' => 'IMAP Server',
>    'server' => 'localhost',
>    'hordeauth' => false,
>    'protocol' => '/imap/ssl/novalidate-cert',
>    'port' => 993,
>    'folders' => '',
>    'namespace' => '',
>    'maildomain' => 'mydomain.com',
>    'smtphost' => 'localhost',
>    'smtpport' => 25,
>    'realm' => '',
>    'preferred' => '',
>    'dotfiles' => false,
>    'hierarchies' => array()
>);
>
>horde/conf.php: (this works)
>$conf['auth']['admins'] = array('me at mydomain.com');
>$conf['auth']['checkip'] = true;
>$conf['auth']['params']['dsn'] = '{localhost:993/imap/ssl/novalidate-cert}';
>$conf['auth']['params']['imapconfig'] = 'dsn';
>$conf['auth']['driver'] = 'imap';
>
>
>Log from /var/log/horde/horde3.log:
>Sep 20 23:06:03 HORDE [error] [imp] FAILED LOGIN a.b.c.d to
>localhost:993[/imap/ssl/novalidate-cert] as me at mydomain.com [on line 247 of
>"/usr/share/horde3/imp/lib/Auth/imp.php"]
>

I am no expert but had trouble with certificates doing this, what helped 
me was using the imp/test.php page and doing a login via that, it tries 
all types and tells you what is successful. Then I set the horde type to 
be the same auth type:

/horde/conf.php
$conf['auth']['params']['hostspec'] = 'imap.mydomain.com';
$$conf['auth']['params']['port'] = 143;
$conf['auth']['params']['protocol'] = 'imap/notls';
$conf['auth']['params']['imapconfig'] = 'separate';
$conf['auth']['driver'] = 'imap';

/horde/imp/config/servers.php
$servers['imap'] = array(
     'name' => 'IMAP Server',
     'server' => 'imap.mydomain.com',
     'hordeauth' => true,
     'protocol' => 'imap/notls',
     'port' => '143',
     'folders' => 'Mail/',
     'namespace' => '',
     'maildomain' => 'mydomain.com',
     'smtphost' => 'localhost',
     'smtpport' => 25,
     'realm' => '',
     'preferred' => '',
     'dotfiles' => false,
     'hierarchies' => array()
);


So tyhe main diff between our setup is hordeauth is tru for me and false 
for you.



-- 
Mark Worsdall
http://www.shadowrobot.com/  need a hand??


More information about the imp mailing list