Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
c872e6a9
Commit
c872e6a9
authored
Nov 05, 2014
by
Norman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iOS Configuration Profile
change name removed .vagrant fix guide layout
parent
995b7c4d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
154 additions
and
1 deletion
+154
-1
.gitignore
.gitignore
+1
-0
mail-guide.html
management/templates/mail-guide.html
+17
-0
mobileconfig.sh
setup/mobileconfig.sh
+135
-0
start.sh
setup/start.sh
+1
-1
No files found.
.gitignore
View file @
c872e6a9
...
@@ -4,3 +4,4 @@ management/__pycache__/
...
@@ -4,3 +4,4 @@ management/__pycache__/
tools/__pycache__/
tools/__pycache__/
externals/
externals/
.env
.env
.vagrant
management/templates/mail-guide.html
View file @
c872e6a9
...
@@ -59,6 +59,23 @@
...
@@ -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>
<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
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>
</div>
</div>
...
...
setup/mobileconfig.sh
0 → 100644
View file @
c872e6a9
#!/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 & 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"
;
setup/start.sh
View file @
c872e6a9
...
@@ -125,6 +125,7 @@ source setup/webmail.sh
...
@@ -125,6 +125,7 @@ source setup/webmail.sh
source
setup/owncloud.sh
source
setup/owncloud.sh
source
setup/zpush.sh
source
setup/zpush.sh
source
setup/management.sh
source
setup/management.sh
source
setup/mobileconfig.sh
# Write the DNS and nginx configuration files.
# Write the DNS and nginx configuration files.
sleep
5
# wait for the daemon to start
sleep
5
# wait for the daemon to start
...
@@ -160,4 +161,3 @@ openssl x509 -in $STORAGE_ROOT/ssl/ssl_certificate.pem -noout -fingerprint \
...
@@ -160,4 +161,3 @@ openssl x509 -in $STORAGE_ROOT/ssl/ssl_certificate.pem -noout -fingerprint \
echo
echo
echo
Then you can confirm the security exception and
continue
.
echo
Then you can confirm the security exception and
continue
.
echo
echo
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment