I want to simplify e-mail account configuration on Mac OS, after a lot Googling I think this work can be done by generating a template profile file (.mobileconfig) from iPCU and deploying this profile.
When I installed the .mobileconfig file, I found the email address in Mail's account setting is not the same as I wrote in iPCU.
Here is a part of .mobileconfig files generated by iPCU:
<key>EmailAccountDescription</key>
<string>alimailtest</string>
<key>EmailAccountName</key>
<string>fullname</string>
<key>EmailAccountType</key>
<string>EmailTypeIMAP</string>
<key>EmailAddress</key>
<string>testuser@testcompany.com</string>
<key>IncomingMailServerAuthentication</key>
<string>EmailAuthPassword</string>
<key>IncomingMailServerHostName</key>
<string>imap.testcompany.com</string>
<key>IncomingMailServerPortNumber</key>
<integer>993</integer>
<key>IncomingMailServerUseSSL</key>
<true/>
<key>IncomingMailServerUsername</key>
<string>testuser@testcompany.com</string>
But unexpectly, after installing this profile, I got "testuser@testcompany.com@imap.testcompany.com" as email address in Mail's account setting. It seems Mac appends the incoming server name after email address mistakenly, this causes failure on mail outsending.
Are there any ways to correct the profile installing? Or one step back, modify Mail's account setting by some program after installing. Or even config Mac Mail's setting without .mobileconfig mechanism?
Anyone help please?