[imp] how to get IMP to STARTTLS

Chuck Hagenbuch chuck@horde.org
Sun, 24 Mar 2002 18:19:37 -0500


Quoting Curtis Doty <Curtis@GreenKey.net>:

> But tried a dozen combinations on 'protocol' => 'yada/yada' to no
> avail.
> 
> 	/imaprev1 /tls /secure /novalidate-cert etc.

>From servers.php.dist:

 * protocol is one of 'imap', 'pop3', 'imap/ssl', or 'pop3/ssl'. If
 * it's pop3 you're going to be connecting to a POP3 mail server
 * instead of IMAP (so make sure the port is correct - 110 by
 * default), and all folder options will be automatically turned
 * off. The two ssl options will only work if you've compiled php
 * against an ssl-enabled version of c-client, and if you have a
 * server which supports SSL. The default ports are 993 for IMAP over
 * SSL, and 995 for POP3 over SSL.
 *
 * NOTE: If you are using a self-signed server certificate with with either
 * imap/ssl or pop3/ssl, you MUST add /novalidate-cert at the end of the
 * protocol string. So for imap, this would be "imap/ssl/novalidate-cert",
 * and for pop3 it would be "pop3/ssl/novalidate-cert". This is necessary 
to
 * tell c-client not to complain about the lack of a valid CA on the
 * certificate.
 *

So, sounds like you want /imap/ssl/novalidate-cert.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"A dream which helps you to live your reality with dignity
 and justice is a good dream." - Tariq Ramadan