Modify mobileconfig file for 1 domain

cPanel & WHM Version
86.0.18

techguide

Active Member
Aug 29, 2012
29
4
53
cPanel Access Level
Reseller Owner
Using cPanel 86.0.18
The downloaded email mobileconfig file is not working for 1 of our domains because the DNS "A" record points to a different cpanel server where the website is hosted separately from the cpanel server that email is hosted on. mobileconfig files on this cpanel server for other domains that have their DNS "A" record pointing to the same IP address DO work; so I've narrowed down the problem. when the mobileconfig file is used, it is pointing the user to login to the wrong cpanel server, so the auto configuration fails.

In the mobileconfig file, the imap server address fields in the file need to be mail.domainname.com and not the default domainname.com in this scenario where the domain's DNS A record points to another location. How can the mobileconfig for this domain be altered so that the file will work for the domain users?

The MX record for this domain already points to mail.domainname.com; as does a cname for smtp to mail.domainname.com. when these domain users manually configure imap on their devices, they manually enter mail.domainname.com for their email server and these settings work when manually configured.

Thanks for any suggestions!
 

techguide

Active Member
Aug 29, 2012
29
4
53
cPanel Access Level
Reseller Owner
Thank cPanelLauren, where is the template located where global changes can be made, I haven't been able to find any documentation about modifying the mobileconfig file? Thank you!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Template files themselves can be modified i'm not 100% on that specific one but you can find instructions on modifying templates here: Guide to Template Toolkit - Developer Documentation - cPanel Documentation

The specific template files are located here:

Code:
/usr/local/cpanel/base/backend/ios.mobileconfig
/usr/local/cpanel/base/backend/ios.mobileconfig.caldav.tmpl
/usr/local/cpanel/base/backend/ios.mobileconfig.carddav.tmpl
/usr/local/cpanel/base/backend/ios.mobileconfig.email.tmpl
/usr/local/cpanel/base/backend/ios.mobileconfig.footer.tmpl
/usr/local/cpanel/base/backend/ios.mobileconfig.header.tmpl
/usr/local/cpanel/etc/icontact_templates/Mail/includes/clientconf_ios_mobileconfig_include.html.tt
/var/cpanel/template_compiles/usr/local/cpanel/etc/icontact_templates/Mail/includes/clientconf_ios_mobileconfig_include.html.tt