[imp] cannot login via IMAPS

Enrico M.V. Fasanelli Enrico.M.V.Fasanelli@le.infn.it
Mon, 4 Feb 2002 10:47:46 +0100 (MET)


Hello,

I dont know if your RH7.2 box is like mine. In my RH72 distribution, PHP
is built without mcrypt support, and c-lient library without SSL.

If this is the case, tou can:

1) remove php and imap

2) build and install mhash, libmcrypt and mcrypt (the versions I've used
are mhash-0.8.13, libmcrypt-2.4.19 and mcrypt-2.5.10)

3) build a fresh imap-2001a c-cliant library with SSL support (the line
command I've used is:  make lrh SSLTYPE=unix)

4) upgrade apache to the 1.3.22 level (the pre-built rpm works fine)

5) build the new php whith the following configure option

php-4.0.6]#  ./configure  --with-apxs=/usr/sbin/apxs \
 --with-config-file-path=/usr/local/etc \
 --enable-versioning \
 --with-system-regex \
  --disable-debug \
 --enable-track-vars \
 --without-gd \
 --without-mysql \
 --with-zlib \
 --with-mcrypt=/usr/local \
 --with-imap=/usr/local \
 --with-imap-ssl=/usr/local \
 --with-mysql=/usr \
 --with-ldap=/usr \
 --with-openssl=/usr \
 --with-snmp=/usr \
 --enable-ucd-snmp-hack \
 --with-xml \
 --with-expat-dir=/usr \
 --enable-ftp \
 --with-curl=/usr \
 --with-gettext=/usr \
 --with-pspell=/usr \
 --enable-sockets \
 --prefix=/usr/local


5) at this point you need only to install pear-4.1.0, horde-2.0 and
imp-3.0 from the respective tarballs

Pleas enote that I'm using php 4.0.6. I dont know if php-4.1.1 can be
built in the same manner. Please let me know if you are using the new
varsion and if this works with the same configuration option (this will
save some of my work time!)

Best regards,


					Enrico



On Mon, 4 Feb 2002, rainkid wrote:

> Hello,
>
> After a clean install of Red Hat 7.2, I installed Apache/PHP/Horde/IMP from
> source. IMAPS works just fine from mail clients. SSL certificate is signed
> by my own CA.
>
> I cannot, however, get IMP to login via IMAPS. It would either wait forever
> for a response, or IMP would return invalid login.
>
> Here are all the relevant config scripts and files:
>
> -----Apache 1.3.22:------------
>
> SSL_BASE=../openssl-0.9.6b/ \
> ./configure \
>     --prefix=/usr \
>     --with-layout=RedHat\
>     --disable-module=status \
>     --disable-module=include \
>     --disable-module=userdir \
>     --disable-rule=SSL_COMPAT \
>     --enable-module=so \
>     --enable-module=env         --enable-shared=env \
>     --enable-module=log_config  --enable-shared=log_config \
>     --enable-module=mime        --enable-shared=mime \
>     --enable-module=negotiation --enable-shared=negotiation \
>     --enable-module=autoindex   --enable-shared=autoindex \
>     --enable-module=dir         --enable-shared=dir \
>     --enable-module=cgi         --enable-shared=cgi \
>     --enable-module=asis        --enable-shared=asis \
>     --enable-module=actions     --enable-shared=actions \
>     --enable-module=alias       --enable-shared=alias \
>     --enable-module=access      --enable-shared=access \
>     --enable-module=auth        --enable-shared=auth \
>     --enable-module=setenvif    --enable-shared=setenvif \
>     --enable-module=ssl         --enable-shared=ssl \
>     --activate-module=src/modules/perl/libperl.a
>
> ----PHP 4.1.1--------
>
> ./configure --with-pgsql \
>             --without-mysql \
>             --with-imap=/usr/lib \
>             --with-kerberos=/usr/kerberos \
>             --with-imap-ssl \
>             --with-openssl \
>             --with-apxs \
>             --with-gettext \
>             --with-xml \
>             --enable-debug=no \
>             --prefix=/usr \
>             --with-config-file-path=/etc/httpd \
>             --enable-memory-limit=yes \
>             --enable-inline-optimizations
>
> ----IMP 3.0 server.config----------
>
> $servers['imap/ssl/novalidate-cert'] = array(
>     'name' => 'IMAPS Server',
>     'server' => 'domain.com',
>     'protocol' => 'imap/ssl/novalidate-cert',
>     'port' => 993,
>     'folders' => 'mail/',
>     'namespace' => '',
>     'maildomain' => 'domain.com',
>     'smtphost' => 'domain.com',
>     'realm' => 'domain.com',
>     'preferred' => ''
> );
>
>
> Horde.log shows:
> Feb 03 22:35:13 HORDE [error] [imp] FAILED LOGIN 216.194.0.165 to
> domain.com:993[imap/ssl/no-validatecert] as rainkid [on line 332 of
> "/home/www/email.os5.com/horde/imp/lib/IMP.php"]
>
> IMP with unencrypted IMAP works just fine. I was also able to connect to my
> IMAPS server via demo.horde.org as well. Therefore, I assume it is either a
> HORDE/IMP or php problem on my end. Looking through the IMP mailing list
> archive, it seems as if other people have had trouble getting IMAPS to work
> with Red Hat's imap-devel package.
>
> What am I doing wrong? Is anyone out there running IMP and IMAPS
> successfully with Red Hat's imap-devel package?
>
> Thanks in advance for any help!
>
> --implist@rainkid.com
>
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>
>

      Enrico M.V. Fasanelli          Phone +39 0832 320.435/448
Istituto Nazionale Fisica Nucleare   Fax   +39 0832 325128
       Sezione di Lecce              mailto:Enrico.M.V.Fasanelli@le.infn.it
  Servizio di Calcolo & Reti         Via per Arnesano, I-73100 LECCE (Italy)