January 26, 2012

A Few iPhone Exchange ActiveSync Gotchas

iPhone Exchange ActiveSync Series

This blog post is probably out of date. If you want to set up Exchange ActiveSync, you should instead consult one my guides:
iPhone Exchange ActiveSync Setup iPad Exchange ActiveSync Setup
iPhone ActiveSync Troubleshooting iPad ActiveSync Troubleshooting

I’ve been running OS 2.0 on my (first-generation) iPhone for a week and a half now, and as I mentioned before, Exchange ActiveSync push email, calendaring, and contacts was one of the main things Iwas looking for when I upgraded.  That article on setting up ActiveSync has since become my top blog post by far, pulling in literally thousands of hits per day, so I must not be alone in wanting this functionality.

But it turns out that the green grass of iPhone/Exchange integration has a tint of brown.  Folks have experienced issues getting the service set up, and it guzzles battery juice like a toddler at a lemonade stand.  Read on for my notes and suggestions…

For the most up-to-date information, see my iPhone Exchange ActiveSync Guide!

This post is part of my series focused on integrating the iPhone with Microsoft Exchange using ActiveSync:

Which Server?

By far the biggest problem folks have encountered when trying to enable Exchange ActiveSync on the iPhone has been finding the correct server name.  Update: It turns out that Exchange 2007 has an Autodiscovery service for ActiveSync devices, and the iPhone supports and attempts to use this.  But it will fail for anyone using Exchange 2003 or with an admin that turned this off…

If Autodiscovery fails, you have to manually enter the address.  Most Exchange implementations have a variety of different servers these days, each with a unique hostname and IP address:

  • The main Exchange server, which is normally only used for internal or VPN connections to Outlook using the MAPI/RPC protocol and often has an excitingly-weird name like em22dc.yourcompany.com.  This is not what you are looking for.
  • The external Exchange server for RPC over HTTPS connections from Outlook, which often has a nicer name like rpc.yourcompany.com.  This is also not what you’re looking for.
  • The Outlook Web Access server used by Entourage and for accessing mail using a web browser, which is often called “owa.yourcompany.com”.  Getting warmer, but still not the right one.
  • Entourage also uses an LDAP server, often called “ldap.yourcompany.com”, and might alias the OWA server as “dav.yourcompany.com”.  Still not the right server for the iPhone.
  • The one you want is the ActiveSync server, sometimes called “oma.yourcompany.com” since it’s mainly used for Outlook Mobile on Windows Mobile devices.

If your techies don’t know the first thing about the iPhone, change your tactics.  Ask them which hostname they enter when configuring Windows Mobile smartphones and PDAs – these are very common, and this is the server you need with the iPhone!

One more thing:  You might get lucky and find that one of those other server names works for the iPhone’s ActiveSync.  This does not mean you’re using DAV or OWA on the iPhone – instead it means that they set up two services on the same hostname.  But I haven’t seen this myself.

The Problem With Push

Let me start by saying that, so far, the push email experience with Exchange ActiveSync to the iPhone has been flawless for me. Amazingly, messages appear on my iPhone before they show up in Outlook on my PC, which is online with RPC over HTTPS.  Whatever Apple (and Microsoft) did to enable push email certainly worked well! Perhaps a bit too well, though.  After using ActiveSync push for a few days, I noticed that my battery was draining by early afternoon.

At first, I chalked this up to increased usage of the phone’s new features.  But having spent the day (mostly) ignoring the phone while on vacation, I was shocked to see the battery icon turn red before dinner.  Clearly something was eating my battery alive!

As an experiment, I turned off push in the iPhone’s Settings pane, opting for manual just to be safe. Are you surprised to learn that my battery was green all the next day?  In fact, it barely used any power at all, even with 30-minute IMAP updates from Google Mail still running.

Note that the Push settings have been moved under “Mail, Contacts, Calendars” in OS 3.0.

Clearly ActiveSync push is a major battery hog, and I would imagine that 3G would be even worse than the miserly EDGE in the first-generation phone! What to do?  You’ve got just a few choices:

  1. Go back to IMAP fetch and lose Exchange integration (boo!)
  2. Leave push enabled but plan to charge up more often or use WiFi, which is much more battery-friendly.
  3. Switch Exchange from push to fetch, which leaves the integration intact but doesn’t guzzle the juice as quickly
  4. Switch Exchange to manual update, which is very battery-friendly

I have decided on option 3 when I’m out and about to conserve battery power, since most of my email can wait a few minutes.  And if I’m low on juice, I’ll switch over to option 4.  But if I’m in the office, with my most-excellent WiFi and broadband connectivity, I’m leaving push enabled.

I think it’s worth noting that the push settings are stored in a separate control panel from the other mail settings, which is either an odd gaffe or an indication that other non-mail push options will eventually be added here.

  • There’s a master switch on the main panel (shown above) which is nice, since you can quickly turn off all push to conserve juice.
  • I’d love another setting option of turning off push mail based on battery level or on a schedule, like the BlackBerry has.
  • You can also tweak the master fetch schedule setting here.
  • Tap Advanced, and you can set each account’s settings – select push, fetch, or manual for each account based on your own preferences.  If I was using MobileMe for personal email, I might be tempted to turn off push just for that account, since my spam can wait!
  • One more thing – notice that you can set the name of your mail accounts to something other than your email address.  That’s done in each account’s settings panel.

Hopefully, these two suggestions will help the multitude of folks who are having problems with Exchange ActiveSync on the iPhone.  Drop me a line if I can be of more help!

  • Matt

    My Outlook delets all message from my iPhone once i open Outlook. Ho do i stop this from happening and keep my emails on my iPhone once Outlook is opened? Thanks in advance.

  • Siva

    I am having problem configuring my office email account using Exchange server option in i phone, Can some one help me with that, am first time user

  • Jep151

    After connecting my new iphone up to my exchange server 2007, my phone constantlt ask for a Password. Exchange works great but the constant locking and asking for a Password is annoying.As anybody else had this problem?

  • Bob

    I get all my mail i al my sub boxes in m exchange mail but the main in box does not connect. Any words of wisdom for my iphone4

  • Eli

    Same problem. Calendar and contacts are syncing nicely with exchange, inbox folders show up correctly, but my exchange inbox remains empty. I can even send email from the exchange account on my iPhone but can't seem to get any.

    Even weirder is that I have this configured on an iPad and iPhone but the problem is only manifesting on the iPhone. Both device are using the same exact settings.

    I am on exchange server 2010.

    Help!

  • Tom

    Question for you all. I want to know how to prevent people from downloading email to their iPhone from my Exchange 2003 server. If I disable Exchange ActiveSync (and IMAP, POP, etc) for an specific user, but leave OWA on for everyone, can the iPhone/iOS still download email locally via OWA? I know personal Blackberry devices can so I am going to block the most well know Blackberry servers (ATT, VZW, Sprint, etc) and allow only our BB we config to access our BES server. For HIPPA regulatory reasons we want to prevent any email from staying on a device we haven't forced to be encrypted. Thanks!

  • Alvinkillen

    Hello, I am connecting from my IPAD via VPN into my work network with no problems. I can connect to internal IP's with no issues. When I add my user email settings in the exchange profile it verifies the credentials and lets me add the account but when I open emails I get “connection to the server failed” can anyone help? I have read somewhere that activesync uses a non standard naming convention for the exchange server but I am unsure how to find out what it is. If the server is already inside the network the internal IP should be sufficient?

  • Audioslave77

    I have an iphone 4 and I am attempting to set up exchange on my phone but for some reason cannot figure it out…is there any way someone can e-mail me or walk me through this step by step?

  • http://www.nosocialism.com/ NoSocialism.com

    Here’s a unique problem,
    I have an Exchange 2003 Server that was upgraded to an Exchange 2010 Server. My account was moved to the new server, but because of issues it was moved BACK to the 2003 Server. My iPad and Outlook are working fine, but not my iPhone. The iPad and iPhone have the same EXACT settings, and both are working over the 3G network. I noticed that all my folders show up on the iPhone, which indicates that the Cache is holding the settings (perhaps from the 2010 Server). How can I clear the cache to get a “clean” reconnect to the 2003 Exchange Server?

  • James

    We have done a test remote wipe of an iPhone and an iPad. What happens is the device is completely wiped of all data including the OS. You can reinstall the OS via iTunes on your desktop though. But you loose all your personal data.

  • Skennedy

    My lawfirm uses Cbeyond for VOIP. Thus I must use the imap.cbeyond.com settings to receive email. It was setup correctly and for about two years I was able to send and receive Emails with no problem. But I woke up on Saturday morning October 31 and I cannot receive email. I can still send email just fine. I have been on the phone with Cbeyond for more than an hour, and with ATT and Apple and no one has an answer. The error message says “The mail server “imap.cbeyond.com” is not responding. Verify that you have entered the correct account info in Mail settings.” Cbeyond has worked with me on the settings for an hour and they are convinced the settings are correct. ATT and Apple point the finger at Cbeyond. What in the name of Jobs is going on here?

  • Proplayer44

    It sounds like you have your email moving into a PST file in outlook instead of the inbox of the exchange server. It is an option that can be setup when first connecting your email. Of course it can be altered anytime. I’m struggling with this now because my company only allows for a 50 meg inbox on the server. If I want to see my emails on my phone I now need to manually move them over to my pst file when I no longer need to see them on my phone. It sucks but I really see no way around it.server.