[imp] imp imap/ssl authentication

Aaron Solochek aarons@aberrant.org
Tue, 08 Jan 2002 15:09:48 -0500


I had a similar problem with debian packages.  I basically had to hack 
the UW makefiles for a while before I could get this stuff all working 
-- but I'm glad I put in the effort, ssl support is nice.

-Aaron

Ron Peterson wrote:

> On Tue, 8 Jan 2002, Roman Serbski wrote:
> 
> 
>>Ron Peterson wrote:
>>
>>>On Thu, 3 Jan 2002, Ron Peterson wrote:
>>>
>>>
>>>
>>>>If I use the IMAP server, I can log in o.k.  If I use the ssl server,
>>>>I cannot.  After attempting to use the ssl server, I cannot go back
>>>>and use the non-ssl server either.
>>>>
>>>>
>>>Well, I've at least narrowed this down to being a problem with PHP.
>>>
>>><?
>>>  $mbox = imap_open ("{localhost:993/imap/ssl/novalidate-cert}INBOX", "username", "password");
>>>  print $mbox . "\n";
>>>?>
>>>
>>>A corresponding non-ssl script works fine.  This script chokes in exactly
>>>the same way IMP is.  A new imapd process is started, but nothing ever
>>>happens.
>>>
>>Hi
>>
>>I'm sorry if I didn't follow this thread but did you compile c-Client
>>with SSL support?
>>
> 
> Well, yes and no.  I finally got it working.
> 
> I have RH's imap and imap-devel RPM's installed.  I have a working
> imap/ssl installation using these RPM's that I've used for a long time
> (well, I guess imap-devel is irrelevant for this).  I tried the following:
> 
> 1. compile php --with-imap and --with-imap-ssl.  Doesn't work.
> 
> Install OpenSSL from source.
> 
> 2. compile php --with-imap and --with-imap-ssl=/my/own/compiled/ssl.
> Doesn't work.
> 
> Install UW imap from source.  Edit Makefile to set SSLTYPE=unix.  Then
> `make lrh`.
> 
> 3. compile php --with-imap=/my/own/compiled/imap
> --with-imap-ssl=/my/own/compiled/ssl.  Doesn't work.
> 
> Edit UW imap Makefile, and change environment to point to my openssl
> install, rather than red hat's.
> 
> #       SPECIALS="GSSDIR=/usr/kerberos SSLDIR=/usr/share/ssl
> SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib"
> # change to reflect location of my locally compiled openssl
>         SPECIALS="GSSDIR=/usr/kerberos SSLDIR=/usr/local/ssl
> SSLINCLUDE=/usr/local/ssl/include SSLLIB=/usr/local/ssl/lib"
> 
> 4. compile php as for (3.).  WORKS!!!  Hooray!
> 
> So, you apparently cannot rely on the RH imap-devel rpm's to provide the
> necessary functionality.  Additionally, you cannot (or I could not)
> compile the uw imap source against the rh openssl-devel installation.
> 
> 
>