[imp] IMAP login issue

Steve Paras-Charlton steve at falchion.com
Tue Sep 18 16:46:54 UTC 2007


Sorry, I misremembered the test results slightly, there is of course no
imap/sasl/novalidate-cert, it is rather imap/tls/novalidate-cert.

Here's the test output:

PHP Mail Server Support Test
Attempting to automatically determine the correct connection parameters
for your server: 
      * Trying protocol imap/notls, Port 143: 
                SUCCESS - INBOX has 24733 messages (18873 new 1 recent)
      * Trying protocol imap/ssl, Port 993: 
                ERROR - The server returned the following error
                message: 
                Certificate failure for localhost: self signed certificate:
                /C=US/ST=NY/L=New York/O=Courier Mail Server/OU=Automatically-generated
                IMAP SSL key/CN=localhost/emailAddress=postmaster at example.com
      * Trying protocol imap/ssl/novalidate-cert, Port 993: 
                SUCCESS - INBOX has 24733 messages (18873 new 0 recent)
      * Trying protocol imap/tls/novalidate-cert, Port 143: 
                SUCCESS - INBOX has 24733 messages (18873 new 0 recent)
The following configurations were successful and may be used in your
imp/config/servers.php file: 
        Configuration 1
                'server' => 'localhost'
                'protocol' => 'imap/notls'
                'port' => '143'
        Configuration 2
                'server' => 'localhost'
                'protocol' => 'imap/ssl/novalidate-cert'
                'port' => '993'
        Configuration 3
                'server' => 'localhost'
                'protocol' => 'imap/tls/novalidate-cert'
                'port' => '143'
The following IMAP server information was discovered from the remote
server: 
        Namespace Information
                NAMESPACE: "INBOX."
                DELIMITER: .
                TYPE: personal
                
                NAMESPACE: "#shared."
                DELIMITER: .
                TYPE: shared
                
                NAMESPACE: "shared."
                DELIMITER: .
                TYPE: shared
                
        IMAP server capabilities:
                Array
                (
                    [UIDPLUS] => 1
                    [CHILDREN] => 1
                    [NAMESPACE] => 1
                    [THREAD] => Array
                        (
                            [0] => ORDEREDSUBJECT
                            [1] => REFERENCES
                        )
                
                    [SORT] => 1
                    [QUOTA] => 1
                    [IDLE] => 1
                    [ACL] => 1
                    [ACL2] => Array
                        (
                            [0] => UNION
                        )
                
                    [STARTTLS] => 1
                )
        IMAP CHILDREN support:
                SUPPORTED
        IMAP Charset Search Support:
                Server supports searching with the UTF-8 character set.


On Tue, 2007-18-09 at 09:23 -0700, Steve Paras-Charlton wrote:
> OK, first of all, I've read the FAQs, searched the list archives and the
> bugs database, but can't seem to find anything that resembles my
> problem, but if I'm being stupid, then constructive flaming pointers
> welcome :)
> 
> I've just setup a new mail/web server (Ubuntu Fiesty) using horde/imp
> cvs (no tags) and courier imapd.
> 
> I've setup horde to authenticate via imap (imap/notls,localhost) and
> that works fine.  I do the same for IMP, and I get "Login Failed".  The
> imp/test.php login returns fine for imap/notls,
> imap/ssl/novalidate-cert, and imap/sasl/novalidate-cert (I'll reply to
> myself with actual output when I get to the appropriate system). Copy
> and paste of the test.php output into servers.php (any of the valid
> ones) yields exactly the same result.
> 
> Further investigation using tcpdump on lo shows that both the horde
> login and the test.php contact imapd as one would expect, but when
> trying the IMP login, there is no traffic!  Just a failure message.
> 
> Any thoughts?
> 
> horde.log relevant section for imp login failure:
> 
> Sep 18 09:21:47 HORDE [debug] [imp] SQL query by
> Horde_Alarm_sql::_list(): SELECT alarm_id, alarm_uid, alarm_start,
> alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text,
> alarm_snooze, alarm_internal FROM horde_alarms WHERE alarm_dismissed = 0
> AND ((alarm_snooze IS NULL AND alarm_start <= ?) OR alarm_snooze <= ?)
> AND (alarm_end IS NULL OR alarm_end >= ?) AND (alarm_uid = ? OR
> alarm_uid = ?) ORDER BY alarm_start, alarm_end [on line 148 of
> "/usr/share/php/Horde/Alarm/sql.php"]
> Sep 18 09:21:59 HORDE [error] [imp] FAILED LOGIN for steve
> [192.168.5.160] to {localhost:993 [imap/ssl/novalidate-cert]} [on line
> 132 of "/usr/local/horde3/horde/imp/lib/Auth/imp.php"]
> Sep 18 09:21:59 HORDE [debug] [imp] SQL query by
> Horde_Alarm_sql::_list(): SELECT alarm_id, alarm_uid, alarm_start,
> alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text,
> alarm_snooze, alarm_internal FROM horde_alarms WHERE alarm_dismissed = 0
> AND ((alarm_snooze IS NULL AND alarm_start <= ?) OR alarm_snooze <= ?)
> AND (alarm_end IS NULL OR alarm_end >= ?) AND (alarm_uid = ? OR
> alarm_uid = ?) ORDER BY alarm_start, alarm_end [on line 148 of
> "/usr/share/php/Horde/Alarm/sql.php"]
> 
> 
> Current servers.php section:
> 
> $servers['falchion'] = array(
>     'name' => 'Falchion Mail',
>     'server' => 'localhost',
>     'protocol' => 'imap/ssl/novalidate-cert',
>     'port' => 993,
> );
> 
> 
> alternate which was the same:
> 
> *$servers['imap'] = array(
>     'name' => 'Falchion Mail',
>     'server' => 'localhost',
>     'hordeauth' => false,
>     'protocol' => 'imap/ssl/novalidate-cert',
>     'port' => 993,
>     'maildomain' => 'falchion.com',
>     'smtphost' => 'localhost',
>     'smtpport' => 25,
>     'realm' => '',
>     'preferred' => '1',
> );
> 
> 



More information about the imp mailing list