Apple iPhone and Exchange E-mail
I purchased and activated my iPhone without incident Friday (unlike a lot of others) but have not been very successful at getting some items to work the way I would prefer. One example is access to email. I’m hesitant to open the secure IMAP port (IMAPS, tcp port 993) and would never open IMAP (tcp port 143); I would prefer to connect at a port greater than 1024 but can’t seem to find any settings on my iPhone that permit this configuration. So, I obliged the iPhone and opened port 993 and could not get it to work. Looking at my application event log revealed the culprit: a bunch of errors for Source IMAP4SVC, Event ID 1051 – Unexpected error condition: call to function CEncryptCtx::CheckServerCert() resulted in error code 0x800cc801.
Turns out this is an easy fix; I didn’t have the certificate installed on my Exchange server (as I never configured IMAP or IMAPS for use). Right-clicking on the IMAP4 Virtual Server, clicking on the Certificate button on the Access tab and installing a Web Server certificate fixed the issue right away. Now I get to enjoy more functionality on the iPhone.

July 2nd, 2007 at 7:45 pm
the port number (high versus low) is irrelevant from a security point of view. TLS makes it more secure, regardless of what port number it’s on. Better to do it on a standards compliant port.
July 2nd, 2007 at 8:13 pm
The idea is to obscure the service through using a different port; at least it makes the service a bit less vulnerable to attack.