Apple Mac computers lose connectivity to on-premise Exchange server

Every day we experienced many of our Macs losing their connection to the mail server which happened to be a Microsoft SBS 2008 server. For many months the solution was to connect to the public wireless connection that was OK for the users but it was just a workaround. Connectivity would be sporadic and having the Macs connected to the LAN over the wire and to the public wireless connection wasn’t a good long term solution.

After much troubleshooting I figured out that the configuration of their DNS and DHCP servers was incorrect. Research and testing revealed that Macs use Autodiscover to connect to the Exchange server. Internal DNS didn’t have the autodiscover records required by internal Exchange clients. And it didn’t matter what client – Entourage, Apple Mail, Outlook for Mac – they all lost connectivity quite often and a random times. Once was resolved but adding the proper records there was one other problem.

DHCP was configured to assigned the SBS server AND and external DNS server for DNS. Once that was rectified by setting DHCP to assign just the SBS server as the DNS server and running DNS Bench to determine the fastest DNS servers for the office and setting them as the forwarders, the Macs maintained stable connectivity to the Exchange server. Finally!

Why was this the case? The Macs need Autodiscover records to be set up correctly in DNS. That’s why connecting over public wireless connection worked. The external DNS servers had Autodiscover records set up correctly for external clients. Luckily this worked for their environment as a band-aid. When the internal one wasn’t configured correctly the Macs could never connect to the Exchange server using the internal DNS server to resolve hostnames.

Why was it sporadic? I chalk it up to the sometimes slow DNS name resolution of the SBS server. If it didn’t respond quick enough, it would force the Macs to use the external DNS server for name resolution and would work, but if the SBS server did respond in time, they would lose connectivity.

So fixing both was necessary – DHCP to only assign the SBS server as the internal DNS server and for DNS to be configured with the correct Autodiscover records.

Advertisements