Link to home
Start Free TrialLog in
Avatar of axeon78
axeon78Flag for Switzerland

asked on

Cannot get IMAP on iPhone 3GS with Exchange 2007 / Forefront TMG to work

Dear all,
It would really be great if some of you guys could help me with this issue - I already spent hours and hours on this problem without being able to finally solve it. The intention itself is rather simple: we are using the Microsoft Essential Business Server 2008 with Exchange 2007 and Forefront TMG. Based on the MS Exchange IMAP protocol, we would like to sync the iPhone 3GS with the mailboxes on MS Exchange. Unfortunately we cannot use Active Sync as this is in use for another account already).

So far so good. We opened the ports 143 and 993 on the Firewall and published the "IMAP4 Server"  and the "IMAPS Server" protocols on Forefront, pointing to the MS Exchange server. We did not yet setup SMTP - I would assume that this is not really an issue until we don't want to send e-mails from the iPhone...

When everything has been setup, I  configured the iPhone. As I was not able to connect to the IMAP mailbox on the Exchange server, I decided to first test the IMAP configuration on the Exchange server itself. On the iPhone, I configured the internal address of the Exchange server and connected via internal WLAN. The synchronization was successful with (143) and without SSL (993). So the configuration (including settings on the iPhone like username, password etc.) on the Exchange side should be ok and valid.

When I switch to the external Address, I am unable to sync, although the ports 143 & 993 have been forwarded to the Exchange server. The error message I get on the iPhone is: "Cannot get Mail. the connection to the server xyz.com failed."

I started the monitoring on the ISA server and found some interesting entries which appear whenever I try to connect, where 192.168.0.7 is the IP of the Exchange Server and 192.168.1.10 is the IP of Forefront's external Interface pointing to the Firewall:

193.247.250.8 -> 192.168.0.7 -> 143 -> IMAP4 Server ->Initiated Connection: 0x0 ERROR_SUCCESS
193.247.250.8 -> 192.168.0.7 -> 143 -> IMAP4 Server -> Closed Connection: 0x80074e21 FWX_E_ABORTIVE_SHUTDOWN
193.247.250.8 -> 192.168.1.10 -> 143 -> IMAP4 ->Denied Connection: 0xc0040017 FWX_E_TCP_NOT_SYN_PACKET_DROPPED      

Why do I get a message like "abortive shutdown" - if the protocol has been published to the Exchange server? And: why is there another connection opened to the external interface of Forefront (192.168.1.10)?

A made another observation, maybe this helps: I have set-up Mozilla Thunderbird and was able to connect from outside via IMAP to my mailbox via SSL / port 993. Interesting is: if I enable "use secure authentication" the connection fails with the message "...you have enabled secure authentication and this server does not support it."
When I disable Thunderbird and try to connect without SSL, the connection is not successful as well.

I would really appreciate if you could help me further with this issue!

Thank you,
Matthias
Avatar of pwindell
pwindell
Flag of United States of America image

I don't know what you mean by "opened ports on the firewall",....TMG is the firewall,...and there is no such thing as "opening ports" with TMG.  It is built around the concept of Publishing Rules and Protocol Definitions,...there's no "opening ports".

The iPhone may not work with IMAPS due to possible disagreements with Certificates and Certificate Authorities between what the Phone is pre-installed with -vs- what the Exchange2007 does.  But that is a guess,...so don't quote me on that,...that type of stuff is not may area,...but I did have an issue like that with an AT&T Tilt Phone trying to work with OWA, OMA, ActiveSync.

So maybe you should focus on straight IMAP by itself for now and see where you get with it.  I got an iPhone to work perfectly fine with my Exchange2003 via ISA2006 with IMAP just the other day.
Avatar of axeon78

ASKER

@pwindell: thanks. What do you mean with "straight IMAP"? Thanks.
straihgt IMAP means,...IMAP,....as opposed to IMAPS
Avatar of axeon78

ASKER

also IMAP does not work.
As I have been working with self-signed SSL certs, I thought this could be an issue and installed now a public cert. But even with the newly installed public cert, I get exactly the same error :-( Seems to be really a hard one. And: it does not depend whether I am going to use IMAP or IMAPS / SSL or not... Any idea?
ASKER CERTIFIED SOLUTION
Avatar of axeon78
axeon78
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial