diff --git a/conf/nginx.conf b/conf/nginx.conf
index b8751bd..241bceb 100644
--- a/conf/nginx.conf
+++ b/conf/nginx.conf
@@ -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
}
-
diff --git a/setup/mobileconfig.sh b/setup/mobileconfig.sh
index b8bcdd3..489a93d 100644
--- a/setup/mobileconfig.sh
+++ b/setup/mobileconfig.sh
@@ -20,7 +20,7 @@ echo "
CalDAVAccountDescription
- Mail-in-a-box Calendar
+ Mail-in-a-Box Calendar
CalDAVHostName
$PRIMARY_HOSTNAME
CalDAVPort
@@ -30,11 +30,11 @@ echo "
CalDAVUseSSL
PayloadDescription
- CalDAV-Account
+ $PRIMARY_HOSTNAME (Mail-in-a-Box)
PayloadDisplayName
- CalDAV (Mail-in-a-box Calendar)
+ $PRIMARY_HOSTNAME calendar
PayloadIdentifier
- com.mailinabox.setup.CalDAV
+ email.mailinabox.mobileconfig.$PRIMARY_HOSTNAME.CalDAV
PayloadOrganization
PayloadType
@@ -46,7 +46,7 @@ echo "
EmailAccountDescription
- Mail-in-a-box Mail
+ Mail-in-a-Box Mail
EmailAccountType
EmailTypeIMAP
IncomingMailServerAuthentication
@@ -68,11 +68,11 @@ echo "
OutgoingPasswordSameAsIncomingPassword
PayloadDescription
- E-Mail-Account
+ $PRIMARY_HOSTNAME (Mail-in-a-Box)
PayloadDisplayName
- IMAP-Account
+ $PRIMARY_HOSTNAME mail
PayloadIdentifier
- com.mailinabox.setup.E-Mail
+ email.mailinabox.mobileconfig.$PRIMARY_HOSTNAME.E-Mail
PayloadOrganization
PayloadType
@@ -90,7 +90,7 @@ echo "
CardDAVAccountDescription
- Mail-in-a-box Contacts
+ Mail-in-a-Box Contacts
CardDAVHostName
$PRIMARY_HOSTNAME
CardDAVPort
@@ -100,11 +100,11 @@ echo "
CardDAVUseSSL
PayloadDescription
- CardDAV-Accounts
+ $PRIMARY_HOSTNAME (Mail-in-a-Box)
PayloadDisplayName
- CardDAV
+ $PRIMARY_HOSTNAME contacts
PayloadIdentifier
- com.mailinabox.setup.carddav
+ email.mailinabox.mobileconfig.$PRIMARY_HOSTNAME.carddav
PayloadOrganization
PayloadType
@@ -116,11 +116,11 @@ echo "
PayloadDescription
- Mail, Contacts & Calendar
+ $PRIMARY_HOSTNAME (Mail-in-a-Box)
PayloadDisplayName
- Mail-in-a-box
+ $PRIMARY_HOSTNAME
PayloadIdentifier
- com.mailinabox.setup
+ email.mailinabox.mobileconfig.$PRIMARY_HOSTNAME
PayloadOrganization
PayloadRemovalDisallowed
@@ -132,4 +132,4 @@ echo "
PayloadVersion
1
-" > "$STORAGE_ROOT/www/default/mailinabox.mobileconfig";
+" > "/var/lib/mailinabox/mobileconfig.xml";