Initial commit
This commit is contained in:
commit
530fbab51c
9 changed files with 297 additions and 0 deletions
81
files/app/templates/mobileconfig.xml
Normal file
81
files/app/templates/mobileconfig.xml
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>HasRemovalPasscode</key>
|
||||
<false/>
|
||||
<key>PayloadContent</key>
|
||||
<array>
|
||||
{% if imap.host %}
|
||||
<dict>
|
||||
<key>EmailAccountDescription</key>
|
||||
<string>{{email}}</string>
|
||||
<key>EmailAccountName</key>
|
||||
<string>{{email}}</string>
|
||||
<key>EmailAccountType</key>
|
||||
<string>{% if imap.host %}EmailTypeIMAP{% else %}EmailTypePOP{% endif %}</string>
|
||||
<key>EmailAddress</key>
|
||||
<string>{{email}}</string>
|
||||
<key>IncomingMailServerAuthentication</key>
|
||||
<string>EmailAuthPassword</string>
|
||||
<key>IncomingMailServerHostName</key>
|
||||
<string>{{imap.host}}</string>
|
||||
<key>IncomingMailServerPortNumber</key>
|
||||
<integer>{{imap.port}}</integer>
|
||||
<key>IncomingMailServerUseSSL</key>
|
||||
<{{ 'true' if imap.socket in ['SSL', 'STARTTLS'] else 'false' }}/>
|
||||
<key>IncomingMailServerUsername</key>
|
||||
<string>{{email}}</string>
|
||||
<key>OutgoingPasswordSameAsIncomingPassword</key>
|
||||
<true/>
|
||||
<key>OutgoingMailServerAuthentication</key>
|
||||
<string>EmailAuthPassword</string>
|
||||
<key>OutgoingMailServerHostName</key>
|
||||
<string>{{smtp.host}}</string>
|
||||
<key>OutgoingMailServerPortNumber</key>
|
||||
<integer>{{smtp.port}}</integer>
|
||||
<key>OutgoingMailServerUseSSL</key>
|
||||
<{{ 'true' if smtp.socket in ['SSL', 'STARTTLS'] else 'false' }}/>
|
||||
<key>OutgoingMailServerUsername</key>
|
||||
<string>{{email}}</string>
|
||||
<key>SMIMEEnabled</key>
|
||||
<false/>
|
||||
<key>SMIMEEnablePerMessageSwitch</key>
|
||||
<false/>
|
||||
<key>SMIMEEnableEncryptionPerMessageSwitch</key>
|
||||
<false/>
|
||||
<key>disableMailRecentsSyncing</key>
|
||||
<false/>
|
||||
<key>PayloadDescription</key>
|
||||
<string>{{info.name}} Email</string>
|
||||
<key>PayloadDisplayName</key>
|
||||
<string>{{email}}</string>
|
||||
<key>PayloadIdentifier</key>
|
||||
<string>{{mobile.identifier}}.com.apple.mail.managed.{{mobile.mail.uuid}}</string>
|
||||
<key>PayloadType</key>
|
||||
<string>com.apple.mail.managed</string>
|
||||
<key>PayloadUUID</key>
|
||||
<string>{{mobile.mail.uuid}}</string>
|
||||
<key>PayloadVersion</key>
|
||||
<real>1</real>
|
||||
</dict>
|
||||
{% endif %}
|
||||
</array>
|
||||
<key>PayloadDescription</key>
|
||||
<string>{{info.name}}</string>
|
||||
<key>PayloadDisplayName</key>
|
||||
<string>{{email}}</string>
|
||||
<key>PayloadIdentifier</key>
|
||||
<string>{{mobile.identifier}}</string>
|
||||
<key>PayloadOrganization</key>
|
||||
<string>{{domain}}</string>
|
||||
<key>PayloadRemovalDisallowed</key>
|
||||
<false/>
|
||||
<key>PayloadType</key>
|
||||
<string>Configuration</string>
|
||||
<key>PayloadUUID</key>
|
||||
<string>{{mobile.uuid}}</string>
|
||||
<key>PayloadVersion</key>
|
||||
<integer>2</integer>
|
||||
</dict>
|
||||
</plist>
|
||||
Loading…
Add table
Add a link
Reference in a new issue