Customer Service

Resources that you can use.....

Knowledgebase

KnowledgeBase Articles

Articles Categories Screencasts

I have an iPhone, how do I set up the Active Sync / Exchange options ?

Updated: 08 April 2011 10:59:13 OpenCRM::Emails Hosted::Services::Email Windows::

Thank you to Stephen Foskett for these instructions

The iPhone Exchange ActiveSync Guide

The iPhone now has most of the functions of the BlackBerry: Over-the-air push and sync of Exchange email, contacts, and calendars! This guide is intended as a concise walkthrough of how to get up and running with an iPhone and Microsoft Exchange server.

What You Get

Apple iPhone users get the following Exchange server integration features:

  1. ActiveSync Email, Contacts, and Calendars – The iPhone can sync with a single server running Exchange ActiveSync. Typically a Microsoft Exchange server, the iPhone also supports Google, NuevaSync, Yahoo’s Zimbra, and other servers that use Exchange ActiveSync.

  2. Global Address List – The iPhone’s Contacts application can search an Exchange server’s Global Address List over ActiveSync.

  3. IMAP and POP Email – The iPhone can also send, receive, and synchronize email messages with a number of IMAP and POP servers, including Microsoft Exchange.

  4. LDAP Contacts – A number of LDAP servers can be configured for contact search and retrieval.

Quick Start: Up and Running With Exchange

Here’s the quick how-to for getting Exchange up and running on your iPhone. Note that this method works with any iPhone with OS 2.0 or better.

We will set up the mail account first, then enable sync for Calendar and Contacts.

Before You Begin

* Install the latest version of iTunes and upgrade your phone to the latest iPhone OS
* If you already have your Exchange server running with IMAP, disable the account in Mail Settings. I left mine set up but disabled – no telling when or if I’ll need to fall back on it!
* Back up your phone, since Exchange ActiveSync configuration will delete all local contacts and calendar entries on the iPhone. Although it will coexist with MobileMe, IMAP contacts, and WebDAV and ICS calendars, ActiveSync will overwrite any non-synchronized entries. If you want to save your existing contacts and calendar entries, you should use iTunes’ desktop synchronization feature to save them to a compatible application.
* Make sure you are connected to a reliable and fast network (3G or Wi-Fi) before beginning

Configuring Exchange ActiveSync on the iPhone

Tap the “Settings” icon from the home screen, then “Mail, Contacts, Calendars”
In “Mail, Contacts, Calendars”, tap “Add Account…”
Tap the “Microsoft Exchange” icon
Note: This is where you come in if you tap the Mail app from the home screen with no accounts configured
Now you will enter your Exchange account information:
  1. Your full Email address
  2. You may need to enter an Exchange Domain (like “IT” or “Sales”), but this is not the place to enter the Internet domain name (like “company.com”) (see “What Domain Name Do I Enter?” below for more details)
  3. Your Exchange Username
    Note: This is usually the first part of your email address before the “@” sign (e.g. “billg”), but you may have to also enter your Exchange domain (e.g. “msexecbillg.microsoft”)
  4. Your Exchange Password
  5. You can optionally modify the Description to something other than your email address
Tap “Next” and the iPhone will attempt to auto-discover and configure the Exchange account
Note: This can take up to 5 minutes on slow networks or if autodiscovery is not supported
If your Exchange server configuration does not support Autodiscovery, it will fail (saying it couldn’t validate your account), and you will have to manually enter the Server name (see “Which Server Name Do I Enter?” below for more details)
Tap “Next” and the iPhone will verify the configuration
By default, the iPhone will synchronize all three data types (Mail, Contacts, and Calendars) with your Exchange ActiveSync server, but you can turn one or more off if you wish
Tap “Done” and the iPhone will finalize the configuration and return you to the “Mail, Contacts, Calendars” menu while your iPhone communicates with the server
Note: It can take a few minutes for calendar entries and contacts to show up

Common Configuration Issues

If all does not well and you can’t get connected, here are some things to try:

I can’t connect!

  1. Check the Server name – The most common reason for an Exchange ActiveSync configuration failure is the use of an incorrect Exchange server name. See “Which Server Name Do I Enter?” for possible solutions.

  2. Clear the Domain name – That “Domain” field is not for your Internet domain. In fact, most users can leave it blank! Try that first.

  3. Try a different Domain name – If clearing the “Domain” field doesn’t help, see “What Domain Name Do I Enter?” for more ideas to try.

  4. Enable or disable SSL – The iPhone usually detects whether or not to use SSL, but it sometimes gets this wrong. You can manually enable or disable SSL from the account’s “Account Info” page under “Mail, Contacts, Calendars”.

  5. Try a different network – Some network or email administrators restrict access to the ActiveSync server to those outside the corporate firewall (it sounds weird but is actually pretty common). Try an outside Wi-Fi network or just turn off Wi-Fi and use 3G to set it up. In this case, you will not be able to access your email from inside the corporate Wi-Fi network.

I can’t send or receive email!

The most common reason that an otherwise properly-configured iPhone cannot send or receive email is the use of an incorrect Domain string. Try leaving it blank or see “What Domain Name Do I Enter?” for more ideas to try.

It only works inside/outside my company’s Wi-Fi!

Many corporate networks have different Exchange server names inside and outside the firewall. Some will even disallow access to the Exchange ActiveSync server on the internal network. This configuration will greatly complicate your iPhone use. You have two choices:

  1. Set up two different connections to your mail, one ActiveSync and another IMAP, based on what is and is not available on the internal network.

  2. Only use the outside/public configuration. Don’t use the internal network at all, or turn off Wi-Fi whenever you want to access your mail.

Neither is really a good option. A better solution is to get the email and network administrator to make everything work no matter where you happen to be connected!

Exchange ActiveSync does not work with iPhone OS 3.1 on my non-3GS iPhone!

Microsoft Exchange Server 2007 SP1 added a feature to require mobile ActiveSync devices to encrypt data, enhancing security. Before iPhone OS 3.1, all iPhones incorrectly told the Exchange server that they supported on-device encryption. This allowed all iPhone hardware to function with Exchange 2007 SP1 servers that required device encryption.

The iPhone 3GS hardware actually does support device encryption, and iPhone OS 3.1 correctly reports this capability. But iPhone OS 3.1 also correctly reports that earlier hardware (the original iPhone and the iPhone 3G) does not support device encryption, so some Exchange 2007 SP1 servers refuse to allow them to connect.

There are three possible solutions (apart from upgrading to an iPhone 3GS), all of which require IT assistance. Your Exchange administrator can research the meaning and implications of these options:

  1. Disabling device encryption allows all iPhones to connect, but does not force any Exchange ActiveSync device to encrypt data. This is not a great solution from a security perspective

  2. Allowing non-provisionable devices enables all iPhones to connect but weakens security in general, allowing each device to enforce or ignore policies.

  3. Creating a special policy for “old” iPhones and applying it selectively is probably the best answer. Administrators can allow certain users to ignore the device encryption policy but still apply it to all others. This commandlet (from Krypted) will create such a policy:
    New-ActiveSyncMailboxPolicy -Name iPhone -AllowNonProvisionableDevices $true

I can’t add another Exchange server!

The iPhone can sync email messages to any number of IMAP or POP accounts without a problem, but it can only sync to a single ActiveSync server at once. So you can set up Gmail over IMAP, Yahoo over SMS/IMAP, your local provider over POP, a Gmail Apps account over IMAP, etc at the same time as your work Exchange server without a problem. But you cannot set up more than one Exchange server using ActiveSync.

Note: Jailbroken iPhones can apparently connect to multiple Exchange ActiveSync servers, but I have no idea how this works and cannot recommend it.

Which Server Name Do I Enter?

By far the biggest problem folks have encountered when trying to enable Exchange ActiveSync on the iPhone has been finding the correct server name. 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.

What Domain Name Do I Enter?

It sure can be confusing when two different things have the exact same name. The part of your email address after the “@” sign is called a domain name, as is the first part of your web page URL. When setting up Exchange ActiveSync email, you may be required to enter an Exchange Domain, and this can be something else entirely!

So what should you enter in the iPhone’s “Domain” field? Here are the possibilities, in order of liklihood:

  1. Nothing – The majority of Exchange environments will automatically detect the Exchange Domain, so you should leave the “Domain” field blank on your first attempt

  2. Ask For Help – If leaving it blank doesn’t work, go ask someone in IT what your Exchange Domain is and use whatever they suggest

  3. Your Internet Domain – Many hosted Exchange environments use the company’s internet domain as the Exchange domain, so try “yourcompany.com”

  4. Part of your Internet Domain – If “yourcompany.com” doesn’t work, try just “yourcompany”

  5. Fewer Letters – The next thing to try is just the first seven or eight letters of your truncated domain name, “yourcom” instead of “yourcompany”

If blank doesn’t work and IT can’t help, you might be stuck. You can try different combinations, but trial and error doesn’t always work!

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 “Mail, Contacts, Calendars” 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.

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.

What The iPhone Still Lacks

  1. The iPhone will remain limited to full ActiveSync with a single Exchange server. Although you are free to establish as many IMAP connections as you like, including connecting to Exchange with IMAP, you cannot use more than one ActiveSync service. However, as noted above, 3.0 does include LDAP support so at least the contacts from your second Exchange server might be accessible.

  2. Spotlight does not include full-text search of mail messages. Although it’s nice to be able to search through everything on the iPhone, and even content on the Exchange server, you still have to remember the sender, subject, etc.

  3. Battery life is poor with Exchange ActiveSync push and the new push notifications enabled. iPhone push battery life has been a problem for quite a while.

  4. Still no notes and tasks sync (with Exchange). Although iPhone OS 3.0 does allow synchronization of notes with Apple Mail for Mac users, it does not support Exchange or Apple’s own MobileMe over-the-air services.

  5. No public folder support.

 

  • Rate This Article

  • Feedback and Comments
    captcha code  


You may also be interested in:


More..

COOKIE POLICY - We use cookies to improve your experience whilst looking through our website, some of these cookies are really important, honest. We don’t sell or trade your information. You can learn more by reading our privacy policy. OpenCRM privacy policy.

continue