iOS not calling /email/mobileconfig.xml when adding mail account despite having correct SRV record
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://firstname.lastname@example.org 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?
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.
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.
Deleting a branch is permanent. It CANNOT be undone. Continue?