> > My server is running on port 8143, and here's the server-side record
> > of the conversation:
> >
> > S: * OK [CAPABILITY IMAP4rev1 LOGINDISABLED STARTTLS] UpLib IMAP Server (V4r1) ready.\r\n
> > C: 1 STARTTLS\r\n
> > S: 1 OK STARTTLS completed\r\n
> >
> > [handshake takes place]
> >
> > C: 2 LOGOUT\r\n
> >
> > On the iPhone, I see "Cannot Get Mail / the connection to the server failed"
>
> I've tried a few things: using the standard port, removing the
> LOGINDISABLED, and sending all my capabilites up-front, instead of
> waiting till after the STARTTLS, but nothing seems to help.
>
> My guess is that the phone is objecting to the self-signed certificate
> that I use to "secure" the server. I installed the cert on the phone
> as a "profile" (you convert it to DER, then mail it to yourself as an
> attachment, then tap on the attachment), but that doesn't help. I'll
> try a properly signed cert from some big root authority next.
>
> Any other ideas?
I installed my self-signed server certificate as a root cert on my
iPhone, and now things are working. It just objected to the
certificate.
By the way, to do this:
1. Get the DER version of the cert.
2. Put it on a Web server with the MIME type "application/x-x509-ca-cert".
3. Browse the iPhone browser to it.
4. Tap on it to install it.
Bill