IMAP-SSL vs IMP3.1(RC1)

Tiago Fioreze tapera@inf.ufsm.br
Sun, 31 Mar 2002 11:41:03 -0300


       Hi Everybody !!!

       I have seen this question in mailing list archive, but few responses.
       
       Configuration :
            RedHat 7.2
            Horde 2.1(RC1)
            IMP 3.1(RC1)
            Turba 1.1(RC1)
            Apache 1.3.23
            PHP 4.1.2
            imap2000c (c-client)
            Courier-IMAP 1.4.3 (my mail server)

       I want that the IMP makes safe connections (imaps) for my mail server. 
In the file imapd-ssl, I have do the following :

       IMAPDSSLSTART=YES
       IMAPDSTARTTLS=NO
       (My certificate is self-signed)
       TLS_CERTFILE=/usr/lib/courier-imap/share/imapd.pem

       In the file servers.php :

       $servers['imap'] = array(
       'name' => 'IMAP Server',
       'server' => 'myserver.com.br',
       'protocol' => 'imap/ssl/novalidate-cert',
       'port' => 993,
       'folders' => 'INBOX.',
       'namespace' => '',
       'maildomain' => 'mydomain',
       'smtphost' => '',
       'realm' => 'mydomain',
       'preferred' => ''

       I did compile imap2000c with :
       make lnp SPECIALAUTHENTICATORS=ssl

       My phpinfo shows the following : 
       './configure' '--with-apache=../apache_1.3.23/' '--with-gettext' '--with-
xml' '--with-mysql=/usr/local/mysql/' '--with-pgsql=/usr/local/pgsql/' '--with-
mcrypt' '--with-imap-ssl' '--with-imap=../imap-2000c/'

       The problem is when I try connect my mailserver, the connection fails 
and I got this message in horde.log :
       Mar 31 10:52:02 HORDE [error] [imp] FAILED LOGIN MyIPAddress to 
MyMailServer:993[imap/ssl/novalidate-cert] as Mylogin [on line 240 
of "/export/www/webmail_imp_3.1/horde/imp/lib/IMP.php"]

       I put the line "{mymailserver:993/ssl/user=mylogin/novalidate--cert}
INBOX" in the PINE and I have success in to access mine e-mails.

       What's wrong in my configuration ?

       Thanks a lot !!!

       Tiago Fioreze