1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

iOS Configuration Profile

change name

removed .vagrant

fix guide layout
This commit is contained in:
Norman 2014-11-05 17:17:38 +01:00
parent 995b7c4d2b
commit c872e6a9f0
4 changed files with 154 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ management/__pycache__/
tools/__pycache__/
externals/
.env
.vagrant

View File

@ -59,6 +59,23 @@
<p>Your device should also provide a contacts list and calendar that syncs to this box when you use this method.</p>
</div>
<div class="col-lg-6">
<h4>iOS Mobileconfig</h4>
<p>Open the following configuration on your iOS device.</p>
<p><strong><a href="https://{{hostname}}/mailinabox.mobileconfig">https://{{hostname}}/mailinabox.mobileconfig</a></strong></p>
<p>Use these settings when prompted:</p>
<table class="table">
<tr><th>Username:</th> <td>Your whole email address.</td></tr>
<tr><th>Password:</th> <td>Your mail password.</td></tr>
</table>
<p>Your device should also provide a contacts list and calendar that syncs to this box when you use this method.</p>
</div>
</div>
</div>

135
setup/mobileconfig.sh Normal file
View File

@ -0,0 +1,135 @@
#!/bin/bash
#
# iOS Configuration Profile
# ----------------------------------------------
#
# Mobileconfig for iOS users to setup IMAP, Contacts & Calendars
#
# https://developer.apple.com/library/ios/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html
source setup/functions.sh # load our functions
source /etc/mailinabox.conf # load global vars
echo "Generate iOS Configuration Profile"
echo "<?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>PayloadContent</key>
<array>
<dict>
<key>CalDAVAccountDescription</key>
<string>Mail-in-a-box Calendar</string>
<key>CalDAVHostName</key>
<string>$PRIMARY_HOSTNAME</string>
<key>CalDAVPort</key>
<real>443</real>
<key>CalDAVPrincipalURL</key>
<string>/cloud/remote.php/caldav/calendars/</string>
<key>CalDAVUseSSL</key>
<true/>
<key>PayloadDescription</key>
<string>CalDAV-Account</string>
<key>PayloadDisplayName</key>
<string>CalDAV (Mail-in-a-box Calendar)</string>
<key>PayloadIdentifier</key>
<string>com.mailinabox.setup.CalDAV</string>
<key>PayloadOrganization</key>
<string></string>
<key>PayloadType</key>
<string>com.apple.caldav.account</string>
<key>PayloadUUID</key>
<string>$(cat /proc/sys/kernel/random/uuid)</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
<dict>
<key>EmailAccountDescription</key>
<string>Mail-in-a-box Mail</string>
<key>EmailAccountType</key>
<string>EmailTypeIMAP</string>
<key>IncomingMailServerAuthentication</key>
<string>EmailAuthPassword</string>
<key>IncomingMailServerHostName</key>
<string>$PRIMARY_HOSTNAME</string>
<key>IncomingMailServerPortNumber</key>
<integer>993</integer>
<key>IncomingMailServerUseSSL</key>
<true/>
<key>OutgoingMailServerAuthentication</key>
<string>EmailAuthPassword</string>
<key>OutgoingMailServerHostName</key>
<string>$PRIMARY_HOSTNAME</string>
<key>OutgoingMailServerPortNumber</key>
<integer>587</integer>
<key>OutgoingMailServerUseSSL</key>
<true/>
<key>OutgoingPasswordSameAsIncomingPassword</key>
<true/>
<key>PayloadDescription</key>
<string>E-Mail-Account</string>
<key>PayloadDisplayName</key>
<string>IMAP-Account</string>
<key>PayloadIdentifier</key>
<string>com.mailinabox.setup.E-Mail</string>
<key>PayloadOrganization</key>
<string></string>
<key>PayloadType</key>
<string>com.apple.mail.managed</string>
<key>PayloadUUID</key>
<string>$(cat /proc/sys/kernel/random/uuid)</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PreventAppSheet</key>
<false/>
<key>PreventMove</key>
<false/>
<key>SMIMEEnabled</key>
<false/>
</dict>
<dict>
<key>CardDAVAccountDescription</key>
<string>Mail-in-a-box Contacts</string>
<key>CardDAVHostName</key>
<string>$PRIMARY_HOSTNAME</string>
<key>CardDAVPort</key>
<integer>443</integer>
<key>CardDAVPrincipalURL</key>
<string>/cloud/remote.php/carddav/addressbooks/</string>
<key>CardDAVUseSSL</key>
<true/>
<key>PayloadDescription</key>
<string>CardDAV-Accounts</string>
<key>PayloadDisplayName</key>
<string>CardDAV</string>
<key>PayloadIdentifier</key>
<string>com.mailinabox.setup.carddav</string>
<key>PayloadOrganization</key>
<string></string>
<key>PayloadType</key>
<string>com.apple.carddav.account</string>
<key>PayloadUUID</key>
<string>$(cat /proc/sys/kernel/random/uuid)</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDescription</key>
<string>Mail, Contacts &amp; Calendar</string>
<key>PayloadDisplayName</key>
<string>Mail-in-a-box</string>
<key>PayloadIdentifier</key>
<string>com.mailinabox.setup</string>
<key>PayloadOrganization</key>
<string></string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>$(cat /proc/sys/kernel/random/uuid)</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>" > "$STORAGE_ROOT/www/default/mailinabox.mobileconfig";

View File

@ -125,6 +125,7 @@ source setup/webmail.sh
source setup/owncloud.sh
source setup/zpush.sh
source setup/management.sh
source setup/mobileconfig.sh
# Write the DNS and nginx configuration files.
sleep 5 # wait for the daemon to start
@ -160,4 +161,3 @@ openssl x509 -in $STORAGE_ROOT/ssl/ssl_certificate.pem -noout -fingerprint \
echo
echo Then you can confirm the security exception and continue.
echo