iOS not calling /email/mobileconfig.xml when adding mail account despite having correct SRV record #7

Closed
opened 1 year ago by DoobleD · 3 comments
DoobleD commented 1 year ago

Hi,

Thank you for that valuable work!

I added the following SRV record to my domain:

_autodiscover._tcp  86400 IN SRV 	5 0 443 autodiscover.mydomain.com

I made sure the record has propagated using https://www.whatsmydns.net/#SRV/.

My web server listens to autodiscover.mydomain.com and I implemented /email/mobileconfig.xml. I can indeed call https://autodiscover.mydomain.com/email/mobileconfig.xml?email=john@doe.com in a browser and it does get the XML configuration file.

However when I add an email account @mydomain.com in iOS, my web server never receives any request (to /email/mobileconfig.xml or otherwise).

I tried adding the mail account from Settings > Mail > Add account > Other > Add Mail Account. And simply from (without having any prior account configured) Mail > Other. Tested with iOS 14 and iOS 15.

Any idea? Is there another required DNS record for iOS?

Hi, Thank you for that valuable work! I added the following SRV record to my domain: ``` _autodiscover._tcp 86400 IN SRV 5 0 443 autodiscover.mydomain.com ``` I made sure the record has propagated using https://www.whatsmydns.net/#SRV/. My web server listens to autodiscover.mydomain.com and I implemented `/email/mobileconfig.xml`. I can indeed call `https://autodiscover.mydomain.com/email/mobileconfig.xml?email=john@doe.com` in a browser and it does get the XML configuration file. However when I add an email account @mydomain.com in iOS, my web server never receives any request (to `/email/mobileconfig.xml` or otherwise). I tried adding the mail account from *Settings > Mail > Add account > Other > Add Mail Account*. And simply from (without having any prior account configured) *Mail > Other*. Tested with iOS 14 and iOS 15. Any idea? Is there another required DNS record for iOS?
Owner

Hi,

I'm so surprised that anyone is using this tool besides myself.

Sorry for the lack of documentation on this endpoint. If I remember correctly, I believe this tool does only allow you to download a profile configuration file.

Basically, the Apple Mail client doesn't send any request to the server. You need to give to your users a link to the profile file with their email, e.g. https://autodiscover.mydomain.com/email/mobileconfig?email=john@doe.com.

Apple will recognize the profile file and ask the user to add it in its system configuration. Once it's added, the mailbox will be automatically added to the Apple Mail client without further configuration.

If there are other autoconfiguration mechanisms for Apple Mail, please let me know and I may give it a try at implementing it.

Hi, I'm so surprised that anyone is using this tool besides myself. Sorry for the lack of documentation on this endpoint. If I remember correctly, I believe this tool does only allow you to download a profile configuration file. Basically, the Apple Mail client doesn't send any request to the server. You need to give to your users a link to the profile file with their email, e.g. `https://autodiscover.mydomain.com/email/mobileconfig?email=john@doe.com`. Apple will recognize the profile file and ask the user to add it in its system configuration. Once it's added, the mailbox will be automatically added to the Apple Mail client without further configuration. If there are other autoconfiguration mechanisms for Apple Mail, please let me know and I may give it a try at implementing it.
Poster

Awesome, thanks you so much @neil, it makes sense now. :)

Awesome, thanks you so much @neil, it makes sense now. :)
Owner

Thanks for the feedback :)

Closing now, if you don't see any issue.

Thanks for the feedback :) Closing now, if you don't see any issue.
neil closed this issue 1 year ago
Sign in to join this conversation.
Loading…
There is no content yet.