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
cdaa2c84
Commit
cdaa2c84
authored
Nov 14, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Plain Diff
[merge] iOS Mobile Configuration Profile
parents
7e7abf3b
b04addda
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
162 additions
and
2 deletions
+162
-2
ios-profile.xml
conf/ios-profile.xml
+128
-0
nginx.conf
conf/nginx.conf
+4
-1
mail-guide.html
management/templates/mail-guide.html
+17
-0
start.sh
setup/start.sh
+0
-1
web.sh
setup/web.sh
+13
-0
No files found.
conf/ios-profile.xml
0 → 100644
View file @
cdaa2c84
<?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">
<!--
iOS Configuration Profile
Mobileconfig for iOS users to setup IMAP, Contacts & Calendars
https://developer.apple.com/library/ios/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html
-->
<plist
version=
"1.0"
>
<dict>
<key>
PayloadContent
</key>
<array>
<dict>
<key>
CalDAVAccountDescription
</key>
<string>
PRIMARY_HOSTNAME 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>
PRIMARY_HOSTNAME (Mail-in-a-Box)
</string>
<key>
PayloadDisplayName
</key>
<string>
PRIMARY_HOSTNAME calendar
</string>
<key>
PayloadIdentifier
</key>
<string>
email.mailinabox.mobileconfig.PRIMARY_HOSTNAME.CalDAV
</string>
<key>
PayloadOrganization
</key>
<string></string>
<key>
PayloadType
</key>
<string>
com.apple.caldav.account
</string>
<key>
PayloadUUID
</key>
<string>
UUID1
</string>
<key>
PayloadVersion
</key>
<integer>
1
</integer>
</dict>
<dict>
<key>
EmailAccountDescription
</key>
<string>
PRIMARY_HOSTNAME 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>
PRIMARY_HOSTNAME (Mail-in-a-Box)
</string>
<key>
PayloadDisplayName
</key>
<string>
PRIMARY_HOSTNAME mail
</string>
<key>
PayloadIdentifier
</key>
<string>
email.mailinabox.mobileconfig.PRIMARY_HOSTNAME.E-Mail
</string>
<key>
PayloadOrganization
</key>
<string></string>
<key>
PayloadType
</key>
<string>
com.apple.mail.managed
</string>
<key>
PayloadUUID
</key>
<string>
UUID2
</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>
PRIMARY_HOSTNAME 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>
PRIMARY_HOSTNAME (Mail-in-a-Box)
</string>
<key>
PayloadDisplayName
</key>
<string>
PRIMARY_HOSTNAME contacts
</string>
<key>
PayloadIdentifier
</key>
<string>
email.mailinabox.mobileconfig.PRIMARY_HOSTNAME.carddav
</string>
<key>
PayloadOrganization
</key>
<string></string>
<key>
PayloadType
</key>
<string>
com.apple.carddav.account
</string>
<key>
PayloadUUID
</key>
<string>
UUID3
</string>
<key>
PayloadVersion
</key>
<integer>
1
</integer>
</dict>
</array>
<key>
PayloadDescription
</key>
<string>
PRIMARY_HOSTNAME (Mail-in-a-Box)
</string>
<key>
PayloadDisplayName
</key>
<string>
PRIMARY_HOSTNAME
</string>
<key>
PayloadIdentifier
</key>
<string>
email.mailinabox.mobileconfig.PRIMARY_HOSTNAME
</string>
<key>
PayloadOrganization
</key>
<string></string>
<key>
PayloadRemovalDisallowed
</key>
<false/>
<key>
PayloadType
</key>
<string>
Configuration
</string>
<key>
PayloadUUID
</key>
<string>
UUID4
</string>
<key>
PayloadVersion
</key>
<integer>
1
</integer>
</dict>
</plist>
conf/nginx.conf
View file @
cdaa2c84
...
...
@@ -34,6 +34,10 @@ server {
access_log
off
;
}
location
=
/mailinabox.mobileconfig
{
alias
/var/lib/mailinabox/mobileconfig.xml
;
}
# Roundcube Webmail configuration.
rewrite
^/mail
$
/mail/
redirect
;
rewrite
^/mail/
$
/mail/index.php
;
...
...
@@ -80,4 +84,3 @@ server {
# ADDITIONAL DIRECTIVES HERE
}
management/templates/mail-guide.html
View file @
cdaa2c84
...
...
@@ -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>
...
...
setup/start.sh
View file @
cdaa2c84
...
...
@@ -160,4 +160,3 @@ openssl x509 -in $STORAGE_ROOT/ssl/ssl_certificate.pem -noout -fingerprint \
echo
echo
Then you can confirm the security exception and
continue
.
echo
setup/web.sh
View file @
cdaa2c84
...
...
@@ -40,6 +40,19 @@ tools/editconf.py /etc/php5/fpm/pool.d/www.conf -c ';' \
# since it depends on what domains we're serving, which we don't know
# until mail accounts have been created.
# Create the iOS Mobile Configuration file which is exposed via the
# nginx configuration at /mailinabox-mobileconfig.
mkdir
-p
/var/lib/mailinabox
chmod
a+rx /var/lib/mailinabox
cat
conf/ios-profile.xml
\
|
sed
"s/PRIMARY_HOSTNAME/
$PRIMARY_HOSTNAME
/"
\
|
sed
"s/UUID1/
$(
cat
/proc/sys/kernel/random/uuid
)
/"
\
|
sed
"s/UUID2/
$(
cat
/proc/sys/kernel/random/uuid
)
/"
\
|
sed
"s/UUID3/
$(
cat
/proc/sys/kernel/random/uuid
)
/"
\
|
sed
"s/UUID4/
$(
cat
/proc/sys/kernel/random/uuid
)
/"
\
>
/var/lib/mailinabox/mobileconfig.xml
chmod
a+r /var/lib/mailinabox/mobileconfig.xml
# make a default homepage
if
[
-d
$STORAGE_ROOT
/www/static
]
;
then
mv
$STORAGE_ROOT
/www/static
$STORAGE_ROOT
/www/default
;
fi
# migration #NODOC
mkdir
-p
$STORAGE_ROOT
/www/default
...
...
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