[imp] Problems with IMP4 imap authentication.

Patrick S. Roberts preachermanx at centtech.com
Tue Feb 12 00:51:14 UTC 2008


Hello I am having some rather strange issues with imap4 authentication.  

Server Setup
------------
Ubuntu 7.10 [64bit]
Linux pobox 2.6.22-14-generic #1 SMP Thu Jan 31 23:33:13 UTC 2008 x86_64 GNU/Linux

dovecot  imap
exim4   mta
horde3  framework
imp4  webmail


I can successfully install and connect to horde3, including imap based authentication.

I can go to the /imp/test.php and run a successful test.  Output from that follows.
--snip--
IMP Version

    * IMP: H3 (4.1.4)

Other Horde Applications

    * gollem: Yes (Version: H3 (1.0.3))
    * ingo: Yes (Version: H3 (1.1.2))
    * nag: Yes (Version: H3 (2.1.2))
    * turba: Yes (Version: H3 (2.1.3))

PHP Version

    * PHP Version: 5.2.3-1ubuntu6.3
    * PHP Major Version: 5.2
    * PHP Minor Version: 3
    * PHP Subminor Version: 1ubuntu6.3
    * PHP Version Classification: release
    * You are running a supported version of PHP.

PHP Module Capabilities

    * IMAP Support: Yes
    * OpenSSL Support: Yes

Miscellaneous PHP Settings

    * file_uploads enabled: Yes

Required IMP Configuration Files

    * config/conf.php: Yes
    * config/mime_drivers.php: Yes
    * config/prefs.php: Yes
    * config/servers.php: Yes

PEAR

    * PEAR Search Path (PHP's include_path):  /usr/share/horde3/lib:.:/usr/share/php:/usr/share/pear
    * PEAR: Yes
    * Recent PEAR: Yes
    * HTTP_Request: Yes
    * Auth_SASL: No
      If your IMAP server uses CRAM-MD5 or DIGEST-MD5 authentication, this module is required.

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 896 messages (814 new 0 recent)

    * Trying protocol imap/ssl, Port 993:

          ERROR - The server returned the following error message:

          Certificate failure for localhost: unable to get local issuer certificate:
          /C=US/ST=Texas/L=Austin/O=Centaur Technology, Inc./OU=IS-DEPT./OU=Terms of
          use at www.verisign.com/rpa (c)05/CN=pobox.centtech.com

    * Trying protocol imap/ssl/novalidate-cert, Port 993:

          SUCCESS - INBOX has 896 messages (814 new 0 recent)

    * Trying protocol imap/tls/novalidate-cert, Port 143:

          SUCCESS - INBOX has 896 messages (814 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:

    Could not retrieve IMAP information from the remote server.

--snip--

When I put the following or many other variations in servers.php, none of them work.
--snip--
$servers['imap'] = array(
    'name' => 'IMAP Server',
    'server' => 'localhost',
    'hordeauth' => true,
    'protocol' => '/imap/ssl/novalidate-cert',
    'port' => 993,
    'folders' => '',
    'namespace' => '',
    'maildomain' => 'centtech.com',
    'smtphost' => 'localhost',
    'smtpport' => 25,
    'realm' => '',
    'preferred' => '',
    'dotfiles' => false,
    'hierarchies' => array()
);
--snip--

I get "login failed" even though I know that the username and passwords are correct. [I have verified that they do not require an additional domain on the end of the username]

--snip--
Feb 11 18:46:20 pobox dovecot: imap-login: Login: user=<preachermanx>, method=LOGIN, rip=127.0.0.1, lip=127.0.0.1, TLS
Feb 11 18:46:22 pobox dovecot: IMAP(preachermanx): Disconnected: Logged out
Feb 11 18:46:22 pobox dovecot: imap-login: Aborted login: method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Feb 11 18:46:36 pobox dovecot: imap-login: Disconnected: rip=127.0.0.1, lip=127.0.0.1, TLS handshake
--snip--

Assumable that the first login is from horde working, then the aborted one is from imp trying to connect.

--snip--
Feb 11 18:46:36 HORDE [error] [imp] FAILED LOGIN 10.20.0.99 to pobox:993[imap] as preachermanx [on line 258 of "/usr/share/horde3/imp/lib/Auth/imp.php"]
Feb 11 18:46:38 HORDE [error] [imp] FAILED LOGIN 10.20.0.99 to localhost:993[/imap/ssl/novalidate-cert] as preachermanx [on line 258 of "/usr/share/horde3/imp/lib/Auth/imp.php"]
Feb 11 18:46:40 HORDE [error] [imp] FAILED LOGIN 10.20.0.99 to localhost:993[/imap/ssl/novalidate-cert] as preachermanx [on line 258 of "/usr/share/horde3/imp/lib/Auth/imp.php"]
Feb 11 18:46:51 HORDE [error] [imp] FAILED LOGIN 10.20.0.99 to localhost:993[/imap/ssl/novalidate-cert] as preachermanx [on line 258 of "/usr/share/horde3/imp/lib/Auth/imp.php"]
Feb 11 18:50:08 HORDE [error] [imp] FAILED LOGIN 10.20.0.99 to pobox.centtech.com:993[imap] as preachermanx [on line 258 of "/usr/share/horde3/imp/lib/Auth/imp.php"]
--snip--

Any help would be greatly appreciated I have searched and read as much as possible to no avail so far.

-- 
   __                       __
  / / Patrick S. Roberts   / / 512.743.1461(c)
 / /  Sr. Systems Admin   / /  512.418.5792(o)
/_/   Centaur Technology /_/   "Laboribus vendunt dei nobis omnia bona."


More information about the imp mailing list