Proper DNS configuration for iPhone and Exchange Autodiscover
In order to get Autodiscover to work properly on your iPhone when doing an “Exchange” setup, you need the correct DNS records.
**note: I am assuming you already have a proper SSL cert on your email server, have the correct ports opened (80, 443m 587) and you KNOW your email server is working properly. You’ll also need a standard MX record that points at your server.
Additional DNS records needed to make autodiscover work on an iPhone:
Create an SRV record with the following settings (on each domain you want autodiscover to work)
domain: your domain (this should be prefilled under windows server when setting up the SRV record)
Target: the mx record name for your server, for example, mail.yourdomain.com (this MUST match the MX record name)
One more record needed:
Create an A record called autodiscover and point it to the same IP as your MX record IP address.
** at this point you are at the mercy of the public DNS servers expiring their cache and catching the new records.
on your iPhone, add email account, pick Exchange
type in the email address and password. description (whatever you want here)
At this point, one of two things may happen:
- you may get a server warning message. if you do, click CONTINUE
- when you do that you (should) go right to the “Exchange” screen in #2 below.
- you may go directly to the “Exchange” screen with radio boxes for mail, contacts etc.
If you get the dreaded “server name” screen instead, this means your phone is not picking up the most current DNS settings.
Try it again later…
These settings have been tested and confirmed, so it does work – but like I said you have to wait for the DNS settings to get updated by whatever DNS server you are using. If you have your TTL set very high (hours or a day) you may have to wait a day for this to work.
TEST YOUR AUTODISCOVER SETUP:
go to the above URL and run the “Outlook Autodiscover” test.
You’ll need to enter in an actual mailbox account username and password, but it will fully test your setup and verify that autodiscover is properly setup.