<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.open-xchange.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Christian.kundner</id>
	<title>Open-Xchange - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.open-xchange.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Christian.kundner"/>
	<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=Special:Contributions/Christian.kundner"/>
	<updated>2026-11-29T00:41:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21785</id>
		<title>AppSuite:OX Drive</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21785"/>
		<updated>2016-04-04T11:31:01Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: /* Push via Apple Push Notification service (APNs) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Drive =&lt;br /&gt;
&lt;br /&gt;
In OX App Suite, Open-Xchange provides a cloud storage called OX Drive. It provides file- and folder synchronization across multiple devices in the most simplest way for the end user, fully optimized for each device type. This article explains how to set up the server-side components for OX Drive, as well as details about the client setup.&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Native Apps for Windows, Mac OS, iOS and Android&lt;br /&gt;
* Easy and attractive upsell properties (e.g. Upsell based on Quota limitations)&lt;br /&gt;
* Clients are specially designed for the devices they run on taking into account limitations such as battery life, screen limitations, bandwidth etc.&lt;br /&gt;
* Controlled synchronization of files across devices&lt;br /&gt;
* Storage management (e.g. quota control, upload limits)&lt;br /&gt;
* Connection type recognition and adaptation (e.g. Wi-Fi, cell network)&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
OX Drive is a combination of two components:&lt;br /&gt;
* OX Drive in OX App Suite&lt;br /&gt;
* OX Drive Clients (optional native client components for synchronization)&lt;br /&gt;
&lt;br /&gt;
OX Drive is available for the following native clients:&lt;br /&gt;
* OX Drive for Windows&lt;br /&gt;
* OX Drive for Mac OS&lt;br /&gt;
* OX Drive for iOS&lt;br /&gt;
* OX Drive for Android&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
You will find the requirements under [[AppSuite:OX_System_Requirements#OX_Drive_for_Clients|OX Drive Client and Platform Requirements]]&lt;br /&gt;
&lt;br /&gt;
= Server-side Installation and Configuration =&lt;br /&gt;
&lt;br /&gt;
This chapter describes how the backend components of OX Drive are installed and configured on the server.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* Open-Xchange Server v7.4.2 and above (&#039;&#039;open-xchange-core&#039;&#039;)&lt;br /&gt;
* Grizzly HTTP connector (&#039;&#039;open-xchange-grizzly&#039;&#039;), see [[AppSuite:Grizzly]] for details, with &#039;&#039;Comet&#039;&#039; support enabled in &#039;&#039;grizzly.properties&#039;&#039;&lt;br /&gt;
* Valid Push-Certificates / API keys for cloud-based notifications, see configuration below&lt;br /&gt;
* Enabled Hazelcast for inter-OX-communication, see [[AppSuite:Running_a_cluster]] for details&lt;br /&gt;
&lt;br /&gt;
== Available packages ==&lt;br /&gt;
&lt;br /&gt;
Open-Xchange Drive is available with the following backend packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive&#039;&#039; - The main server components for OX Drive&lt;br /&gt;
* &#039;&#039;open-xchange-drive-comet&#039;&#039; - Provides the Push interface via long-polling for the desktop clients&lt;br /&gt;
* &#039;&#039;open-xchange-drive-help-*&#039;&#039; - Online help in various languages for the OX Drive applications (these were called &#039;&#039;open-xchange-appsuite-help-drive-*&#039;&#039; in versions earlier than Open-Xchange Server v7.6.2)&lt;br /&gt;
* &#039;&#039;open-xchange-drive-restricted&#039;&#039; - Restricted components, including prerequisites for cloud-based push notifications&lt;br /&gt;
&lt;br /&gt;
Installation on the server varies depending on the underlying distribution, details are available in the following chapters.&lt;br /&gt;
&lt;br /&gt;
=== OX Drive for Windows ===&lt;br /&gt;
&lt;br /&gt;
Additionally OX Drive for Windows can be provided to users by installing additional packages. However there are significant differences between 7.8.0 and earlier releases and 7.8.1 and later ones:&lt;br /&gt;
&lt;br /&gt;
==== 7.8.0 and earlier ====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be provided via the [[AppSuite:Open-Xchange_Updater|Open-Xchange Updater]] by installing the package &#039;&#039;open-xchange-updater-drive&#039;&#039;. Initial installation and updates are performed by the Updater then.&lt;br /&gt;
&lt;br /&gt;
==== 7.8.1 and later ====&lt;br /&gt;
&lt;br /&gt;
With OX App Suite 7.8.1 and OX Drive for Windows 2.0.0, the client is able to update itself and can be downloaded from the Web UI directly via the [[AppSuite:Client_Onoarding|Client Onboarding Wizard]]. Therefore the wizard must be installed and configured for OX Drive users. Besides the client onboarding feature you need the following packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows&#039;&#039; - The main server component to provide the client&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; - The package providing the final binary files to be installed on users machines.&lt;br /&gt;
&lt;br /&gt;
To make the client download available via the client onboarding wizard, you need to enable the according scenario. Edit &#039;&#039;/opt/open-xchange/etc/client-onboarding-scenarios.yml&#039;&#039; and get to the &#039;&#039;drivewindowsclientinstall&#039;&#039; section, where you have to set the &#039;&#039;enabled&#039;&#039; property to &#039;&#039;true&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that there still exists a compatibility layer between the old Updater-based approach and the new direct install and self-update one. If you start providing OX Drive for Windows with 7.8.1 or later you MAY decide to enable that compatibility by installing &#039;&#039;open-xchange-updater-drive&#039;&#039;, however we advice not to do so. If you already provided OX Drive for Windows with 7.8.0 or earlier, you MUST install this package and further provide the Updater. Otherwise the clients out there will not be able to be updated to the 2.0.0 version, which is then self-update capable.&lt;br /&gt;
&lt;br /&gt;
===== Custom branded clients =====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be purchased with a custom theming. In such cases, the according binary files need to be installed on the middleware servers. Instead of the &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; package, a package containing the branded binaries will be provided as &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; and needs to be installed. You MUST then set the property &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; in &#039;&#039;/opt/open-xchange/etc/drive-client-windows.properties&#039;&#039; to &#039;&#039;&amp;lt;brand-name&amp;gt;&#039;&#039; accordingly.&lt;br /&gt;
&lt;br /&gt;
It is also possible to provide multiple brands of the client via the same OX App Suite deployment, multiple &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; packages can be installed in parallel. Which brand is available for a certain user is determined by the &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; property, which can be overwritten via [[ConfigCascade|Config Cascade]] therefore.&lt;br /&gt;
&lt;br /&gt;
Client brands can be managed via command line tools. The tool &#039;&#039;/opt/open-xchange/sbin/listdriveclients&#039;&#039; lists all installed brands. After updating a certain brand by installing a newer package version or installing an additional one, no server restart is necessary. Instead &#039;&#039;/opt/open-xchange/sbin/reloaddriveclients&#039;&#039; can be executed to refresh the internal server state.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== OX Server Edition / App Suite for UCS ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX Server Edition / App Suite for UCS, the OX Drive is part of the offering and after the installation/update available. The necessary package for push, is available with a valid license and can be installed via the Univention App Center.&lt;br /&gt;
&lt;br /&gt;
* The new license is already registered at the LDB after purchase.&lt;br /&gt;
* Log on at the Univention Management Console (UMC)&lt;br /&gt;
* Make sure, that the correct LDB account has been selected in the UMC module &amp;quot;OX License Management&amp;quot;&lt;br /&gt;
* Click on &amp;quot;App Center&amp;quot; at the UMC und switch to the tab &amp;quot;Repository Settings&amp;quot;&lt;br /&gt;
* Within the component list, select &amp;quot;Open-Xchange Drive&amp;quot; and press the &amp;quot;Install&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The following gives an overview about the most important settings to enable file synchronization via OX Drive, especially when it comes to real-time Push notifications for the client applications.&lt;br /&gt;
&lt;br /&gt;
All settings regarding the OX Drive backend component are located in the configuration file &#039;&#039;drive.properties&#039;&#039;. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the Push certificates and API keys for cloud-based client notifications, see next chapters). Please refer to the inline documentation of the configuration file for more advanced options. &lt;br /&gt;
&lt;br /&gt;
=== Push via Google Cloud Messaging (GCM) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for Android devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.android.com/google/gcm/index.html Google Cloud Messaging (GCM)]. To issue those Push messages, the backend needs to be provided with a suitable API key for the corresponding Android client application. The API key is included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; Android client application. Alternatively, the key can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the API key of the server application. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.gcm.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.gcm.key=&lt;br /&gt;
&lt;br /&gt;
Push via GCM can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Google&lt;br /&gt;
 # Cloud Messaging (GCM) service. This requires a valid configuration for the &lt;br /&gt;
 # GCM API key, see options below. Defaults to &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.gcm.enabled=true&lt;br /&gt;
&lt;br /&gt;
Please note that push via GCM needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Push via Apple Push Notification service (APNs) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for iOS and Mac OS devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.apple.com/library/IOS/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html Apple Push Notification service (APNs)]. To issue those Push messages, the backend needs to be provided with a suitable keystore container file (PKCS #12) containing the APNs certificate and keys. Note that the Mac OS desktop client and the iOS mobile client are served separately with different certificates, so that both needs to be configured independantly. The required certificates are already included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; iOS and Mac OS client applications. Therefore no additional configuration is needed. Alternatively, a external certificate can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file (the following only shows the setup for iOS). First, the path to the PKCS #12 container file needs to be specified at:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the path to the local keystore file (PKCS #12) containing the APNS &lt;br /&gt;
 # certificate and keys for the iOS application, e.g. &lt;br /&gt;
 # &amp;quot;/opt/open-xchange/etc/drive-apns.p12&amp;quot;. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.keystore=&lt;br /&gt;
&lt;br /&gt;
This file is opened by the backend using the password as supplied via: &lt;br /&gt;
 &lt;br /&gt;
 # Specifies the password used when creating the referenced keystore containing&lt;br /&gt;
 # the certificate of the iOS application. Note that blank or null passwords &lt;br /&gt;
 # are in violation of the PKCS #12 specifications. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.password=&lt;br /&gt;
&lt;br /&gt;
Configuration also allows to switch between development and production environments, however, this setting should be &#039;&#039;true&#039;&#039; normally:&lt;br /&gt;
&lt;br /&gt;
 # Indicates which APNS service is used when sending push notifications to iOS&lt;br /&gt;
 # devices. A value of &amp;quot;true&amp;quot; will use the production service, a value of &lt;br /&gt;
 # &amp;quot;false&amp;quot; the sandbox service. Defaults to &amp;quot;true&amp;quot;.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.production=true&lt;br /&gt;
&lt;br /&gt;
The OX backend contacts the APNs servers from time to time to get informed about clients no longer reachable clients where the applications was uninstalled. The interval can be defined with the following setting: &lt;br /&gt;
&lt;br /&gt;
 # Configures the interval between queries to the APN feedback service for the&lt;br /&gt;
 # subscribed iOS devices. The value can be defined using units of measurement: &lt;br /&gt;
 # &amp;quot;D&amp;quot; (=days), &amp;quot;W&amp;quot; (=weeks) and &amp;quot;H&amp;quot; (=hours). Defaults to &amp;quot;1D&amp;quot; (one day). &lt;br /&gt;
 # Leaving this parameter empty disables the feedback queries on this node. &lt;br /&gt;
 # Since each received feedback is processed cluster-wide, only one node in the &lt;br /&gt;
 # cluster should be enabled here. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.feedbackQueryInterval=1D&lt;br /&gt;
&lt;br /&gt;
Please note that if you have multiple backend nodes in the cluster, it&#039;s recommended that only one node is configured to contact the feedback query service. Finally, Push notifications via APN for iOS can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Apple Push&lt;br /&gt;
 # Notification service (APNS) for Mac OS devices. This requires a valid &lt;br /&gt;
 # configuration for the APNS certificate and keys, see either options below, &lt;br /&gt;
 # or install the restricted components packages for drive. Defaults to &lt;br /&gt;
 # &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.enabled=false&lt;br /&gt;
&lt;br /&gt;
As stated above, configuration for Push notifications via APN for the Mac OS desktop application is configured similarly, the relevant options are prefixed with &#039;&#039;com.openexchange.drive.events.apn.macos&#039;&#039;. Please also note that push via APNS needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Further Configuration ===&lt;br /&gt;
&lt;br /&gt;
* The backend component of OX Drive supplies the clients with various hyperlinks, e.g. deep-links to files and folders in the groupware webinterface or an URL to the online help. In order to point to the suitable web interface, please ensure that the correct UI web path is configured via &#039;&#039;com.openexchange.UIWebPath&#039;&#039; located in &#039;&#039;server.properties&#039;&#039;.&lt;br /&gt;
* As already mentioned above, the backend relies on the [https://grizzly.java.net/comet.html Comet] component of the Grizzly http connector for sending push notifications to the desktop clients. Therefore, &#039;&#039;com.openexchange.http.grizzly.hasCometEnabled&#039;&#039; needs to be set to &#039;&#039;true&#039;&#039; in &#039;&#039;grizzly.properties&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Enabling OX Drive for Users =&lt;br /&gt;
&lt;br /&gt;
OX Drive is enabled for all users that have the capability &#039;&#039;com.openexchange.capability.drive&#039;&#039;. Please note that users need to have the &#039;&#039;infostore&#039;&#039; permission set to use drive. So the users that have &#039;&#039;drive&#039;&#039; enabled must be a subset of those users with &#039;&#039;infostore&#039;&#039; permission. Since 7.6.0 we enforce this via the default configuration. You can also enable this cabaility globally with the following setting in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables the &amp;quot;drive&amp;quot; module capability globally. The capability&lt;br /&gt;
 # can also be set more fine-grained via config cascade. Per default it is only&lt;br /&gt;
 # enabled for users that have the &amp;quot;infostore&amp;quot; permission set. This is configured&lt;br /&gt;
 # in /opt/open-xchange/etc/contextSets/drive.yml.&lt;br /&gt;
 com.openexchange.capability.drive=false&lt;br /&gt;
&lt;br /&gt;
More details about capabilities can be found at [[AppSuite:Capabilities]]. Furthermore, this capability can be defined in a more granular way using the Config Cascade as described at [[ConfigCascade]].&lt;br /&gt;
&lt;br /&gt;
= Installation of the Clients =&lt;br /&gt;
&lt;br /&gt;
== Installation of Mac OS X Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive for Mac OS X will be provided via the Apple App Store:&lt;br /&gt;
&lt;br /&gt;
* https://itunes.apple.com/app/ox-drive/id818195014?mt=12&lt;br /&gt;
&lt;br /&gt;
== Installation of Windows Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
See [[AppSuite:OX_Drive#OX_Drive_for_Windows|OX Drive for Windows]].&lt;br /&gt;
&lt;br /&gt;
== Installation on Mobile Clients ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive App is available via the different App Stores:&lt;br /&gt;
&lt;br /&gt;
* iOS: https://itunes.apple.com/app/ox-drive/id798570177?mt=8&lt;br /&gt;
&lt;br /&gt;
* Android: https://play.google.com/store/apps/details?id=com.openexchange.drive.vanilla&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Client Configuration and Deployment ==&lt;br /&gt;
&lt;br /&gt;
The user needs to enter the server URL and provide his username and password. Afterwards, client-specific settings may be configured. This includes the synchronization mode (All files / Favorites only) and Photostream settings on mobile devices, or the local root synchronization folder for the desktop applications. More information is available in the online documentation. &lt;br /&gt;
&lt;br /&gt;
After the initial synchronization is completed, all further changes are synchronized instantly across all devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= FAQ =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How to limit the maximum file size, a configured &#039;&#039;MAX_UPLOAD_SIZE&#039;&#039; seems to have no effect for uploads from OX Drive clients?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This setting has no effect for files uploaded from OX Drive clients, since big uploads may also be processed via multiple requests in smaller chunks. We plan to offer a separate configuration option in a future release.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;There are strange files and folders on the backend, where do they come from, is it safe to delete them?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To support chunked uploads, and to optimize the synchronization process, the synchronization logic may create various temporary files (&#039;&#039;.drive&#039;&#039; directory and contained files). They only appear in the web interface if the setting &#039;&#039;Show hidden files and folders&#039;&#039; is enabled, and are removed automatically if not accessed for a specific period (default: 1 day).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Not all files and folders get synchronized. Are there any restrictions?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Yes, please consult the online help for a detailed list of excluded files and folders.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How do I synchronize a shared or public folder?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Currently, only the synchronization of a single root folder (and all of it&#039;s subfolders) is possible. For the mobile client applications, this is always the default personal drive folder of the user, while the desktop clients allow to choose which folder to synchronize. The synchronization of multiple root folders is scheduled for a future release.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21784</id>
		<title>AppSuite:OX Drive</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21784"/>
		<updated>2016-04-04T11:25:52Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: /* Redhat Enterprise Linux 6 or CentOS 6 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Drive =&lt;br /&gt;
&lt;br /&gt;
In OX App Suite, Open-Xchange provides a cloud storage called OX Drive. It provides file- and folder synchronization across multiple devices in the most simplest way for the end user, fully optimized for each device type. This article explains how to set up the server-side components for OX Drive, as well as details about the client setup.&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Native Apps for Windows, Mac OS, iOS and Android&lt;br /&gt;
* Easy and attractive upsell properties (e.g. Upsell based on Quota limitations)&lt;br /&gt;
* Clients are specially designed for the devices they run on taking into account limitations such as battery life, screen limitations, bandwidth etc.&lt;br /&gt;
* Controlled synchronization of files across devices&lt;br /&gt;
* Storage management (e.g. quota control, upload limits)&lt;br /&gt;
* Connection type recognition and adaptation (e.g. Wi-Fi, cell network)&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
OX Drive is a combination of two components:&lt;br /&gt;
* OX Drive in OX App Suite&lt;br /&gt;
* OX Drive Clients (optional native client components for synchronization)&lt;br /&gt;
&lt;br /&gt;
OX Drive is available for the following native clients:&lt;br /&gt;
* OX Drive for Windows&lt;br /&gt;
* OX Drive for Mac OS&lt;br /&gt;
* OX Drive for iOS&lt;br /&gt;
* OX Drive for Android&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
You will find the requirements under [[AppSuite:OX_System_Requirements#OX_Drive_for_Clients|OX Drive Client and Platform Requirements]]&lt;br /&gt;
&lt;br /&gt;
= Server-side Installation and Configuration =&lt;br /&gt;
&lt;br /&gt;
This chapter describes how the backend components of OX Drive are installed and configured on the server.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* Open-Xchange Server v7.4.2 and above (&#039;&#039;open-xchange-core&#039;&#039;)&lt;br /&gt;
* Grizzly HTTP connector (&#039;&#039;open-xchange-grizzly&#039;&#039;), see [[AppSuite:Grizzly]] for details, with &#039;&#039;Comet&#039;&#039; support enabled in &#039;&#039;grizzly.properties&#039;&#039;&lt;br /&gt;
* Valid Push-Certificates / API keys for cloud-based notifications, see configuration below&lt;br /&gt;
* Enabled Hazelcast for inter-OX-communication, see [[AppSuite:Running_a_cluster]] for details&lt;br /&gt;
&lt;br /&gt;
== Available packages ==&lt;br /&gt;
&lt;br /&gt;
Open-Xchange Drive is available with the following backend packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive&#039;&#039; - The main server components for OX Drive&lt;br /&gt;
* &#039;&#039;open-xchange-drive-comet&#039;&#039; - Provides the Push interface via long-polling for the desktop clients&lt;br /&gt;
* &#039;&#039;open-xchange-drive-help-*&#039;&#039; - Online help in various languages for the OX Drive applications (these were called &#039;&#039;open-xchange-appsuite-help-drive-*&#039;&#039; in versions earlier than Open-Xchange Server v7.6.2)&lt;br /&gt;
* &#039;&#039;open-xchange-drive-restricted&#039;&#039; - Restricted components, including prerequisites for cloud-based push notifications&lt;br /&gt;
&lt;br /&gt;
Installation on the server varies depending on the underlying distribution, details are available in the following chapters.&lt;br /&gt;
&lt;br /&gt;
=== OX Drive for Windows ===&lt;br /&gt;
&lt;br /&gt;
Additionally OX Drive for Windows can be provided to users by installing additional packages. However there are significant differences between 7.8.0 and earlier releases and 7.8.1 and later ones:&lt;br /&gt;
&lt;br /&gt;
==== 7.8.0 and earlier ====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be provided via the [[AppSuite:Open-Xchange_Updater|Open-Xchange Updater]] by installing the package &#039;&#039;open-xchange-updater-drive&#039;&#039;. Initial installation and updates are performed by the Updater then.&lt;br /&gt;
&lt;br /&gt;
==== 7.8.1 and later ====&lt;br /&gt;
&lt;br /&gt;
With OX App Suite 7.8.1 and OX Drive for Windows 2.0.0, the client is able to update itself and can be downloaded from the Web UI directly via the [[AppSuite:Client_Onoarding|Client Onboarding Wizard]]. Therefore the wizard must be installed and configured for OX Drive users. Besides the client onboarding feature you need the following packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows&#039;&#039; - The main server component to provide the client&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; - The package providing the final binary files to be installed on users machines.&lt;br /&gt;
&lt;br /&gt;
To make the client download available via the client onboarding wizard, you need to enable the according scenario. Edit &#039;&#039;/opt/open-xchange/etc/client-onboarding-scenarios.yml&#039;&#039; and get to the &#039;&#039;drivewindowsclientinstall&#039;&#039; section, where you have to set the &#039;&#039;enabled&#039;&#039; property to &#039;&#039;true&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that there still exists a compatibility layer between the old Updater-based approach and the new direct install and self-update one. If you start providing OX Drive for Windows with 7.8.1 or later you MAY decide to enable that compatibility by installing &#039;&#039;open-xchange-updater-drive&#039;&#039;, however we advice not to do so. If you already provided OX Drive for Windows with 7.8.0 or earlier, you MUST install this package and further provide the Updater. Otherwise the clients out there will not be able to be updated to the 2.0.0 version, which is then self-update capable.&lt;br /&gt;
&lt;br /&gt;
===== Custom branded clients =====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be purchased with a custom theming. In such cases, the according binary files need to be installed on the middleware servers. Instead of the &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; package, a package containing the branded binaries will be provided as &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; and needs to be installed. You MUST then set the property &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; in &#039;&#039;/opt/open-xchange/etc/drive-client-windows.properties&#039;&#039; to &#039;&#039;&amp;lt;brand-name&amp;gt;&#039;&#039; accordingly.&lt;br /&gt;
&lt;br /&gt;
It is also possible to provide multiple brands of the client via the same OX App Suite deployment, multiple &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; packages can be installed in parallel. Which brand is available for a certain user is determined by the &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; property, which can be overwritten via [[ConfigCascade|Config Cascade]] therefore.&lt;br /&gt;
&lt;br /&gt;
Client brands can be managed via command line tools. The tool &#039;&#039;/opt/open-xchange/sbin/listdriveclients&#039;&#039; lists all installed brands. After updating a certain brand by installing a newer package version or installing an additional one, no server restart is necessary. Instead &#039;&#039;/opt/open-xchange/sbin/reloaddriveclients&#039;&#039; can be executed to refresh the internal server state.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== OX Server Edition / App Suite for UCS ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX Server Edition / App Suite for UCS, the OX Drive is part of the offering and after the installation/update available. The necessary package for push, is available with a valid license and can be installed via the Univention App Center.&lt;br /&gt;
&lt;br /&gt;
* The new license is already registered at the LDB after purchase.&lt;br /&gt;
* Log on at the Univention Management Console (UMC)&lt;br /&gt;
* Make sure, that the correct LDB account has been selected in the UMC module &amp;quot;OX License Management&amp;quot;&lt;br /&gt;
* Click on &amp;quot;App Center&amp;quot; at the UMC und switch to the tab &amp;quot;Repository Settings&amp;quot;&lt;br /&gt;
* Within the component list, select &amp;quot;Open-Xchange Drive&amp;quot; and press the &amp;quot;Install&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The following gives an overview about the most important settings to enable file synchronization via OX Drive, especially when it comes to real-time Push notifications for the client applications.&lt;br /&gt;
&lt;br /&gt;
All settings regarding the OX Drive backend component are located in the configuration file &#039;&#039;drive.properties&#039;&#039;. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the Push certificates and API keys for cloud-based client notifications, see next chapters). Please refer to the inline documentation of the configuration file for more advanced options. &lt;br /&gt;
&lt;br /&gt;
=== Push via Google Cloud Messaging (GCM) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for Android devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.android.com/google/gcm/index.html Google Cloud Messaging (GCM)]. To issue those Push messages, the backend needs to be provided with a suitable API key for the corresponding Android client application. The API key is included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; Android client application. Alternatively, the key can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the API key of the server application. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.gcm.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.gcm.key=&lt;br /&gt;
&lt;br /&gt;
Push via GCM can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Google&lt;br /&gt;
 # Cloud Messaging (GCM) service. This requires a valid configuration for the &lt;br /&gt;
 # GCM API key, see options below. Defaults to &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.gcm.enabled=true&lt;br /&gt;
&lt;br /&gt;
Please note that push via GCM needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Push via Apple Push Notification service (APNs) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for iOS and Mac OS devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.apple.com/library/IOS/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html Apple Push Notification service (APNs)]. To issue those Push messages, the backend needs to be provided with a suitable keystore container file (PKCS #12) containing the APNs certificate and keys. Note that the Mac OS desktop client and the iOS mobile client are served separately with different certificates, so that both needs to be configured independantly. The required certificates are already included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; iOS and Mac OS client applications. Alternatively, the certificate can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file (the following only shows the setup for iOS). First, the path to the PKCS #12 container file needs to be specified at:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the path to the local keystore file (PKCS #12) containing the APNS &lt;br /&gt;
 # certificate and keys for the iOS application, e.g. &lt;br /&gt;
 # &amp;quot;/opt/open-xchange/etc/drive-apns.p12&amp;quot;. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.keystore=&lt;br /&gt;
&lt;br /&gt;
This file is opened by the backend using the password as supplied via: &lt;br /&gt;
 &lt;br /&gt;
 # Specifies the password used when creating the referenced keystore containing&lt;br /&gt;
 # the certificate of the iOS application. Note that blank or null passwords &lt;br /&gt;
 # are in violation of the PKCS #12 specifications. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.password=&lt;br /&gt;
&lt;br /&gt;
Configuration also allows to swith between development and production environments, however, this setting should be &#039;&#039;true&#039;&#039; normally:&lt;br /&gt;
&lt;br /&gt;
 # Indicates which APNS service is used when sending push notifications to iOS&lt;br /&gt;
 # devices. A value of &amp;quot;true&amp;quot; will use the production service, a value of &lt;br /&gt;
 # &amp;quot;false&amp;quot; the sandbox service. Defaults to &amp;quot;true&amp;quot;.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.production=true&lt;br /&gt;
&lt;br /&gt;
The OX backend contacts the APNs servers from time to time to get informed about clients no longer reachable clients where the applications was uninstalled. The interval can be defined with the following setting: &lt;br /&gt;
&lt;br /&gt;
 # Configures the interval between queries to the APN feedback service for the&lt;br /&gt;
 # subscribed iOS devices. The value can be defined using units of measurement: &lt;br /&gt;
 # &amp;quot;D&amp;quot; (=days), &amp;quot;W&amp;quot; (=weeks) and &amp;quot;H&amp;quot; (=hours). Defaults to &amp;quot;1D&amp;quot; (one day). &lt;br /&gt;
 # Leaving this parameter empty disables the feedback queries on this node. &lt;br /&gt;
 # Since each received feedback is processed cluster-wide, only one node in the &lt;br /&gt;
 # cluster should be enabled here. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.feedbackQueryInterval=1D&lt;br /&gt;
&lt;br /&gt;
Please note that if you have multiple backend nodes in the cluster, it&#039;s recommended that only one node is configured to contact the feedback query service. Finally, Push notifications via APN for iOS can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Apple Push&lt;br /&gt;
 # Notification service (APNS) for Mac OS devices. This requires a valid &lt;br /&gt;
 # configuration for the APNS certificate and keys, see either options below, &lt;br /&gt;
 # or install the restricted components packages for drive. Defaults to &lt;br /&gt;
 # &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.enabled=false&lt;br /&gt;
&lt;br /&gt;
As stated above, configuration for Push notifications via APN for the Mac OS desktop application is configured similarly, the relevant options are prefixed with &#039;&#039;com.openexchange.drive.events.apn.macos&#039;&#039;. Please also note that push via APNS needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Further Configuration ===&lt;br /&gt;
&lt;br /&gt;
* The backend component of OX Drive supplies the clients with various hyperlinks, e.g. deep-links to files and folders in the groupware webinterface or an URL to the online help. In order to point to the suitable web interface, please ensure that the correct UI web path is configured via &#039;&#039;com.openexchange.UIWebPath&#039;&#039; located in &#039;&#039;server.properties&#039;&#039;.&lt;br /&gt;
* As already mentioned above, the backend relies on the [https://grizzly.java.net/comet.html Comet] component of the Grizzly http connector for sending push notifications to the desktop clients. Therefore, &#039;&#039;com.openexchange.http.grizzly.hasCometEnabled&#039;&#039; needs to be set to &#039;&#039;true&#039;&#039; in &#039;&#039;grizzly.properties&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Enabling OX Drive for Users =&lt;br /&gt;
&lt;br /&gt;
OX Drive is enabled for all users that have the capability &#039;&#039;com.openexchange.capability.drive&#039;&#039;. Please note that users need to have the &#039;&#039;infostore&#039;&#039; permission set to use drive. So the users that have &#039;&#039;drive&#039;&#039; enabled must be a subset of those users with &#039;&#039;infostore&#039;&#039; permission. Since 7.6.0 we enforce this via the default configuration. You can also enable this cabaility globally with the following setting in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables the &amp;quot;drive&amp;quot; module capability globally. The capability&lt;br /&gt;
 # can also be set more fine-grained via config cascade. Per default it is only&lt;br /&gt;
 # enabled for users that have the &amp;quot;infostore&amp;quot; permission set. This is configured&lt;br /&gt;
 # in /opt/open-xchange/etc/contextSets/drive.yml.&lt;br /&gt;
 com.openexchange.capability.drive=false&lt;br /&gt;
&lt;br /&gt;
More details about capabilities can be found at [[AppSuite:Capabilities]]. Furthermore, this capability can be defined in a more granular way using the Config Cascade as described at [[ConfigCascade]].&lt;br /&gt;
&lt;br /&gt;
= Installation of the Clients =&lt;br /&gt;
&lt;br /&gt;
== Installation of Mac OS X Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive for Mac OS X will be provided via the Apple App Store:&lt;br /&gt;
&lt;br /&gt;
* https://itunes.apple.com/app/ox-drive/id818195014?mt=12&lt;br /&gt;
&lt;br /&gt;
== Installation of Windows Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
See [[AppSuite:OX_Drive#OX_Drive_for_Windows|OX Drive for Windows]].&lt;br /&gt;
&lt;br /&gt;
== Installation on Mobile Clients ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive App is available via the different App Stores:&lt;br /&gt;
&lt;br /&gt;
* iOS: https://itunes.apple.com/app/ox-drive/id798570177?mt=8&lt;br /&gt;
&lt;br /&gt;
* Android: https://play.google.com/store/apps/details?id=com.openexchange.drive.vanilla&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Client Configuration and Deployment ==&lt;br /&gt;
&lt;br /&gt;
The user needs to enter the server URL and provide his username and password. Afterwards, client-specific settings may be configured. This includes the synchronization mode (All files / Favorites only) and Photostream settings on mobile devices, or the local root synchronization folder for the desktop applications. More information is available in the online documentation. &lt;br /&gt;
&lt;br /&gt;
After the initial synchronization is completed, all further changes are synchronized instantly across all devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= FAQ =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How to limit the maximum file size, a configured &#039;&#039;MAX_UPLOAD_SIZE&#039;&#039; seems to have no effect for uploads from OX Drive clients?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This setting has no effect for files uploaded from OX Drive clients, since big uploads may also be processed via multiple requests in smaller chunks. We plan to offer a separate configuration option in a future release.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;There are strange files and folders on the backend, where do they come from, is it safe to delete them?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To support chunked uploads, and to optimize the synchronization process, the synchronization logic may create various temporary files (&#039;&#039;.drive&#039;&#039; directory and contained files). They only appear in the web interface if the setting &#039;&#039;Show hidden files and folders&#039;&#039; is enabled, and are removed automatically if not accessed for a specific period (default: 1 day).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Not all files and folders get synchronized. Are there any restrictions?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Yes, please consult the online help for a detailed list of excluded files and folders.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How do I synchronize a shared or public folder?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Currently, only the synchronization of a single root folder (and all of it&#039;s subfolders) is possible. For the mobile client applications, this is always the default personal drive folder of the user, while the desktop clients allow to choose which folder to synchronize. The synchronization of multiple root folders is scheduled for a future release.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21783</id>
		<title>AppSuite:OX Drive</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21783"/>
		<updated>2016-04-04T11:25:11Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: /* Redhat Enterprise Linux 7 or CentOS 7 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Drive =&lt;br /&gt;
&lt;br /&gt;
In OX App Suite, Open-Xchange provides a cloud storage called OX Drive. It provides file- and folder synchronization across multiple devices in the most simplest way for the end user, fully optimized for each device type. This article explains how to set up the server-side components for OX Drive, as well as details about the client setup.&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Native Apps for Windows, Mac OS, iOS and Android&lt;br /&gt;
* Easy and attractive upsell properties (e.g. Upsell based on Quota limitations)&lt;br /&gt;
* Clients are specially designed for the devices they run on taking into account limitations such as battery life, screen limitations, bandwidth etc.&lt;br /&gt;
* Controlled synchronization of files across devices&lt;br /&gt;
* Storage management (e.g. quota control, upload limits)&lt;br /&gt;
* Connection type recognition and adaptation (e.g. Wi-Fi, cell network)&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
OX Drive is a combination of two components:&lt;br /&gt;
* OX Drive in OX App Suite&lt;br /&gt;
* OX Drive Clients (optional native client components for synchronization)&lt;br /&gt;
&lt;br /&gt;
OX Drive is available for the following native clients:&lt;br /&gt;
* OX Drive for Windows&lt;br /&gt;
* OX Drive for Mac OS&lt;br /&gt;
* OX Drive for iOS&lt;br /&gt;
* OX Drive for Android&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
You will find the requirements under [[AppSuite:OX_System_Requirements#OX_Drive_for_Clients|OX Drive Client and Platform Requirements]]&lt;br /&gt;
&lt;br /&gt;
= Server-side Installation and Configuration =&lt;br /&gt;
&lt;br /&gt;
This chapter describes how the backend components of OX Drive are installed and configured on the server.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* Open-Xchange Server v7.4.2 and above (&#039;&#039;open-xchange-core&#039;&#039;)&lt;br /&gt;
* Grizzly HTTP connector (&#039;&#039;open-xchange-grizzly&#039;&#039;), see [[AppSuite:Grizzly]] for details, with &#039;&#039;Comet&#039;&#039; support enabled in &#039;&#039;grizzly.properties&#039;&#039;&lt;br /&gt;
* Valid Push-Certificates / API keys for cloud-based notifications, see configuration below&lt;br /&gt;
* Enabled Hazelcast for inter-OX-communication, see [[AppSuite:Running_a_cluster]] for details&lt;br /&gt;
&lt;br /&gt;
== Available packages ==&lt;br /&gt;
&lt;br /&gt;
Open-Xchange Drive is available with the following backend packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive&#039;&#039; - The main server components for OX Drive&lt;br /&gt;
* &#039;&#039;open-xchange-drive-comet&#039;&#039; - Provides the Push interface via long-polling for the desktop clients&lt;br /&gt;
* &#039;&#039;open-xchange-drive-help-*&#039;&#039; - Online help in various languages for the OX Drive applications (these were called &#039;&#039;open-xchange-appsuite-help-drive-*&#039;&#039; in versions earlier than Open-Xchange Server v7.6.2)&lt;br /&gt;
* &#039;&#039;open-xchange-drive-restricted&#039;&#039; - Restricted components, including prerequisites for cloud-based push notifications&lt;br /&gt;
&lt;br /&gt;
Installation on the server varies depending on the underlying distribution, details are available in the following chapters.&lt;br /&gt;
&lt;br /&gt;
=== OX Drive for Windows ===&lt;br /&gt;
&lt;br /&gt;
Additionally OX Drive for Windows can be provided to users by installing additional packages. However there are significant differences between 7.8.0 and earlier releases and 7.8.1 and later ones:&lt;br /&gt;
&lt;br /&gt;
==== 7.8.0 and earlier ====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be provided via the [[AppSuite:Open-Xchange_Updater|Open-Xchange Updater]] by installing the package &#039;&#039;open-xchange-updater-drive&#039;&#039;. Initial installation and updates are performed by the Updater then.&lt;br /&gt;
&lt;br /&gt;
==== 7.8.1 and later ====&lt;br /&gt;
&lt;br /&gt;
With OX App Suite 7.8.1 and OX Drive for Windows 2.0.0, the client is able to update itself and can be downloaded from the Web UI directly via the [[AppSuite:Client_Onoarding|Client Onboarding Wizard]]. Therefore the wizard must be installed and configured for OX Drive users. Besides the client onboarding feature you need the following packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows&#039;&#039; - The main server component to provide the client&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; - The package providing the final binary files to be installed on users machines.&lt;br /&gt;
&lt;br /&gt;
To make the client download available via the client onboarding wizard, you need to enable the according scenario. Edit &#039;&#039;/opt/open-xchange/etc/client-onboarding-scenarios.yml&#039;&#039; and get to the &#039;&#039;drivewindowsclientinstall&#039;&#039; section, where you have to set the &#039;&#039;enabled&#039;&#039; property to &#039;&#039;true&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that there still exists a compatibility layer between the old Updater-based approach and the new direct install and self-update one. If you start providing OX Drive for Windows with 7.8.1 or later you MAY decide to enable that compatibility by installing &#039;&#039;open-xchange-updater-drive&#039;&#039;, however we advice not to do so. If you already provided OX Drive for Windows with 7.8.0 or earlier, you MUST install this package and further provide the Updater. Otherwise the clients out there will not be able to be updated to the 2.0.0 version, which is then self-update capable.&lt;br /&gt;
&lt;br /&gt;
===== Custom branded clients =====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be purchased with a custom theming. In such cases, the according binary files need to be installed on the middleware servers. Instead of the &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; package, a package containing the branded binaries will be provided as &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; and needs to be installed. You MUST then set the property &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; in &#039;&#039;/opt/open-xchange/etc/drive-client-windows.properties&#039;&#039; to &#039;&#039;&amp;lt;brand-name&amp;gt;&#039;&#039; accordingly.&lt;br /&gt;
&lt;br /&gt;
It is also possible to provide multiple brands of the client via the same OX App Suite deployment, multiple &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; packages can be installed in parallel. Which brand is available for a certain user is determined by the &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; property, which can be overwritten via [[ConfigCascade|Config Cascade]] therefore.&lt;br /&gt;
&lt;br /&gt;
Client brands can be managed via command line tools. The tool &#039;&#039;/opt/open-xchange/sbin/listdriveclients&#039;&#039; lists all installed brands. After updating a certain brand by installing a newer package version or installing an additional one, no server restart is necessary. Instead &#039;&#039;/opt/open-xchange/sbin/reloaddriveclients&#039;&#039; can be executed to refresh the internal server state.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== OX Server Edition / App Suite for UCS ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX Server Edition / App Suite for UCS, the OX Drive is part of the offering and after the installation/update available. The necessary package for push, is available with a valid license and can be installed via the Univention App Center.&lt;br /&gt;
&lt;br /&gt;
* The new license is already registered at the LDB after purchase.&lt;br /&gt;
* Log on at the Univention Management Console (UMC)&lt;br /&gt;
* Make sure, that the correct LDB account has been selected in the UMC module &amp;quot;OX License Management&amp;quot;&lt;br /&gt;
* Click on &amp;quot;App Center&amp;quot; at the UMC und switch to the tab &amp;quot;Repository Settings&amp;quot;&lt;br /&gt;
* Within the component list, select &amp;quot;Open-Xchange Drive&amp;quot; and press the &amp;quot;Install&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The following gives an overview about the most important settings to enable file synchronization via OX Drive, especially when it comes to real-time Push notifications for the client applications.&lt;br /&gt;
&lt;br /&gt;
All settings regarding the OX Drive backend component are located in the configuration file &#039;&#039;drive.properties&#039;&#039;. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the Push certificates and API keys for cloud-based client notifications, see next chapters). Please refer to the inline documentation of the configuration file for more advanced options. &lt;br /&gt;
&lt;br /&gt;
=== Push via Google Cloud Messaging (GCM) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for Android devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.android.com/google/gcm/index.html Google Cloud Messaging (GCM)]. To issue those Push messages, the backend needs to be provided with a suitable API key for the corresponding Android client application. The API key is included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; Android client application. Alternatively, the key can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the API key of the server application. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.gcm.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.gcm.key=&lt;br /&gt;
&lt;br /&gt;
Push via GCM can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Google&lt;br /&gt;
 # Cloud Messaging (GCM) service. This requires a valid configuration for the &lt;br /&gt;
 # GCM API key, see options below. Defaults to &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.gcm.enabled=true&lt;br /&gt;
&lt;br /&gt;
Please note that push via GCM needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Push via Apple Push Notification service (APNs) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for iOS and Mac OS devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.apple.com/library/IOS/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html Apple Push Notification service (APNs)]. To issue those Push messages, the backend needs to be provided with a suitable keystore container file (PKCS #12) containing the APNs certificate and keys. Note that the Mac OS desktop client and the iOS mobile client are served separately with different certificates, so that both needs to be configured independantly. The required certificates are already included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; iOS and Mac OS client applications. Alternatively, the certificate can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file (the following only shows the setup for iOS). First, the path to the PKCS #12 container file needs to be specified at:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the path to the local keystore file (PKCS #12) containing the APNS &lt;br /&gt;
 # certificate and keys for the iOS application, e.g. &lt;br /&gt;
 # &amp;quot;/opt/open-xchange/etc/drive-apns.p12&amp;quot;. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.keystore=&lt;br /&gt;
&lt;br /&gt;
This file is opened by the backend using the password as supplied via: &lt;br /&gt;
 &lt;br /&gt;
 # Specifies the password used when creating the referenced keystore containing&lt;br /&gt;
 # the certificate of the iOS application. Note that blank or null passwords &lt;br /&gt;
 # are in violation of the PKCS #12 specifications. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.password=&lt;br /&gt;
&lt;br /&gt;
Configuration also allows to swith between development and production environments, however, this setting should be &#039;&#039;true&#039;&#039; normally:&lt;br /&gt;
&lt;br /&gt;
 # Indicates which APNS service is used when sending push notifications to iOS&lt;br /&gt;
 # devices. A value of &amp;quot;true&amp;quot; will use the production service, a value of &lt;br /&gt;
 # &amp;quot;false&amp;quot; the sandbox service. Defaults to &amp;quot;true&amp;quot;.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.production=true&lt;br /&gt;
&lt;br /&gt;
The OX backend contacts the APNs servers from time to time to get informed about clients no longer reachable clients where the applications was uninstalled. The interval can be defined with the following setting: &lt;br /&gt;
&lt;br /&gt;
 # Configures the interval between queries to the APN feedback service for the&lt;br /&gt;
 # subscribed iOS devices. The value can be defined using units of measurement: &lt;br /&gt;
 # &amp;quot;D&amp;quot; (=days), &amp;quot;W&amp;quot; (=weeks) and &amp;quot;H&amp;quot; (=hours). Defaults to &amp;quot;1D&amp;quot; (one day). &lt;br /&gt;
 # Leaving this parameter empty disables the feedback queries on this node. &lt;br /&gt;
 # Since each received feedback is processed cluster-wide, only one node in the &lt;br /&gt;
 # cluster should be enabled here. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.feedbackQueryInterval=1D&lt;br /&gt;
&lt;br /&gt;
Please note that if you have multiple backend nodes in the cluster, it&#039;s recommended that only one node is configured to contact the feedback query service. Finally, Push notifications via APN for iOS can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Apple Push&lt;br /&gt;
 # Notification service (APNS) for Mac OS devices. This requires a valid &lt;br /&gt;
 # configuration for the APNS certificate and keys, see either options below, &lt;br /&gt;
 # or install the restricted components packages for drive. Defaults to &lt;br /&gt;
 # &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.enabled=false&lt;br /&gt;
&lt;br /&gt;
As stated above, configuration for Push notifications via APN for the Mac OS desktop application is configured similarly, the relevant options are prefixed with &#039;&#039;com.openexchange.drive.events.apn.macos&#039;&#039;. Please also note that push via APNS needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Further Configuration ===&lt;br /&gt;
&lt;br /&gt;
* The backend component of OX Drive supplies the clients with various hyperlinks, e.g. deep-links to files and folders in the groupware webinterface or an URL to the online help. In order to point to the suitable web interface, please ensure that the correct UI web path is configured via &#039;&#039;com.openexchange.UIWebPath&#039;&#039; located in &#039;&#039;server.properties&#039;&#039;.&lt;br /&gt;
* As already mentioned above, the backend relies on the [https://grizzly.java.net/comet.html Comet] component of the Grizzly http connector for sending push notifications to the desktop clients. Therefore, &#039;&#039;com.openexchange.http.grizzly.hasCometEnabled&#039;&#039; needs to be set to &#039;&#039;true&#039;&#039; in &#039;&#039;grizzly.properties&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Enabling OX Drive for Users =&lt;br /&gt;
&lt;br /&gt;
OX Drive is enabled for all users that have the capability &#039;&#039;com.openexchange.capability.drive&#039;&#039;. Please note that users need to have the &#039;&#039;infostore&#039;&#039; permission set to use drive. So the users that have &#039;&#039;drive&#039;&#039; enabled must be a subset of those users with &#039;&#039;infostore&#039;&#039; permission. Since 7.6.0 we enforce this via the default configuration. You can also enable this cabaility globally with the following setting in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables the &amp;quot;drive&amp;quot; module capability globally. The capability&lt;br /&gt;
 # can also be set more fine-grained via config cascade. Per default it is only&lt;br /&gt;
 # enabled for users that have the &amp;quot;infostore&amp;quot; permission set. This is configured&lt;br /&gt;
 # in /opt/open-xchange/etc/contextSets/drive.yml.&lt;br /&gt;
 com.openexchange.capability.drive=false&lt;br /&gt;
&lt;br /&gt;
More details about capabilities can be found at [[AppSuite:Capabilities]]. Furthermore, this capability can be defined in a more granular way using the Config Cascade as described at [[ConfigCascade]].&lt;br /&gt;
&lt;br /&gt;
= Installation of the Clients =&lt;br /&gt;
&lt;br /&gt;
== Installation of Mac OS X Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive for Mac OS X will be provided via the Apple App Store:&lt;br /&gt;
&lt;br /&gt;
* https://itunes.apple.com/app/ox-drive/id818195014?mt=12&lt;br /&gt;
&lt;br /&gt;
== Installation of Windows Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
See [[AppSuite:OX_Drive#OX_Drive_for_Windows|OX Drive for Windows]].&lt;br /&gt;
&lt;br /&gt;
== Installation on Mobile Clients ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive App is available via the different App Stores:&lt;br /&gt;
&lt;br /&gt;
* iOS: https://itunes.apple.com/app/ox-drive/id798570177?mt=8&lt;br /&gt;
&lt;br /&gt;
* Android: https://play.google.com/store/apps/details?id=com.openexchange.drive.vanilla&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Client Configuration and Deployment ==&lt;br /&gt;
&lt;br /&gt;
The user needs to enter the server URL and provide his username and password. Afterwards, client-specific settings may be configured. This includes the synchronization mode (All files / Favorites only) and Photostream settings on mobile devices, or the local root synchronization folder for the desktop applications. More information is available in the online documentation. &lt;br /&gt;
&lt;br /&gt;
After the initial synchronization is completed, all further changes are synchronized instantly across all devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= FAQ =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How to limit the maximum file size, a configured &#039;&#039;MAX_UPLOAD_SIZE&#039;&#039; seems to have no effect for uploads from OX Drive clients?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This setting has no effect for files uploaded from OX Drive clients, since big uploads may also be processed via multiple requests in smaller chunks. We plan to offer a separate configuration option in a future release.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;There are strange files and folders on the backend, where do they come from, is it safe to delete them?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To support chunked uploads, and to optimize the synchronization process, the synchronization logic may create various temporary files (&#039;&#039;.drive&#039;&#039; directory and contained files). They only appear in the web interface if the setting &#039;&#039;Show hidden files and folders&#039;&#039; is enabled, and are removed automatically if not accessed for a specific period (default: 1 day).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Not all files and folders get synchronized. Are there any restrictions?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Yes, please consult the online help for a detailed list of excluded files and folders.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How do I synchronize a shared or public folder?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Currently, only the synchronization of a single root folder (and all of it&#039;s subfolders) is possible. For the mobile client applications, this is always the default personal drive folder of the user, while the desktop clients allow to choose which folder to synchronize. The synchronization of multiple root folders is scheduled for a future release.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21782</id>
		<title>AppSuite:OX Drive</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21782"/>
		<updated>2016-04-04T11:24:35Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: /* Debian GNU/Linux 7.0 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Drive =&lt;br /&gt;
&lt;br /&gt;
In OX App Suite, Open-Xchange provides a cloud storage called OX Drive. It provides file- and folder synchronization across multiple devices in the most simplest way for the end user, fully optimized for each device type. This article explains how to set up the server-side components for OX Drive, as well as details about the client setup.&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Native Apps for Windows, Mac OS, iOS and Android&lt;br /&gt;
* Easy and attractive upsell properties (e.g. Upsell based on Quota limitations)&lt;br /&gt;
* Clients are specially designed for the devices they run on taking into account limitations such as battery life, screen limitations, bandwidth etc.&lt;br /&gt;
* Controlled synchronization of files across devices&lt;br /&gt;
* Storage management (e.g. quota control, upload limits)&lt;br /&gt;
* Connection type recognition and adaptation (e.g. Wi-Fi, cell network)&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
OX Drive is a combination of two components:&lt;br /&gt;
* OX Drive in OX App Suite&lt;br /&gt;
* OX Drive Clients (optional native client components for synchronization)&lt;br /&gt;
&lt;br /&gt;
OX Drive is available for the following native clients:&lt;br /&gt;
* OX Drive for Windows&lt;br /&gt;
* OX Drive for Mac OS&lt;br /&gt;
* OX Drive for iOS&lt;br /&gt;
* OX Drive for Android&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
You will find the requirements under [[AppSuite:OX_System_Requirements#OX_Drive_for_Clients|OX Drive Client and Platform Requirements]]&lt;br /&gt;
&lt;br /&gt;
= Server-side Installation and Configuration =&lt;br /&gt;
&lt;br /&gt;
This chapter describes how the backend components of OX Drive are installed and configured on the server.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* Open-Xchange Server v7.4.2 and above (&#039;&#039;open-xchange-core&#039;&#039;)&lt;br /&gt;
* Grizzly HTTP connector (&#039;&#039;open-xchange-grizzly&#039;&#039;), see [[AppSuite:Grizzly]] for details, with &#039;&#039;Comet&#039;&#039; support enabled in &#039;&#039;grizzly.properties&#039;&#039;&lt;br /&gt;
* Valid Push-Certificates / API keys for cloud-based notifications, see configuration below&lt;br /&gt;
* Enabled Hazelcast for inter-OX-communication, see [[AppSuite:Running_a_cluster]] for details&lt;br /&gt;
&lt;br /&gt;
== Available packages ==&lt;br /&gt;
&lt;br /&gt;
Open-Xchange Drive is available with the following backend packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive&#039;&#039; - The main server components for OX Drive&lt;br /&gt;
* &#039;&#039;open-xchange-drive-comet&#039;&#039; - Provides the Push interface via long-polling for the desktop clients&lt;br /&gt;
* &#039;&#039;open-xchange-drive-help-*&#039;&#039; - Online help in various languages for the OX Drive applications (these were called &#039;&#039;open-xchange-appsuite-help-drive-*&#039;&#039; in versions earlier than Open-Xchange Server v7.6.2)&lt;br /&gt;
* &#039;&#039;open-xchange-drive-restricted&#039;&#039; - Restricted components, including prerequisites for cloud-based push notifications&lt;br /&gt;
&lt;br /&gt;
Installation on the server varies depending on the underlying distribution, details are available in the following chapters.&lt;br /&gt;
&lt;br /&gt;
=== OX Drive for Windows ===&lt;br /&gt;
&lt;br /&gt;
Additionally OX Drive for Windows can be provided to users by installing additional packages. However there are significant differences between 7.8.0 and earlier releases and 7.8.1 and later ones:&lt;br /&gt;
&lt;br /&gt;
==== 7.8.0 and earlier ====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be provided via the [[AppSuite:Open-Xchange_Updater|Open-Xchange Updater]] by installing the package &#039;&#039;open-xchange-updater-drive&#039;&#039;. Initial installation and updates are performed by the Updater then.&lt;br /&gt;
&lt;br /&gt;
==== 7.8.1 and later ====&lt;br /&gt;
&lt;br /&gt;
With OX App Suite 7.8.1 and OX Drive for Windows 2.0.0, the client is able to update itself and can be downloaded from the Web UI directly via the [[AppSuite:Client_Onoarding|Client Onboarding Wizard]]. Therefore the wizard must be installed and configured for OX Drive users. Besides the client onboarding feature you need the following packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows&#039;&#039; - The main server component to provide the client&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; - The package providing the final binary files to be installed on users machines.&lt;br /&gt;
&lt;br /&gt;
To make the client download available via the client onboarding wizard, you need to enable the according scenario. Edit &#039;&#039;/opt/open-xchange/etc/client-onboarding-scenarios.yml&#039;&#039; and get to the &#039;&#039;drivewindowsclientinstall&#039;&#039; section, where you have to set the &#039;&#039;enabled&#039;&#039; property to &#039;&#039;true&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that there still exists a compatibility layer between the old Updater-based approach and the new direct install and self-update one. If you start providing OX Drive for Windows with 7.8.1 or later you MAY decide to enable that compatibility by installing &#039;&#039;open-xchange-updater-drive&#039;&#039;, however we advice not to do so. If you already provided OX Drive for Windows with 7.8.0 or earlier, you MUST install this package and further provide the Updater. Otherwise the clients out there will not be able to be updated to the 2.0.0 version, which is then self-update capable.&lt;br /&gt;
&lt;br /&gt;
===== Custom branded clients =====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be purchased with a custom theming. In such cases, the according binary files need to be installed on the middleware servers. Instead of the &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; package, a package containing the branded binaries will be provided as &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; and needs to be installed. You MUST then set the property &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; in &#039;&#039;/opt/open-xchange/etc/drive-client-windows.properties&#039;&#039; to &#039;&#039;&amp;lt;brand-name&amp;gt;&#039;&#039; accordingly.&lt;br /&gt;
&lt;br /&gt;
It is also possible to provide multiple brands of the client via the same OX App Suite deployment, multiple &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; packages can be installed in parallel. Which brand is available for a certain user is determined by the &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; property, which can be overwritten via [[ConfigCascade|Config Cascade]] therefore.&lt;br /&gt;
&lt;br /&gt;
Client brands can be managed via command line tools. The tool &#039;&#039;/opt/open-xchange/sbin/listdriveclients&#039;&#039; lists all installed brands. After updating a certain brand by installing a newer package version or installing an additional one, no server restart is necessary. Instead &#039;&#039;/opt/open-xchange/sbin/reloaddriveclients&#039;&#039; can be executed to refresh the internal server state.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== OX Server Edition / App Suite for UCS ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX Server Edition / App Suite for UCS, the OX Drive is part of the offering and after the installation/update available. The necessary package for push, is available with a valid license and can be installed via the Univention App Center.&lt;br /&gt;
&lt;br /&gt;
* The new license is already registered at the LDB after purchase.&lt;br /&gt;
* Log on at the Univention Management Console (UMC)&lt;br /&gt;
* Make sure, that the correct LDB account has been selected in the UMC module &amp;quot;OX License Management&amp;quot;&lt;br /&gt;
* Click on &amp;quot;App Center&amp;quot; at the UMC und switch to the tab &amp;quot;Repository Settings&amp;quot;&lt;br /&gt;
* Within the component list, select &amp;quot;Open-Xchange Drive&amp;quot; and press the &amp;quot;Install&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The following gives an overview about the most important settings to enable file synchronization via OX Drive, especially when it comes to real-time Push notifications for the client applications.&lt;br /&gt;
&lt;br /&gt;
All settings regarding the OX Drive backend component are located in the configuration file &#039;&#039;drive.properties&#039;&#039;. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the Push certificates and API keys for cloud-based client notifications, see next chapters). Please refer to the inline documentation of the configuration file for more advanced options. &lt;br /&gt;
&lt;br /&gt;
=== Push via Google Cloud Messaging (GCM) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for Android devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.android.com/google/gcm/index.html Google Cloud Messaging (GCM)]. To issue those Push messages, the backend needs to be provided with a suitable API key for the corresponding Android client application. The API key is included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; Android client application. Alternatively, the key can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the API key of the server application. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.gcm.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.gcm.key=&lt;br /&gt;
&lt;br /&gt;
Push via GCM can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Google&lt;br /&gt;
 # Cloud Messaging (GCM) service. This requires a valid configuration for the &lt;br /&gt;
 # GCM API key, see options below. Defaults to &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.gcm.enabled=true&lt;br /&gt;
&lt;br /&gt;
Please note that push via GCM needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Push via Apple Push Notification service (APNs) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for iOS and Mac OS devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.apple.com/library/IOS/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html Apple Push Notification service (APNs)]. To issue those Push messages, the backend needs to be provided with a suitable keystore container file (PKCS #12) containing the APNs certificate and keys. Note that the Mac OS desktop client and the iOS mobile client are served separately with different certificates, so that both needs to be configured independantly. The required certificates are already included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; iOS and Mac OS client applications. Alternatively, the certificate can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file (the following only shows the setup for iOS). First, the path to the PKCS #12 container file needs to be specified at:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the path to the local keystore file (PKCS #12) containing the APNS &lt;br /&gt;
 # certificate and keys for the iOS application, e.g. &lt;br /&gt;
 # &amp;quot;/opt/open-xchange/etc/drive-apns.p12&amp;quot;. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.keystore=&lt;br /&gt;
&lt;br /&gt;
This file is opened by the backend using the password as supplied via: &lt;br /&gt;
 &lt;br /&gt;
 # Specifies the password used when creating the referenced keystore containing&lt;br /&gt;
 # the certificate of the iOS application. Note that blank or null passwords &lt;br /&gt;
 # are in violation of the PKCS #12 specifications. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.password=&lt;br /&gt;
&lt;br /&gt;
Configuration also allows to swith between development and production environments, however, this setting should be &#039;&#039;true&#039;&#039; normally:&lt;br /&gt;
&lt;br /&gt;
 # Indicates which APNS service is used when sending push notifications to iOS&lt;br /&gt;
 # devices. A value of &amp;quot;true&amp;quot; will use the production service, a value of &lt;br /&gt;
 # &amp;quot;false&amp;quot; the sandbox service. Defaults to &amp;quot;true&amp;quot;.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.production=true&lt;br /&gt;
&lt;br /&gt;
The OX backend contacts the APNs servers from time to time to get informed about clients no longer reachable clients where the applications was uninstalled. The interval can be defined with the following setting: &lt;br /&gt;
&lt;br /&gt;
 # Configures the interval between queries to the APN feedback service for the&lt;br /&gt;
 # subscribed iOS devices. The value can be defined using units of measurement: &lt;br /&gt;
 # &amp;quot;D&amp;quot; (=days), &amp;quot;W&amp;quot; (=weeks) and &amp;quot;H&amp;quot; (=hours). Defaults to &amp;quot;1D&amp;quot; (one day). &lt;br /&gt;
 # Leaving this parameter empty disables the feedback queries on this node. &lt;br /&gt;
 # Since each received feedback is processed cluster-wide, only one node in the &lt;br /&gt;
 # cluster should be enabled here. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.feedbackQueryInterval=1D&lt;br /&gt;
&lt;br /&gt;
Please note that if you have multiple backend nodes in the cluster, it&#039;s recommended that only one node is configured to contact the feedback query service. Finally, Push notifications via APN for iOS can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Apple Push&lt;br /&gt;
 # Notification service (APNS) for Mac OS devices. This requires a valid &lt;br /&gt;
 # configuration for the APNS certificate and keys, see either options below, &lt;br /&gt;
 # or install the restricted components packages for drive. Defaults to &lt;br /&gt;
 # &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.enabled=false&lt;br /&gt;
&lt;br /&gt;
As stated above, configuration for Push notifications via APN for the Mac OS desktop application is configured similarly, the relevant options are prefixed with &#039;&#039;com.openexchange.drive.events.apn.macos&#039;&#039;. Please also note that push via APNS needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Further Configuration ===&lt;br /&gt;
&lt;br /&gt;
* The backend component of OX Drive supplies the clients with various hyperlinks, e.g. deep-links to files and folders in the groupware webinterface or an URL to the online help. In order to point to the suitable web interface, please ensure that the correct UI web path is configured via &#039;&#039;com.openexchange.UIWebPath&#039;&#039; located in &#039;&#039;server.properties&#039;&#039;.&lt;br /&gt;
* As already mentioned above, the backend relies on the [https://grizzly.java.net/comet.html Comet] component of the Grizzly http connector for sending push notifications to the desktop clients. Therefore, &#039;&#039;com.openexchange.http.grizzly.hasCometEnabled&#039;&#039; needs to be set to &#039;&#039;true&#039;&#039; in &#039;&#039;grizzly.properties&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Enabling OX Drive for Users =&lt;br /&gt;
&lt;br /&gt;
OX Drive is enabled for all users that have the capability &#039;&#039;com.openexchange.capability.drive&#039;&#039;. Please note that users need to have the &#039;&#039;infostore&#039;&#039; permission set to use drive. So the users that have &#039;&#039;drive&#039;&#039; enabled must be a subset of those users with &#039;&#039;infostore&#039;&#039; permission. Since 7.6.0 we enforce this via the default configuration. You can also enable this cabaility globally with the following setting in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables the &amp;quot;drive&amp;quot; module capability globally. The capability&lt;br /&gt;
 # can also be set more fine-grained via config cascade. Per default it is only&lt;br /&gt;
 # enabled for users that have the &amp;quot;infostore&amp;quot; permission set. This is configured&lt;br /&gt;
 # in /opt/open-xchange/etc/contextSets/drive.yml.&lt;br /&gt;
 com.openexchange.capability.drive=false&lt;br /&gt;
&lt;br /&gt;
More details about capabilities can be found at [[AppSuite:Capabilities]]. Furthermore, this capability can be defined in a more granular way using the Config Cascade as described at [[ConfigCascade]].&lt;br /&gt;
&lt;br /&gt;
= Installation of the Clients =&lt;br /&gt;
&lt;br /&gt;
== Installation of Mac OS X Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive for Mac OS X will be provided via the Apple App Store:&lt;br /&gt;
&lt;br /&gt;
* https://itunes.apple.com/app/ox-drive/id818195014?mt=12&lt;br /&gt;
&lt;br /&gt;
== Installation of Windows Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
See [[AppSuite:OX_Drive#OX_Drive_for_Windows|OX Drive for Windows]].&lt;br /&gt;
&lt;br /&gt;
== Installation on Mobile Clients ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive App is available via the different App Stores:&lt;br /&gt;
&lt;br /&gt;
* iOS: https://itunes.apple.com/app/ox-drive/id798570177?mt=8&lt;br /&gt;
&lt;br /&gt;
* Android: https://play.google.com/store/apps/details?id=com.openexchange.drive.vanilla&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Client Configuration and Deployment ==&lt;br /&gt;
&lt;br /&gt;
The user needs to enter the server URL and provide his username and password. Afterwards, client-specific settings may be configured. This includes the synchronization mode (All files / Favorites only) and Photostream settings on mobile devices, or the local root synchronization folder for the desktop applications. More information is available in the online documentation. &lt;br /&gt;
&lt;br /&gt;
After the initial synchronization is completed, all further changes are synchronized instantly across all devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= FAQ =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How to limit the maximum file size, a configured &#039;&#039;MAX_UPLOAD_SIZE&#039;&#039; seems to have no effect for uploads from OX Drive clients?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This setting has no effect for files uploaded from OX Drive clients, since big uploads may also be processed via multiple requests in smaller chunks. We plan to offer a separate configuration option in a future release.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;There are strange files and folders on the backend, where do they come from, is it safe to delete them?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To support chunked uploads, and to optimize the synchronization process, the synchronization logic may create various temporary files (&#039;&#039;.drive&#039;&#039; directory and contained files). They only appear in the web interface if the setting &#039;&#039;Show hidden files and folders&#039;&#039; is enabled, and are removed automatically if not accessed for a specific period (default: 1 day).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Not all files and folders get synchronized. Are there any restrictions?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Yes, please consult the online help for a detailed list of excluded files and folders.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How do I synchronize a shared or public folder?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Currently, only the synchronization of a single root folder (and all of it&#039;s subfolders) is possible. For the mobile client applications, this is always the default personal drive folder of the user, while the desktop clients allow to choose which folder to synchronize. The synchronization of multiple root folders is scheduled for a future release.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21781</id>
		<title>AppSuite:OX Drive</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21781"/>
		<updated>2016-04-04T11:24:06Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: /* Debian GNU/Linux 8.0 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Drive =&lt;br /&gt;
&lt;br /&gt;
In OX App Suite, Open-Xchange provides a cloud storage called OX Drive. It provides file- and folder synchronization across multiple devices in the most simplest way for the end user, fully optimized for each device type. This article explains how to set up the server-side components for OX Drive, as well as details about the client setup.&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Native Apps for Windows, Mac OS, iOS and Android&lt;br /&gt;
* Easy and attractive upsell properties (e.g. Upsell based on Quota limitations)&lt;br /&gt;
* Clients are specially designed for the devices they run on taking into account limitations such as battery life, screen limitations, bandwidth etc.&lt;br /&gt;
* Controlled synchronization of files across devices&lt;br /&gt;
* Storage management (e.g. quota control, upload limits)&lt;br /&gt;
* Connection type recognition and adaptation (e.g. Wi-Fi, cell network)&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
OX Drive is a combination of two components:&lt;br /&gt;
* OX Drive in OX App Suite&lt;br /&gt;
* OX Drive Clients (optional native client components for synchronization)&lt;br /&gt;
&lt;br /&gt;
OX Drive is available for the following native clients:&lt;br /&gt;
* OX Drive for Windows&lt;br /&gt;
* OX Drive for Mac OS&lt;br /&gt;
* OX Drive for iOS&lt;br /&gt;
* OX Drive for Android&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
You will find the requirements under [[AppSuite:OX_System_Requirements#OX_Drive_for_Clients|OX Drive Client and Platform Requirements]]&lt;br /&gt;
&lt;br /&gt;
= Server-side Installation and Configuration =&lt;br /&gt;
&lt;br /&gt;
This chapter describes how the backend components of OX Drive are installed and configured on the server.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* Open-Xchange Server v7.4.2 and above (&#039;&#039;open-xchange-core&#039;&#039;)&lt;br /&gt;
* Grizzly HTTP connector (&#039;&#039;open-xchange-grizzly&#039;&#039;), see [[AppSuite:Grizzly]] for details, with &#039;&#039;Comet&#039;&#039; support enabled in &#039;&#039;grizzly.properties&#039;&#039;&lt;br /&gt;
* Valid Push-Certificates / API keys for cloud-based notifications, see configuration below&lt;br /&gt;
* Enabled Hazelcast for inter-OX-communication, see [[AppSuite:Running_a_cluster]] for details&lt;br /&gt;
&lt;br /&gt;
== Available packages ==&lt;br /&gt;
&lt;br /&gt;
Open-Xchange Drive is available with the following backend packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive&#039;&#039; - The main server components for OX Drive&lt;br /&gt;
* &#039;&#039;open-xchange-drive-comet&#039;&#039; - Provides the Push interface via long-polling for the desktop clients&lt;br /&gt;
* &#039;&#039;open-xchange-drive-help-*&#039;&#039; - Online help in various languages for the OX Drive applications (these were called &#039;&#039;open-xchange-appsuite-help-drive-*&#039;&#039; in versions earlier than Open-Xchange Server v7.6.2)&lt;br /&gt;
* &#039;&#039;open-xchange-drive-restricted&#039;&#039; - Restricted components, including prerequisites for cloud-based push notifications&lt;br /&gt;
&lt;br /&gt;
Installation on the server varies depending on the underlying distribution, details are available in the following chapters.&lt;br /&gt;
&lt;br /&gt;
=== OX Drive for Windows ===&lt;br /&gt;
&lt;br /&gt;
Additionally OX Drive for Windows can be provided to users by installing additional packages. However there are significant differences between 7.8.0 and earlier releases and 7.8.1 and later ones:&lt;br /&gt;
&lt;br /&gt;
==== 7.8.0 and earlier ====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be provided via the [[AppSuite:Open-Xchange_Updater|Open-Xchange Updater]] by installing the package &#039;&#039;open-xchange-updater-drive&#039;&#039;. Initial installation and updates are performed by the Updater then.&lt;br /&gt;
&lt;br /&gt;
==== 7.8.1 and later ====&lt;br /&gt;
&lt;br /&gt;
With OX App Suite 7.8.1 and OX Drive for Windows 2.0.0, the client is able to update itself and can be downloaded from the Web UI directly via the [[AppSuite:Client_Onoarding|Client Onboarding Wizard]]. Therefore the wizard must be installed and configured for OX Drive users. Besides the client onboarding feature you need the following packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows&#039;&#039; - The main server component to provide the client&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; - The package providing the final binary files to be installed on users machines.&lt;br /&gt;
&lt;br /&gt;
To make the client download available via the client onboarding wizard, you need to enable the according scenario. Edit &#039;&#039;/opt/open-xchange/etc/client-onboarding-scenarios.yml&#039;&#039; and get to the &#039;&#039;drivewindowsclientinstall&#039;&#039; section, where you have to set the &#039;&#039;enabled&#039;&#039; property to &#039;&#039;true&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that there still exists a compatibility layer between the old Updater-based approach and the new direct install and self-update one. If you start providing OX Drive for Windows with 7.8.1 or later you MAY decide to enable that compatibility by installing &#039;&#039;open-xchange-updater-drive&#039;&#039;, however we advice not to do so. If you already provided OX Drive for Windows with 7.8.0 or earlier, you MUST install this package and further provide the Updater. Otherwise the clients out there will not be able to be updated to the 2.0.0 version, which is then self-update capable.&lt;br /&gt;
&lt;br /&gt;
===== Custom branded clients =====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be purchased with a custom theming. In such cases, the according binary files need to be installed on the middleware servers. Instead of the &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; package, a package containing the branded binaries will be provided as &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; and needs to be installed. You MUST then set the property &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; in &#039;&#039;/opt/open-xchange/etc/drive-client-windows.properties&#039;&#039; to &#039;&#039;&amp;lt;brand-name&amp;gt;&#039;&#039; accordingly.&lt;br /&gt;
&lt;br /&gt;
It is also possible to provide multiple brands of the client via the same OX App Suite deployment, multiple &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; packages can be installed in parallel. Which brand is available for a certain user is determined by the &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; property, which can be overwritten via [[ConfigCascade|Config Cascade]] therefore.&lt;br /&gt;
&lt;br /&gt;
Client brands can be managed via command line tools. The tool &#039;&#039;/opt/open-xchange/sbin/listdriveclients&#039;&#039; lists all installed brands. After updating a certain brand by installing a newer package version or installing an additional one, no server restart is necessary. Instead &#039;&#039;/opt/open-xchange/sbin/reloaddriveclients&#039;&#039; can be executed to refresh the internal server state.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== OX Server Edition / App Suite for UCS ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX Server Edition / App Suite for UCS, the OX Drive is part of the offering and after the installation/update available. The necessary package for push, is available with a valid license and can be installed via the Univention App Center.&lt;br /&gt;
&lt;br /&gt;
* The new license is already registered at the LDB after purchase.&lt;br /&gt;
* Log on at the Univention Management Console (UMC)&lt;br /&gt;
* Make sure, that the correct LDB account has been selected in the UMC module &amp;quot;OX License Management&amp;quot;&lt;br /&gt;
* Click on &amp;quot;App Center&amp;quot; at the UMC und switch to the tab &amp;quot;Repository Settings&amp;quot;&lt;br /&gt;
* Within the component list, select &amp;quot;Open-Xchange Drive&amp;quot; and press the &amp;quot;Install&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The following gives an overview about the most important settings to enable file synchronization via OX Drive, especially when it comes to real-time Push notifications for the client applications.&lt;br /&gt;
&lt;br /&gt;
All settings regarding the OX Drive backend component are located in the configuration file &#039;&#039;drive.properties&#039;&#039;. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the Push certificates and API keys for cloud-based client notifications, see next chapters). Please refer to the inline documentation of the configuration file for more advanced options. &lt;br /&gt;
&lt;br /&gt;
=== Push via Google Cloud Messaging (GCM) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for Android devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.android.com/google/gcm/index.html Google Cloud Messaging (GCM)]. To issue those Push messages, the backend needs to be provided with a suitable API key for the corresponding Android client application. The API key is included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; Android client application. Alternatively, the key can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the API key of the server application. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.gcm.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.gcm.key=&lt;br /&gt;
&lt;br /&gt;
Push via GCM can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Google&lt;br /&gt;
 # Cloud Messaging (GCM) service. This requires a valid configuration for the &lt;br /&gt;
 # GCM API key, see options below. Defaults to &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.gcm.enabled=true&lt;br /&gt;
&lt;br /&gt;
Please note that push via GCM needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Push via Apple Push Notification service (APNs) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for iOS and Mac OS devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.apple.com/library/IOS/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html Apple Push Notification service (APNs)]. To issue those Push messages, the backend needs to be provided with a suitable keystore container file (PKCS #12) containing the APNs certificate and keys. Note that the Mac OS desktop client and the iOS mobile client are served separately with different certificates, so that both needs to be configured independantly. The required certificates are already included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; iOS and Mac OS client applications. Alternatively, the certificate can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file (the following only shows the setup for iOS). First, the path to the PKCS #12 container file needs to be specified at:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the path to the local keystore file (PKCS #12) containing the APNS &lt;br /&gt;
 # certificate and keys for the iOS application, e.g. &lt;br /&gt;
 # &amp;quot;/opt/open-xchange/etc/drive-apns.p12&amp;quot;. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.keystore=&lt;br /&gt;
&lt;br /&gt;
This file is opened by the backend using the password as supplied via: &lt;br /&gt;
 &lt;br /&gt;
 # Specifies the password used when creating the referenced keystore containing&lt;br /&gt;
 # the certificate of the iOS application. Note that blank or null passwords &lt;br /&gt;
 # are in violation of the PKCS #12 specifications. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.password=&lt;br /&gt;
&lt;br /&gt;
Configuration also allows to swith between development and production environments, however, this setting should be &#039;&#039;true&#039;&#039; normally:&lt;br /&gt;
&lt;br /&gt;
 # Indicates which APNS service is used when sending push notifications to iOS&lt;br /&gt;
 # devices. A value of &amp;quot;true&amp;quot; will use the production service, a value of &lt;br /&gt;
 # &amp;quot;false&amp;quot; the sandbox service. Defaults to &amp;quot;true&amp;quot;.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.production=true&lt;br /&gt;
&lt;br /&gt;
The OX backend contacts the APNs servers from time to time to get informed about clients no longer reachable clients where the applications was uninstalled. The interval can be defined with the following setting: &lt;br /&gt;
&lt;br /&gt;
 # Configures the interval between queries to the APN feedback service for the&lt;br /&gt;
 # subscribed iOS devices. The value can be defined using units of measurement: &lt;br /&gt;
 # &amp;quot;D&amp;quot; (=days), &amp;quot;W&amp;quot; (=weeks) and &amp;quot;H&amp;quot; (=hours). Defaults to &amp;quot;1D&amp;quot; (one day). &lt;br /&gt;
 # Leaving this parameter empty disables the feedback queries on this node. &lt;br /&gt;
 # Since each received feedback is processed cluster-wide, only one node in the &lt;br /&gt;
 # cluster should be enabled here. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.feedbackQueryInterval=1D&lt;br /&gt;
&lt;br /&gt;
Please note that if you have multiple backend nodes in the cluster, it&#039;s recommended that only one node is configured to contact the feedback query service. Finally, Push notifications via APN for iOS can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Apple Push&lt;br /&gt;
 # Notification service (APNS) for Mac OS devices. This requires a valid &lt;br /&gt;
 # configuration for the APNS certificate and keys, see either options below, &lt;br /&gt;
 # or install the restricted components packages for drive. Defaults to &lt;br /&gt;
 # &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.enabled=false&lt;br /&gt;
&lt;br /&gt;
As stated above, configuration for Push notifications via APN for the Mac OS desktop application is configured similarly, the relevant options are prefixed with &#039;&#039;com.openexchange.drive.events.apn.macos&#039;&#039;. Please also note that push via APNS needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Further Configuration ===&lt;br /&gt;
&lt;br /&gt;
* The backend component of OX Drive supplies the clients with various hyperlinks, e.g. deep-links to files and folders in the groupware webinterface or an URL to the online help. In order to point to the suitable web interface, please ensure that the correct UI web path is configured via &#039;&#039;com.openexchange.UIWebPath&#039;&#039; located in &#039;&#039;server.properties&#039;&#039;.&lt;br /&gt;
* As already mentioned above, the backend relies on the [https://grizzly.java.net/comet.html Comet] component of the Grizzly http connector for sending push notifications to the desktop clients. Therefore, &#039;&#039;com.openexchange.http.grizzly.hasCometEnabled&#039;&#039; needs to be set to &#039;&#039;true&#039;&#039; in &#039;&#039;grizzly.properties&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Enabling OX Drive for Users =&lt;br /&gt;
&lt;br /&gt;
OX Drive is enabled for all users that have the capability &#039;&#039;com.openexchange.capability.drive&#039;&#039;. Please note that users need to have the &#039;&#039;infostore&#039;&#039; permission set to use drive. So the users that have &#039;&#039;drive&#039;&#039; enabled must be a subset of those users with &#039;&#039;infostore&#039;&#039; permission. Since 7.6.0 we enforce this via the default configuration. You can also enable this cabaility globally with the following setting in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables the &amp;quot;drive&amp;quot; module capability globally. The capability&lt;br /&gt;
 # can also be set more fine-grained via config cascade. Per default it is only&lt;br /&gt;
 # enabled for users that have the &amp;quot;infostore&amp;quot; permission set. This is configured&lt;br /&gt;
 # in /opt/open-xchange/etc/contextSets/drive.yml.&lt;br /&gt;
 com.openexchange.capability.drive=false&lt;br /&gt;
&lt;br /&gt;
More details about capabilities can be found at [[AppSuite:Capabilities]]. Furthermore, this capability can be defined in a more granular way using the Config Cascade as described at [[ConfigCascade]].&lt;br /&gt;
&lt;br /&gt;
= Installation of the Clients =&lt;br /&gt;
&lt;br /&gt;
== Installation of Mac OS X Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive for Mac OS X will be provided via the Apple App Store:&lt;br /&gt;
&lt;br /&gt;
* https://itunes.apple.com/app/ox-drive/id818195014?mt=12&lt;br /&gt;
&lt;br /&gt;
== Installation of Windows Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
See [[AppSuite:OX_Drive#OX_Drive_for_Windows|OX Drive for Windows]].&lt;br /&gt;
&lt;br /&gt;
== Installation on Mobile Clients ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive App is available via the different App Stores:&lt;br /&gt;
&lt;br /&gt;
* iOS: https://itunes.apple.com/app/ox-drive/id798570177?mt=8&lt;br /&gt;
&lt;br /&gt;
* Android: https://play.google.com/store/apps/details?id=com.openexchange.drive.vanilla&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Client Configuration and Deployment ==&lt;br /&gt;
&lt;br /&gt;
The user needs to enter the server URL and provide his username and password. Afterwards, client-specific settings may be configured. This includes the synchronization mode (All files / Favorites only) and Photostream settings on mobile devices, or the local root synchronization folder for the desktop applications. More information is available in the online documentation. &lt;br /&gt;
&lt;br /&gt;
After the initial synchronization is completed, all further changes are synchronized instantly across all devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= FAQ =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How to limit the maximum file size, a configured &#039;&#039;MAX_UPLOAD_SIZE&#039;&#039; seems to have no effect for uploads from OX Drive clients?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This setting has no effect for files uploaded from OX Drive clients, since big uploads may also be processed via multiple requests in smaller chunks. We plan to offer a separate configuration option in a future release.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;There are strange files and folders on the backend, where do they come from, is it safe to delete them?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To support chunked uploads, and to optimize the synchronization process, the synchronization logic may create various temporary files (&#039;&#039;.drive&#039;&#039; directory and contained files). They only appear in the web interface if the setting &#039;&#039;Show hidden files and folders&#039;&#039; is enabled, and are removed automatically if not accessed for a specific period (default: 1 day).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Not all files and folders get synchronized. Are there any restrictions?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Yes, please consult the online help for a detailed list of excluded files and folders.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How do I synchronize a shared or public folder?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Currently, only the synchronization of a single root folder (and all of it&#039;s subfolders) is possible. For the mobile client applications, this is always the default personal drive folder of the user, while the desktop clients allow to choose which folder to synchronize. The synchronization of multiple root folders is scheduled for a future release.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21780</id>
		<title>AppSuite:OX Drive</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21780"/>
		<updated>2016-04-04T11:23:33Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: /* SUSE Linux Enterprise Server 11 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Drive =&lt;br /&gt;
&lt;br /&gt;
In OX App Suite, Open-Xchange provides a cloud storage called OX Drive. It provides file- and folder synchronization across multiple devices in the most simplest way for the end user, fully optimized for each device type. This article explains how to set up the server-side components for OX Drive, as well as details about the client setup.&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Native Apps for Windows, Mac OS, iOS and Android&lt;br /&gt;
* Easy and attractive upsell properties (e.g. Upsell based on Quota limitations)&lt;br /&gt;
* Clients are specially designed for the devices they run on taking into account limitations such as battery life, screen limitations, bandwidth etc.&lt;br /&gt;
* Controlled synchronization of files across devices&lt;br /&gt;
* Storage management (e.g. quota control, upload limits)&lt;br /&gt;
* Connection type recognition and adaptation (e.g. Wi-Fi, cell network)&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
OX Drive is a combination of two components:&lt;br /&gt;
* OX Drive in OX App Suite&lt;br /&gt;
* OX Drive Clients (optional native client components for synchronization)&lt;br /&gt;
&lt;br /&gt;
OX Drive is available for the following native clients:&lt;br /&gt;
* OX Drive for Windows&lt;br /&gt;
* OX Drive for Mac OS&lt;br /&gt;
* OX Drive for iOS&lt;br /&gt;
* OX Drive for Android&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
You will find the requirements under [[AppSuite:OX_System_Requirements#OX_Drive_for_Clients|OX Drive Client and Platform Requirements]]&lt;br /&gt;
&lt;br /&gt;
= Server-side Installation and Configuration =&lt;br /&gt;
&lt;br /&gt;
This chapter describes how the backend components of OX Drive are installed and configured on the server.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* Open-Xchange Server v7.4.2 and above (&#039;&#039;open-xchange-core&#039;&#039;)&lt;br /&gt;
* Grizzly HTTP connector (&#039;&#039;open-xchange-grizzly&#039;&#039;), see [[AppSuite:Grizzly]] for details, with &#039;&#039;Comet&#039;&#039; support enabled in &#039;&#039;grizzly.properties&#039;&#039;&lt;br /&gt;
* Valid Push-Certificates / API keys for cloud-based notifications, see configuration below&lt;br /&gt;
* Enabled Hazelcast for inter-OX-communication, see [[AppSuite:Running_a_cluster]] for details&lt;br /&gt;
&lt;br /&gt;
== Available packages ==&lt;br /&gt;
&lt;br /&gt;
Open-Xchange Drive is available with the following backend packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive&#039;&#039; - The main server components for OX Drive&lt;br /&gt;
* &#039;&#039;open-xchange-drive-comet&#039;&#039; - Provides the Push interface via long-polling for the desktop clients&lt;br /&gt;
* &#039;&#039;open-xchange-drive-help-*&#039;&#039; - Online help in various languages for the OX Drive applications (these were called &#039;&#039;open-xchange-appsuite-help-drive-*&#039;&#039; in versions earlier than Open-Xchange Server v7.6.2)&lt;br /&gt;
* &#039;&#039;open-xchange-drive-restricted&#039;&#039; - Restricted components, including prerequisites for cloud-based push notifications&lt;br /&gt;
&lt;br /&gt;
Installation on the server varies depending on the underlying distribution, details are available in the following chapters.&lt;br /&gt;
&lt;br /&gt;
=== OX Drive for Windows ===&lt;br /&gt;
&lt;br /&gt;
Additionally OX Drive for Windows can be provided to users by installing additional packages. However there are significant differences between 7.8.0 and earlier releases and 7.8.1 and later ones:&lt;br /&gt;
&lt;br /&gt;
==== 7.8.0 and earlier ====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be provided via the [[AppSuite:Open-Xchange_Updater|Open-Xchange Updater]] by installing the package &#039;&#039;open-xchange-updater-drive&#039;&#039;. Initial installation and updates are performed by the Updater then.&lt;br /&gt;
&lt;br /&gt;
==== 7.8.1 and later ====&lt;br /&gt;
&lt;br /&gt;
With OX App Suite 7.8.1 and OX Drive for Windows 2.0.0, the client is able to update itself and can be downloaded from the Web UI directly via the [[AppSuite:Client_Onoarding|Client Onboarding Wizard]]. Therefore the wizard must be installed and configured for OX Drive users. Besides the client onboarding feature you need the following packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows&#039;&#039; - The main server component to provide the client&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; - The package providing the final binary files to be installed on users machines.&lt;br /&gt;
&lt;br /&gt;
To make the client download available via the client onboarding wizard, you need to enable the according scenario. Edit &#039;&#039;/opt/open-xchange/etc/client-onboarding-scenarios.yml&#039;&#039; and get to the &#039;&#039;drivewindowsclientinstall&#039;&#039; section, where you have to set the &#039;&#039;enabled&#039;&#039; property to &#039;&#039;true&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that there still exists a compatibility layer between the old Updater-based approach and the new direct install and self-update one. If you start providing OX Drive for Windows with 7.8.1 or later you MAY decide to enable that compatibility by installing &#039;&#039;open-xchange-updater-drive&#039;&#039;, however we advice not to do so. If you already provided OX Drive for Windows with 7.8.0 or earlier, you MUST install this package and further provide the Updater. Otherwise the clients out there will not be able to be updated to the 2.0.0 version, which is then self-update capable.&lt;br /&gt;
&lt;br /&gt;
===== Custom branded clients =====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be purchased with a custom theming. In such cases, the according binary files need to be installed on the middleware servers. Instead of the &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; package, a package containing the branded binaries will be provided as &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; and needs to be installed. You MUST then set the property &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; in &#039;&#039;/opt/open-xchange/etc/drive-client-windows.properties&#039;&#039; to &#039;&#039;&amp;lt;brand-name&amp;gt;&#039;&#039; accordingly.&lt;br /&gt;
&lt;br /&gt;
It is also possible to provide multiple brands of the client via the same OX App Suite deployment, multiple &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; packages can be installed in parallel. Which brand is available for a certain user is determined by the &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; property, which can be overwritten via [[ConfigCascade|Config Cascade]] therefore.&lt;br /&gt;
&lt;br /&gt;
Client brands can be managed via command line tools. The tool &#039;&#039;/opt/open-xchange/sbin/listdriveclients&#039;&#039; lists all installed brands. After updating a certain brand by installing a newer package version or installing an additional one, no server restart is necessary. Instead &#039;&#039;/opt/open-xchange/sbin/reloaddriveclients&#039;&#039; can be executed to refresh the internal server state.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== OX Server Edition / App Suite for UCS ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX Server Edition / App Suite for UCS, the OX Drive is part of the offering and after the installation/update available. The necessary package for push, is available with a valid license and can be installed via the Univention App Center.&lt;br /&gt;
&lt;br /&gt;
* The new license is already registered at the LDB after purchase.&lt;br /&gt;
* Log on at the Univention Management Console (UMC)&lt;br /&gt;
* Make sure, that the correct LDB account has been selected in the UMC module &amp;quot;OX License Management&amp;quot;&lt;br /&gt;
* Click on &amp;quot;App Center&amp;quot; at the UMC und switch to the tab &amp;quot;Repository Settings&amp;quot;&lt;br /&gt;
* Within the component list, select &amp;quot;Open-Xchange Drive&amp;quot; and press the &amp;quot;Install&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The following gives an overview about the most important settings to enable file synchronization via OX Drive, especially when it comes to real-time Push notifications for the client applications.&lt;br /&gt;
&lt;br /&gt;
All settings regarding the OX Drive backend component are located in the configuration file &#039;&#039;drive.properties&#039;&#039;. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the Push certificates and API keys for cloud-based client notifications, see next chapters). Please refer to the inline documentation of the configuration file for more advanced options. &lt;br /&gt;
&lt;br /&gt;
=== Push via Google Cloud Messaging (GCM) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for Android devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.android.com/google/gcm/index.html Google Cloud Messaging (GCM)]. To issue those Push messages, the backend needs to be provided with a suitable API key for the corresponding Android client application. The API key is included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; Android client application. Alternatively, the key can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the API key of the server application. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.gcm.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.gcm.key=&lt;br /&gt;
&lt;br /&gt;
Push via GCM can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Google&lt;br /&gt;
 # Cloud Messaging (GCM) service. This requires a valid configuration for the &lt;br /&gt;
 # GCM API key, see options below. Defaults to &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.gcm.enabled=true&lt;br /&gt;
&lt;br /&gt;
Please note that push via GCM needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Push via Apple Push Notification service (APNs) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for iOS and Mac OS devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.apple.com/library/IOS/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html Apple Push Notification service (APNs)]. To issue those Push messages, the backend needs to be provided with a suitable keystore container file (PKCS #12) containing the APNs certificate and keys. Note that the Mac OS desktop client and the iOS mobile client are served separately with different certificates, so that both needs to be configured independantly. The required certificates are already included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; iOS and Mac OS client applications. Alternatively, the certificate can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file (the following only shows the setup for iOS). First, the path to the PKCS #12 container file needs to be specified at:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the path to the local keystore file (PKCS #12) containing the APNS &lt;br /&gt;
 # certificate and keys for the iOS application, e.g. &lt;br /&gt;
 # &amp;quot;/opt/open-xchange/etc/drive-apns.p12&amp;quot;. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.keystore=&lt;br /&gt;
&lt;br /&gt;
This file is opened by the backend using the password as supplied via: &lt;br /&gt;
 &lt;br /&gt;
 # Specifies the password used when creating the referenced keystore containing&lt;br /&gt;
 # the certificate of the iOS application. Note that blank or null passwords &lt;br /&gt;
 # are in violation of the PKCS #12 specifications. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.password=&lt;br /&gt;
&lt;br /&gt;
Configuration also allows to swith between development and production environments, however, this setting should be &#039;&#039;true&#039;&#039; normally:&lt;br /&gt;
&lt;br /&gt;
 # Indicates which APNS service is used when sending push notifications to iOS&lt;br /&gt;
 # devices. A value of &amp;quot;true&amp;quot; will use the production service, a value of &lt;br /&gt;
 # &amp;quot;false&amp;quot; the sandbox service. Defaults to &amp;quot;true&amp;quot;.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.production=true&lt;br /&gt;
&lt;br /&gt;
The OX backend contacts the APNs servers from time to time to get informed about clients no longer reachable clients where the applications was uninstalled. The interval can be defined with the following setting: &lt;br /&gt;
&lt;br /&gt;
 # Configures the interval between queries to the APN feedback service for the&lt;br /&gt;
 # subscribed iOS devices. The value can be defined using units of measurement: &lt;br /&gt;
 # &amp;quot;D&amp;quot; (=days), &amp;quot;W&amp;quot; (=weeks) and &amp;quot;H&amp;quot; (=hours). Defaults to &amp;quot;1D&amp;quot; (one day). &lt;br /&gt;
 # Leaving this parameter empty disables the feedback queries on this node. &lt;br /&gt;
 # Since each received feedback is processed cluster-wide, only one node in the &lt;br /&gt;
 # cluster should be enabled here. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.feedbackQueryInterval=1D&lt;br /&gt;
&lt;br /&gt;
Please note that if you have multiple backend nodes in the cluster, it&#039;s recommended that only one node is configured to contact the feedback query service. Finally, Push notifications via APN for iOS can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Apple Push&lt;br /&gt;
 # Notification service (APNS) for Mac OS devices. This requires a valid &lt;br /&gt;
 # configuration for the APNS certificate and keys, see either options below, &lt;br /&gt;
 # or install the restricted components packages for drive. Defaults to &lt;br /&gt;
 # &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.enabled=false&lt;br /&gt;
&lt;br /&gt;
As stated above, configuration for Push notifications via APN for the Mac OS desktop application is configured similarly, the relevant options are prefixed with &#039;&#039;com.openexchange.drive.events.apn.macos&#039;&#039;. Please also note that push via APNS needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Further Configuration ===&lt;br /&gt;
&lt;br /&gt;
* The backend component of OX Drive supplies the clients with various hyperlinks, e.g. deep-links to files and folders in the groupware webinterface or an URL to the online help. In order to point to the suitable web interface, please ensure that the correct UI web path is configured via &#039;&#039;com.openexchange.UIWebPath&#039;&#039; located in &#039;&#039;server.properties&#039;&#039;.&lt;br /&gt;
* As already mentioned above, the backend relies on the [https://grizzly.java.net/comet.html Comet] component of the Grizzly http connector for sending push notifications to the desktop clients. Therefore, &#039;&#039;com.openexchange.http.grizzly.hasCometEnabled&#039;&#039; needs to be set to &#039;&#039;true&#039;&#039; in &#039;&#039;grizzly.properties&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Enabling OX Drive for Users =&lt;br /&gt;
&lt;br /&gt;
OX Drive is enabled for all users that have the capability &#039;&#039;com.openexchange.capability.drive&#039;&#039;. Please note that users need to have the &#039;&#039;infostore&#039;&#039; permission set to use drive. So the users that have &#039;&#039;drive&#039;&#039; enabled must be a subset of those users with &#039;&#039;infostore&#039;&#039; permission. Since 7.6.0 we enforce this via the default configuration. You can also enable this cabaility globally with the following setting in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables the &amp;quot;drive&amp;quot; module capability globally. The capability&lt;br /&gt;
 # can also be set more fine-grained via config cascade. Per default it is only&lt;br /&gt;
 # enabled for users that have the &amp;quot;infostore&amp;quot; permission set. This is configured&lt;br /&gt;
 # in /opt/open-xchange/etc/contextSets/drive.yml.&lt;br /&gt;
 com.openexchange.capability.drive=false&lt;br /&gt;
&lt;br /&gt;
More details about capabilities can be found at [[AppSuite:Capabilities]]. Furthermore, this capability can be defined in a more granular way using the Config Cascade as described at [[ConfigCascade]].&lt;br /&gt;
&lt;br /&gt;
= Installation of the Clients =&lt;br /&gt;
&lt;br /&gt;
== Installation of Mac OS X Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive for Mac OS X will be provided via the Apple App Store:&lt;br /&gt;
&lt;br /&gt;
* https://itunes.apple.com/app/ox-drive/id818195014?mt=12&lt;br /&gt;
&lt;br /&gt;
== Installation of Windows Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
See [[AppSuite:OX_Drive#OX_Drive_for_Windows|OX Drive for Windows]].&lt;br /&gt;
&lt;br /&gt;
== Installation on Mobile Clients ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive App is available via the different App Stores:&lt;br /&gt;
&lt;br /&gt;
* iOS: https://itunes.apple.com/app/ox-drive/id798570177?mt=8&lt;br /&gt;
&lt;br /&gt;
* Android: https://play.google.com/store/apps/details?id=com.openexchange.drive.vanilla&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Client Configuration and Deployment ==&lt;br /&gt;
&lt;br /&gt;
The user needs to enter the server URL and provide his username and password. Afterwards, client-specific settings may be configured. This includes the synchronization mode (All files / Favorites only) and Photostream settings on mobile devices, or the local root synchronization folder for the desktop applications. More information is available in the online documentation. &lt;br /&gt;
&lt;br /&gt;
After the initial synchronization is completed, all further changes are synchronized instantly across all devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= FAQ =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How to limit the maximum file size, a configured &#039;&#039;MAX_UPLOAD_SIZE&#039;&#039; seems to have no effect for uploads from OX Drive clients?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This setting has no effect for files uploaded from OX Drive clients, since big uploads may also be processed via multiple requests in smaller chunks. We plan to offer a separate configuration option in a future release.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;There are strange files and folders on the backend, where do they come from, is it safe to delete them?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To support chunked uploads, and to optimize the synchronization process, the synchronization logic may create various temporary files (&#039;&#039;.drive&#039;&#039; directory and contained files). They only appear in the web interface if the setting &#039;&#039;Show hidden files and folders&#039;&#039; is enabled, and are removed automatically if not accessed for a specific period (default: 1 day).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Not all files and folders get synchronized. Are there any restrictions?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Yes, please consult the online help for a detailed list of excluded files and folders.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How do I synchronize a shared or public folder?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Currently, only the synchronization of a single root folder (and all of it&#039;s subfolders) is possible. For the mobile client applications, this is always the default personal drive folder of the user, while the desktop clients allow to choose which folder to synchronize. The synchronization of multiple root folders is scheduled for a future release.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21779</id>
		<title>AppSuite:OX Drive</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Drive&amp;diff=21779"/>
		<updated>2016-04-04T11:22:44Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: /* SUSE Linux Enterprise Server 12 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Drive =&lt;br /&gt;
&lt;br /&gt;
In OX App Suite, Open-Xchange provides a cloud storage called OX Drive. It provides file- and folder synchronization across multiple devices in the most simplest way for the end user, fully optimized for each device type. This article explains how to set up the server-side components for OX Drive, as well as details about the client setup.&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Native Apps for Windows, Mac OS, iOS and Android&lt;br /&gt;
* Easy and attractive upsell properties (e.g. Upsell based on Quota limitations)&lt;br /&gt;
* Clients are specially designed for the devices they run on taking into account limitations such as battery life, screen limitations, bandwidth etc.&lt;br /&gt;
* Controlled synchronization of files across devices&lt;br /&gt;
* Storage management (e.g. quota control, upload limits)&lt;br /&gt;
* Connection type recognition and adaptation (e.g. Wi-Fi, cell network)&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
OX Drive is a combination of two components:&lt;br /&gt;
* OX Drive in OX App Suite&lt;br /&gt;
* OX Drive Clients (optional native client components for synchronization)&lt;br /&gt;
&lt;br /&gt;
OX Drive is available for the following native clients:&lt;br /&gt;
* OX Drive for Windows&lt;br /&gt;
* OX Drive for Mac OS&lt;br /&gt;
* OX Drive for iOS&lt;br /&gt;
* OX Drive for Android&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
You will find the requirements under [[AppSuite:OX_System_Requirements#OX_Drive_for_Clients|OX Drive Client and Platform Requirements]]&lt;br /&gt;
&lt;br /&gt;
= Server-side Installation and Configuration =&lt;br /&gt;
&lt;br /&gt;
This chapter describes how the backend components of OX Drive are installed and configured on the server.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* Open-Xchange Server v7.4.2 and above (&#039;&#039;open-xchange-core&#039;&#039;)&lt;br /&gt;
* Grizzly HTTP connector (&#039;&#039;open-xchange-grizzly&#039;&#039;), see [[AppSuite:Grizzly]] for details, with &#039;&#039;Comet&#039;&#039; support enabled in &#039;&#039;grizzly.properties&#039;&#039;&lt;br /&gt;
* Valid Push-Certificates / API keys for cloud-based notifications, see configuration below&lt;br /&gt;
* Enabled Hazelcast for inter-OX-communication, see [[AppSuite:Running_a_cluster]] for details&lt;br /&gt;
&lt;br /&gt;
== Available packages ==&lt;br /&gt;
&lt;br /&gt;
Open-Xchange Drive is available with the following backend packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive&#039;&#039; - The main server components for OX Drive&lt;br /&gt;
* &#039;&#039;open-xchange-drive-comet&#039;&#039; - Provides the Push interface via long-polling for the desktop clients&lt;br /&gt;
* &#039;&#039;open-xchange-drive-help-*&#039;&#039; - Online help in various languages for the OX Drive applications (these were called &#039;&#039;open-xchange-appsuite-help-drive-*&#039;&#039; in versions earlier than Open-Xchange Server v7.6.2)&lt;br /&gt;
* &#039;&#039;open-xchange-drive-restricted&#039;&#039; - Restricted components, including prerequisites for cloud-based push notifications&lt;br /&gt;
&lt;br /&gt;
Installation on the server varies depending on the underlying distribution, details are available in the following chapters.&lt;br /&gt;
&lt;br /&gt;
=== OX Drive for Windows ===&lt;br /&gt;
&lt;br /&gt;
Additionally OX Drive for Windows can be provided to users by installing additional packages. However there are significant differences between 7.8.0 and earlier releases and 7.8.1 and later ones:&lt;br /&gt;
&lt;br /&gt;
==== 7.8.0 and earlier ====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be provided via the [[AppSuite:Open-Xchange_Updater|Open-Xchange Updater]] by installing the package &#039;&#039;open-xchange-updater-drive&#039;&#039;. Initial installation and updates are performed by the Updater then.&lt;br /&gt;
&lt;br /&gt;
==== 7.8.1 and later ====&lt;br /&gt;
&lt;br /&gt;
With OX App Suite 7.8.1 and OX Drive for Windows 2.0.0, the client is able to update itself and can be downloaded from the Web UI directly via the [[AppSuite:Client_Onoarding|Client Onboarding Wizard]]. Therefore the wizard must be installed and configured for OX Drive users. Besides the client onboarding feature you need the following packages:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows&#039;&#039; - The main server component to provide the client&lt;br /&gt;
* &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; - The package providing the final binary files to be installed on users machines.&lt;br /&gt;
&lt;br /&gt;
To make the client download available via the client onboarding wizard, you need to enable the according scenario. Edit &#039;&#039;/opt/open-xchange/etc/client-onboarding-scenarios.yml&#039;&#039; and get to the &#039;&#039;drivewindowsclientinstall&#039;&#039; section, where you have to set the &#039;&#039;enabled&#039;&#039; property to &#039;&#039;true&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that there still exists a compatibility layer between the old Updater-based approach and the new direct install and self-update one. If you start providing OX Drive for Windows with 7.8.1 or later you MAY decide to enable that compatibility by installing &#039;&#039;open-xchange-updater-drive&#039;&#039;, however we advice not to do so. If you already provided OX Drive for Windows with 7.8.0 or earlier, you MUST install this package and further provide the Updater. Otherwise the clients out there will not be able to be updated to the 2.0.0 version, which is then self-update capable.&lt;br /&gt;
&lt;br /&gt;
===== Custom branded clients =====&lt;br /&gt;
&lt;br /&gt;
OX Drive for Windows can be purchased with a custom theming. In such cases, the according binary files need to be installed on the middleware servers. Instead of the &#039;&#039;open-xchange-drive-client-windows-generic&#039;&#039; package, a package containing the branded binaries will be provided as &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; and needs to be installed. You MUST then set the property &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; in &#039;&#039;/opt/open-xchange/etc/drive-client-windows.properties&#039;&#039; to &#039;&#039;&amp;lt;brand-name&amp;gt;&#039;&#039; accordingly.&lt;br /&gt;
&lt;br /&gt;
It is also possible to provide multiple brands of the client via the same OX App Suite deployment, multiple &#039;&#039;open-xchange-drive-client-windows-&amp;lt;brand-name&amp;gt;&#039;&#039; packages can be installed in parallel. Which brand is available for a certain user is determined by the &#039;&#039;com.openexchange.drive.update.branding&#039;&#039; property, which can be overwritten via [[ConfigCascade|Config Cascade]] therefore.&lt;br /&gt;
&lt;br /&gt;
Client brands can be managed via command line tools. The tool &#039;&#039;/opt/open-xchange/sbin/listdriveclients&#039;&#039; lists all installed brands. After updating a certain brand by installing a newer package version or installing an additional one, no server restart is necessary. Instead &#039;&#039;/opt/open-xchange/sbin/reloaddriveclients&#039;&#039; can be executed to refresh the internal server state.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|backend}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|drive-help}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|backend}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|drive-help}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-generic}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|backend}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|drive-help}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend/updates|drive|updater}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-help/updates}}&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products/drive/stable|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|drive-client-windows}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-drive open-xchange-drive-comet open-xchange-drive-restricted open-xchange-drive-client-windows&lt;br /&gt;
&lt;br /&gt;
=== OX Server Edition / App Suite for UCS ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX Server Edition / App Suite for UCS, the OX Drive is part of the offering and after the installation/update available. The necessary package for push, is available with a valid license and can be installed via the Univention App Center.&lt;br /&gt;
&lt;br /&gt;
* The new license is already registered at the LDB after purchase.&lt;br /&gt;
* Log on at the Univention Management Console (UMC)&lt;br /&gt;
* Make sure, that the correct LDB account has been selected in the UMC module &amp;quot;OX License Management&amp;quot;&lt;br /&gt;
* Click on &amp;quot;App Center&amp;quot; at the UMC und switch to the tab &amp;quot;Repository Settings&amp;quot;&lt;br /&gt;
* Within the component list, select &amp;quot;Open-Xchange Drive&amp;quot; and press the &amp;quot;Install&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The following gives an overview about the most important settings to enable file synchronization via OX Drive, especially when it comes to real-time Push notifications for the client applications.&lt;br /&gt;
&lt;br /&gt;
All settings regarding the OX Drive backend component are located in the configuration file &#039;&#039;drive.properties&#039;&#039;. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the Push certificates and API keys for cloud-based client notifications, see next chapters). Please refer to the inline documentation of the configuration file for more advanced options. &lt;br /&gt;
&lt;br /&gt;
=== Push via Google Cloud Messaging (GCM) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for Android devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.android.com/google/gcm/index.html Google Cloud Messaging (GCM)]. To issue those Push messages, the backend needs to be provided with a suitable API key for the corresponding Android client application. The API key is included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; Android client application. Alternatively, the key can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the API key of the server application. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.gcm.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.gcm.key=&lt;br /&gt;
&lt;br /&gt;
Push via GCM can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Google&lt;br /&gt;
 # Cloud Messaging (GCM) service. This requires a valid configuration for the &lt;br /&gt;
 # GCM API key, see options below. Defaults to &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.gcm.enabled=true&lt;br /&gt;
&lt;br /&gt;
Please note that push via GCM needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Push via Apple Push Notification service (APNs) ===&lt;br /&gt;
&lt;br /&gt;
The OX Drive application for iOS and Mac OS devices is able to receive Push notifications from the Open-Xchange Server via [http://developer.apple.com/library/IOS/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html Apple Push Notification service (APNs)]. To issue those Push messages, the backend needs to be provided with a suitable keystore container file (PKCS #12) containing the APNs certificate and keys. Note that the Mac OS desktop client and the iOS mobile client are served separately with different certificates, so that both needs to be configured independantly. The required certificates are already included in the restricted components installation package &#039;&#039;open-xchange-drive-restricted&#039;&#039; for the &amp;quot;vanilla&amp;quot; iOS and Mac OS client applications. Alternatively, the certificate can be specified directly in the &#039;&#039;drive.properties&#039;&#039; configuration file (the following only shows the setup for iOS). First, the path to the PKCS #12 container file needs to be specified at:&lt;br /&gt;
&lt;br /&gt;
 # Specifies the path to the local keystore file (PKCS #12) containing the APNS &lt;br /&gt;
 # certificate and keys for the iOS application, e.g. &lt;br /&gt;
 # &amp;quot;/opt/open-xchange/etc/drive-apns.p12&amp;quot;. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.keystore=&lt;br /&gt;
&lt;br /&gt;
This file is opened by the backend using the password as supplied via: &lt;br /&gt;
 &lt;br /&gt;
 # Specifies the password used when creating the referenced keystore containing&lt;br /&gt;
 # the certificate of the iOS application. Note that blank or null passwords &lt;br /&gt;
 # are in violation of the PKCS #12 specifications. Required if &lt;br /&gt;
 # &amp;quot;com.openexchange.drive.events.apn.enabled&amp;quot; is &amp;quot;true&amp;quot; and the package &lt;br /&gt;
 # containing the restricted drive components is not installed.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.password=&lt;br /&gt;
&lt;br /&gt;
Configuration also allows to swith between development and production environments, however, this setting should be &#039;&#039;true&#039;&#039; normally:&lt;br /&gt;
&lt;br /&gt;
 # Indicates which APNS service is used when sending push notifications to iOS&lt;br /&gt;
 # devices. A value of &amp;quot;true&amp;quot; will use the production service, a value of &lt;br /&gt;
 # &amp;quot;false&amp;quot; the sandbox service. Defaults to &amp;quot;true&amp;quot;.&lt;br /&gt;
 com.openexchange.drive.events.apn.ios.production=true&lt;br /&gt;
&lt;br /&gt;
The OX backend contacts the APNs servers from time to time to get informed about clients no longer reachable clients where the applications was uninstalled. The interval can be defined with the following setting: &lt;br /&gt;
&lt;br /&gt;
 # Configures the interval between queries to the APN feedback service for the&lt;br /&gt;
 # subscribed iOS devices. The value can be defined using units of measurement: &lt;br /&gt;
 # &amp;quot;D&amp;quot; (=days), &amp;quot;W&amp;quot; (=weeks) and &amp;quot;H&amp;quot; (=hours). Defaults to &amp;quot;1D&amp;quot; (one day). &lt;br /&gt;
 # Leaving this parameter empty disables the feedback queries on this node. &lt;br /&gt;
 # Since each received feedback is processed cluster-wide, only one node in the &lt;br /&gt;
 # cluster should be enabled here. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.feedbackQueryInterval=1D&lt;br /&gt;
&lt;br /&gt;
Please note that if you have multiple backend nodes in the cluster, it&#039;s recommended that only one node is configured to contact the feedback query service. Finally, Push notifications via APN for iOS can be enabled via:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables push event notifications to clients using the Apple Push&lt;br /&gt;
 # Notification service (APNS) for Mac OS devices. This requires a valid &lt;br /&gt;
 # configuration for the APNS certificate and keys, see either options below, &lt;br /&gt;
 # or install the restricted components packages for drive. Defaults to &lt;br /&gt;
 # &amp;quot;false&amp;quot;. &lt;br /&gt;
 com.openexchange.drive.events.apn.ios.enabled=false&lt;br /&gt;
&lt;br /&gt;
As stated above, configuration for Push notifications via APN for the Mac OS desktop application is configured similarly, the relevant options are prefixed with &#039;&#039;com.openexchange.drive.events.apn.macos&#039;&#039;. Please also note that push via APNS needs to be enabled explicitly - also if &#039;&#039;open-xchange-drive-restricted&#039;&#039; is installed.&lt;br /&gt;
&lt;br /&gt;
=== Further Configuration ===&lt;br /&gt;
&lt;br /&gt;
* The backend component of OX Drive supplies the clients with various hyperlinks, e.g. deep-links to files and folders in the groupware webinterface or an URL to the online help. In order to point to the suitable web interface, please ensure that the correct UI web path is configured via &#039;&#039;com.openexchange.UIWebPath&#039;&#039; located in &#039;&#039;server.properties&#039;&#039;.&lt;br /&gt;
* As already mentioned above, the backend relies on the [https://grizzly.java.net/comet.html Comet] component of the Grizzly http connector for sending push notifications to the desktop clients. Therefore, &#039;&#039;com.openexchange.http.grizzly.hasCometEnabled&#039;&#039; needs to be set to &#039;&#039;true&#039;&#039; in &#039;&#039;grizzly.properties&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Enabling OX Drive for Users =&lt;br /&gt;
&lt;br /&gt;
OX Drive is enabled for all users that have the capability &#039;&#039;com.openexchange.capability.drive&#039;&#039;. Please note that users need to have the &#039;&#039;infostore&#039;&#039; permission set to use drive. So the users that have &#039;&#039;drive&#039;&#039; enabled must be a subset of those users with &#039;&#039;infostore&#039;&#039; permission. Since 7.6.0 we enforce this via the default configuration. You can also enable this cabaility globally with the following setting in the &#039;&#039;drive.properties&#039;&#039; configuration file:&lt;br /&gt;
&lt;br /&gt;
 # Enables or disables the &amp;quot;drive&amp;quot; module capability globally. The capability&lt;br /&gt;
 # can also be set more fine-grained via config cascade. Per default it is only&lt;br /&gt;
 # enabled for users that have the &amp;quot;infostore&amp;quot; permission set. This is configured&lt;br /&gt;
 # in /opt/open-xchange/etc/contextSets/drive.yml.&lt;br /&gt;
 com.openexchange.capability.drive=false&lt;br /&gt;
&lt;br /&gt;
More details about capabilities can be found at [[AppSuite:Capabilities]]. Furthermore, this capability can be defined in a more granular way using the Config Cascade as described at [[ConfigCascade]].&lt;br /&gt;
&lt;br /&gt;
= Installation of the Clients =&lt;br /&gt;
&lt;br /&gt;
== Installation of Mac OS X Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive for Mac OS X will be provided via the Apple App Store:&lt;br /&gt;
&lt;br /&gt;
* https://itunes.apple.com/app/ox-drive/id818195014?mt=12&lt;br /&gt;
&lt;br /&gt;
== Installation of Windows Desktop Client ==&lt;br /&gt;
&lt;br /&gt;
See [[AppSuite:OX_Drive#OX_Drive_for_Windows|OX Drive for Windows]].&lt;br /&gt;
&lt;br /&gt;
== Installation on Mobile Clients ==&lt;br /&gt;
&lt;br /&gt;
The OX Drive App is available via the different App Stores:&lt;br /&gt;
&lt;br /&gt;
* iOS: https://itunes.apple.com/app/ox-drive/id798570177?mt=8&lt;br /&gt;
&lt;br /&gt;
* Android: https://play.google.com/store/apps/details?id=com.openexchange.drive.vanilla&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Client Configuration and Deployment ==&lt;br /&gt;
&lt;br /&gt;
The user needs to enter the server URL and provide his username and password. Afterwards, client-specific settings may be configured. This includes the synchronization mode (All files / Favorites only) and Photostream settings on mobile devices, or the local root synchronization folder for the desktop applications. More information is available in the online documentation. &lt;br /&gt;
&lt;br /&gt;
After the initial synchronization is completed, all further changes are synchronized instantly across all devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= FAQ =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How to limit the maximum file size, a configured &#039;&#039;MAX_UPLOAD_SIZE&#039;&#039; seems to have no effect for uploads from OX Drive clients?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This setting has no effect for files uploaded from OX Drive clients, since big uploads may also be processed via multiple requests in smaller chunks. We plan to offer a separate configuration option in a future release.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;There are strange files and folders on the backend, where do they come from, is it safe to delete them?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To support chunked uploads, and to optimize the synchronization process, the synchronization logic may create various temporary files (&#039;&#039;.drive&#039;&#039; directory and contained files). They only appear in the web interface if the setting &#039;&#039;Show hidden files and folders&#039;&#039; is enabled, and are removed automatically if not accessed for a specific period (default: 1 day).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Not all files and folders get synchronized. Are there any restrictions?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Yes, please consult the online help for a detailed list of excluded files and folders.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How do I synchronize a shared or public folder?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Currently, only the synchronization of a single root folder (and all of it&#039;s subfolders) is possible. For the mobile client applications, this is always the default personal drive folder of the user, while the desktop clients allow to choose which folder to synchronize. The synchronization of multiple root folders is scheduled for a future release.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Spreadsheet:Installation:Mode-Server-Distributed&amp;diff=21299</id>
		<title>AppSuite:Spreadsheet:Installation:Mode-Server-Distributed</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Spreadsheet:Installation:Mode-Server-Distributed&amp;diff=21299"/>
		<updated>2016-01-12T15:29:18Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: /* Install and configure OX Appsuite - Nature &amp;#039;OX-Bckend&amp;#039; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Tutorial : OX Spreadsheet deployment - Mode &#039;Server Distributed&#039; ==&lt;br /&gt;
&lt;br /&gt;
=== General Information ===&lt;br /&gt;
&lt;br /&gt;
This article describes what you need for an OX Spreadsheet setup - in Mode &#039;Server Distributed&#039;.&lt;br /&gt;
&lt;br /&gt;
It contains everything you need to:&lt;br /&gt;
* Understand the design of the OX Spreadsheet setup including additional services&lt;br /&gt;
* Install the whole system based on the relevant articles&lt;br /&gt;
* Find pointers to the next steps of integration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== System Design ===&lt;br /&gt;
&lt;br /&gt;
[[File:AppSuite-Spreadsheet-Installation-Mode-Server-Distributed-Physical-Architecture.jpg]]&lt;br /&gt;
[[File:AppSuite-Spreadsheet-Installation-Mode-Server-Distributed-Logical-Architecture.jpg]]&lt;br /&gt;
&lt;br /&gt;
The system is designed to provide maximum functionality and availability with a minimum of necessary hardware. If the services on one OX server fail, this is transparently handled by others within the same cluster.&lt;br /&gt;
&lt;br /&gt;
=== Core Components ===&lt;br /&gt;
&lt;br /&gt;
* Nx OX AppSuite (HW recommendation: 16GB RAM / 4 cores) running as OX Spreadsheet Client&amp;lt;br/&amp;gt;(follow the instructions regarding Nature &#039;OX-Backend&#039;)&lt;br /&gt;
* 1x OX Spreadsheet Server (HW recommendation: 8GB RAM / 2 cores)&amp;lt;br/&amp;gt;(follow the instructions regarding Nature &#039;CE-Server&#039;)&lt;br /&gt;
* Nx OX Spreadsheet Worker (HW recommendation: 24GB RAM / 4 cores)&amp;lt;br/&amp;gt;(follow the instructions regarding Nature &#039;CE-Worker&#039;)&lt;br /&gt;
&lt;br /&gt;
=== Overview Installation Steps ===&lt;br /&gt;
&lt;br /&gt;
To deploy the described OX Spreadsheet setup, the following steps need to be done.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Mandatory Installation Steps&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Install and configure OX Appsuite - Nature &#039;OX-Backend&#039;&lt;br /&gt;
* Install and configure OX Spreadsheet Server - Nature &#039;CE-Server&#039;&lt;br /&gt;
* Install and configure OX Spreadsheet Worker - Nature &#039;CE-Worker&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Configuration Steps&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Configure OX Appsuite - Nature &#039;OX-Backend&#039;&lt;br /&gt;
* Configure OX Spreadsheet Server - Nature &#039;CE-Server&#039;&lt;br /&gt;
* Configure OX Spreadsheet Worker - Nature &#039;CE-Worker&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Start &amp;amp; Stop&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Start/Stop OX Appsuite - Nature &#039;OX-Backend&#039;&lt;br /&gt;
* Start/Stop OX Spreadsheet Server - Nature &#039;CE-Server&#039;&lt;br /&gt;
* Start/Stop OX Spreadsheet Worker - Nature &#039;CE-Worker&#039;&lt;br /&gt;
&lt;br /&gt;
=== Mandatory Installation Steps - Instructions &amp;amp; Recommendations ===&lt;br /&gt;
&lt;br /&gt;
=== Install and configure OX Appsuite - Nature &#039;OX-Backend&#039; ===&lt;br /&gt;
&lt;br /&gt;
The following steps need to be done to get OX Spreadsheet Client up and running:&lt;br /&gt;
&lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-OX-Backend:Debian-6.0|Download and Installation Guide for Debian GNU/Linux 6.0 (Squeeze)]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-OX-Backend:Debian-7.0|Download and Installation Guide for Debian GNU/Linux 7.0 (Wheezy)]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-OX-Backend:Debian-8.0|Download and Installation Guide for Debian GNU/Linux 8.0 (Jessie)]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-OX-Backend:SLES-11|Download and Installation Guide for SUSE Linux Enterprise Server 11]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-OX-Backend:SLE_12|Download and Installation Guide for SUSE Linux Enterprise Server 12]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-OX-Backend:RedHat-6|Download and Installation Guide for RedHat Enterprise Linux 6]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-OX-Backend:RedHat-7|Download and Installation Guide for RedHat Enterprise Linux 7]]&lt;br /&gt;
&lt;br /&gt;
=== Install and configure OX Spreadsheet Server - Nature &#039;CE-Server&#039; ===&lt;br /&gt;
&lt;br /&gt;
The following steps need to be done to get OX Spreadsheet Server HA up and running:&lt;br /&gt;
&lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Server:Debian-6.0|Download and Installation Guide for Debian GNU/Linux 6.0 (Squeeze)]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Server:Debian-7.0|Download and Installation Guide for Debian GNU/Linux 7.0 (Wheezy)]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Server:Debian-8.0|Download and Installation Guide for Debian GNU/Linux 8.0 (Jessie)]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Server:SLES-11|Download and Installation Guide for SUSE Linux Enterprise Server 11]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Server:SLE_12|Download and Installation Guide for SUSE Linux Enterprise Server 12]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Server:RedHat-6|Download and Installation Guide for RedHat Enterprise Linux 6]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Server:RedHat-7|Download and Installation Guide for RedHat Enterprise Linux 7]] &lt;br /&gt;
&lt;br /&gt;
=== Install and configure OX Spreadsheet Worker - Nature &#039;CE-Worker&#039; ===&lt;br /&gt;
&lt;br /&gt;
The following steps need to be done to get OX Spreadsheet Worker HA up and running:&lt;br /&gt;
&lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Worker:Debian-6.0|Download and Installation Guide for Debian GNU/Linux 6.0 (Squeeze)]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Worker:Debian-7.0|Download and Installation Guide for Debian GNU/Linux 7.0 (Wheezy)]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Worker:Debian-8.0|Download and Installation Guide for Debian GNU/Linux 8.0 (Jessie)]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Worker:SLESS-11|Download and Installation Guide for SUSE Linux Enterprise Server 11]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Worker:SLE_12|Download and Installation Guide for SUSE Linux Enterprise Server 12]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Worker:RedHat-6|Download and Installation Guide for RedHat Enterprise Linux 6]] &lt;br /&gt;
*  [[AppSuite:Spreadsheet:Installation:Mode-Server-Distributed:Nature-CE-Worker:RedHat-7|Download and Installation Guide for RedHat Enterprise Linux 7]] &lt;br /&gt;
&lt;br /&gt;
=== Configuration Steps - Instructions &amp;amp; Recommendations ===&lt;br /&gt;
&lt;br /&gt;
=== Configure OX Appsuite - Nature &#039;OX-Backend&#039; ===&lt;br /&gt;
&lt;br /&gt;
After installation the OX Spreadsheet functionality is disabled by default.&amp;lt;br/&amp;gt;To enable OX Spreadsheet Application the associated permission has to be set.&amp;lt;br/&amp;gt;The default setting for all users is changed in the file&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/permissions.properties&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Note:&lt;br /&gt;
# This list is a comma seperated list of different permissions.&lt;br /&gt;
# Add or remove the permission you want to change - leave other permissions unchanged.&lt;br /&gt;
&lt;br /&gt;
permissions=..,spreadsheet,..&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By enabling the OX Spreadsheet Application the corresponding OX Spreadsheet Portal was enabled also.&amp;lt;br/&amp;gt;If that is not intended you can disable the OX Spreadsheet Portal within the same configuration file&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/permissions.properties&#039;&#039;&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Note:&lt;br /&gt;
# This list is a comma seperated list of different permissions.&lt;br /&gt;
# Add or remove the permission you want to change - leave other permissions unchanged.&lt;br /&gt;
&lt;br /&gt;
permissions=..,spreadsheet,spreadsheetportaldisabled,..&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enable client mode at this node inside configuration file&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/calcengine.properties&#039;&#039;&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the mode the calc engine will use at runtime&lt;br /&gt;
...&lt;br /&gt;
# - jms&lt;br /&gt;
#       all involved processes will look for a JMS server to communicate together.&lt;br /&gt;
...&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
calcengine.mode=jms&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The mode &#039;Server Distributed&#039; was designed for scalability.&amp;lt;br/&amp;gt;This require a different handling of the load balancer strategy.&amp;lt;br/&amp;gt;Configure inside the configuration file&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/calcengine.properties&#039;&#039;&#039;&#039;&#039;the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define where and how the load balancer is running.&lt;br /&gt;
#&lt;br /&gt;
# - server-dynamic-router&lt;br /&gt;
#           Its running at server side using the dynamic-router pattern.&lt;br /&gt;
#           As dynamic-router only header of JMS messages are interpreted and used.&lt;br /&gt;
#           Doing so not the whole JMS message needs to be submitted to the load balancer process.&lt;br /&gt;
#&lt;br /&gt;
# - client-embedded&lt;br /&gt;
#           Its running embedded at client side. So it&#039;s not a dedicated process at server side.&lt;br /&gt;
#           At least it&#039;s nothing more then a lookup into the registry of worker processes&lt;br /&gt;
#           and a mapping of request to worker queues.&lt;br /&gt;
#           This mode is very fast and scalable - but provides less feature then all other modes.&lt;br /&gt;
#           E.g. re-queuing of messages in  case worker is restarting is not provided.&lt;br /&gt;
#&lt;br /&gt;
# default = server-dynamic-router&lt;br /&gt;
#&lt;br /&gt;
calcengine.load-balancer.type=client-embedded&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Client needs to know where the OX Spreadsheet Server is running.&amp;lt;br/&amp;gt;But the client is not connected to the server directly.&amp;lt;br/&amp;gt;As communication channel between both nodes JMS is used.&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Server acts as a JMS Server also.&amp;lt;br/&amp;gt;Use the template&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc-templates/documents/mode-server-distributed/nature-ox-backend/jms-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;to generate a suitable configuration at&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/documents/jms-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;and replace all place holder following the schema&#039;&#039;&#039;&#039;&#039;%%[...]%%&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note: All place holder values must be in sync with all other configuration files within the same setup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# =============================================================================&lt;br /&gt;
# NOTE : DO NOT USE DEFAULT VALUES WITHIN THIS SCRIPT AS THEY COME FROM THE CODE.&lt;br /&gt;
#        ACTIVATE AND CHANGE VALUES IF NEEDED ONLY.&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the host (IP/DNS) where the jms server is running and we have to&lt;br /&gt;
# be connected with&lt;br /&gt;
#&lt;br /&gt;
# default=127.0.0.1&lt;br /&gt;
#&lt;br /&gt;
jms.server.host=%%[CE_SERVER_IP]%%&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the port where the server should listen for incoming requests&lt;br /&gt;
# or a client can be connected with those server.&lt;br /&gt;
#&lt;br /&gt;
# default=61616&lt;br /&gt;
#&lt;br /&gt;
#jms.server.port=61616&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Server acts as a Cache Server also.&amp;lt;br/&amp;gt;Use the template&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc-templates/documents/mode-server-distributed/nature-ox-backend/cache-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;to generate a suitable configuration at&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/documents/cache-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;and replace all place holder following the schema&#039;&#039;&#039;&#039;&#039;%%[...]%%&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note: All place holder values must be in sync with all other configuration files within the same setup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# =============================================================================&lt;br /&gt;
# NOTE : DO NOT USE DEFAULT VALUES WITHIN THIS SCRIPT AS THEY COME FROM THE CODE.&lt;br /&gt;
#        ACTIVATE AND CHANGE VALUES IF NEEDED ONLY.&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the host (IP/DNS) where the jms server is running and we have to&lt;br /&gt;
# be connected with&lt;br /&gt;
#&lt;br /&gt;
# default=127.0.0.1&lt;br /&gt;
#&lt;br /&gt;
cache.server.host=%%[CE_SERVER_IP]%%&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the port where the server should listen for incoming requests&lt;br /&gt;
# or a client can be connected with those server.&lt;br /&gt;
#&lt;br /&gt;
# default=7000&lt;br /&gt;
#&lt;br /&gt;
#cache.server.port=7000&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# unique ID for this server instance.&lt;br /&gt;
# Can be used to separate multiple server instances on the same machine.&lt;br /&gt;
#&lt;br /&gt;
cache.server.id=%%[CE_SERVER_ID]%%&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# password to join those cache server.&lt;br /&gt;
# Can be empty.&lt;br /&gt;
#&lt;br /&gt;
cache.server.password=%%[CE_SERVER_PASSWORD]%%&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure OX Spreadsheet Server - Nature &#039;CE-Server&#039; ===&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Server host:&lt;br /&gt;
* 1x JMS Server for communication&lt;br /&gt;
* 1x Cache Server for caching data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mode &#039;Server Distributed&#039; was designed for scalability.&amp;lt;br/&amp;gt;This require a different handling of the load balancer strategy.&amp;lt;br/&amp;gt;Configure inside the configuration file&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/calcengine.properties&#039;&#039;&#039;&#039;&#039;the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the mode the calc engine will use at runtime&lt;br /&gt;
#&lt;br /&gt;
# - jms&lt;br /&gt;
#       calc engine is a central JMS server to communicate with&lt;br /&gt;
#       all configured worker processes even clustered on different machines.&lt;br /&gt;
#&lt;br /&gt;
calcengine.mode=jms&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define where and how the load balancer is running.&lt;br /&gt;
#&lt;br /&gt;
# - server-dynamic-router&lt;br /&gt;
#           Its running at server side using the dynamic-router pattern.&lt;br /&gt;
#           As dynamic-router only header of JMS messages are interpreted and used.&lt;br /&gt;
#           Doing so not the whole JMS message needs to be submitted to the load balancer process.&lt;br /&gt;
#&lt;br /&gt;
# - client-embedded&lt;br /&gt;
#           Its running embedded at client side. So it&#039;s not a dedicated process at server side.&lt;br /&gt;
#           At least it&#039;s nothing more then a lookup into the registry of worker processes&lt;br /&gt;
#           and a mapping of request to worker queues.&lt;br /&gt;
#           This mode is very fast and scalable - but provides less feature then all other modes.&lt;br /&gt;
#           E.g. re-queuing of messages in  case worker is restarting is not provided.&lt;br /&gt;
#&lt;br /&gt;
# default = server-dynamic-router&lt;br /&gt;
#&lt;br /&gt;
calcengine.load-balancer.type=client-embedded&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the template&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc-templates/documents/mode-server-distributed/nature-ce-server/jms-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;to generate a suitable configuration at&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/documents/jms-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;and replace all place holder following the schema&#039;&#039;&#039;&#039;&#039;%%[...]%%&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# =============================================================================&lt;br /&gt;
# NOTE : DO NOT USE DEFAULT VALUES WITHIN THIS SCRIPT AS THEY COME FROM THE CODE.&lt;br /&gt;
#        ACTIVATE AND CHANGE VALUES IF NEEDED ONLY.&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the network interface where the server should listen for incoming requests.&lt;br /&gt;
#&lt;br /&gt;
# Possible values are:&lt;br /&gt;
#   - 0.0.0.0   to allow all (internal and external) connections&lt;br /&gt;
#   - 127.0.0.1 to allow local connections only&lt;br /&gt;
#&lt;br /&gt;
# default=127.0.0.1&lt;br /&gt;
#&lt;br /&gt;
jms.server.interface=0.0.0.0&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the port where the server should listen for incoming requests&lt;br /&gt;
# or a client can be connected with those server.&lt;br /&gt;
#&lt;br /&gt;
# default=61616&lt;br /&gt;
#&lt;br /&gt;
#jms.server.port=61616&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define directory for storing persistent data&lt;br /&gt;
#&lt;br /&gt;
# Will be created automatically if it does not exists.&lt;br /&gt;
# If it&#039;s not defined persistence will be disabled.&lt;br /&gt;
#&lt;br /&gt;
# Note: Thise feature can be disabled by setting an empty path only !&lt;br /&gt;
#&lt;br /&gt;
#jms.server.persistence.dir=${sys:java.io.tmpdir}/ox-jms-embedded-server/persistence&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# frequency where the JMS Garbage Collector (GC) should run&lt;br /&gt;
#&lt;br /&gt;
# unit=[ms]&lt;br /&gt;
# default=300000 (5min)&lt;br /&gt;
#&lt;br /&gt;
#jms.server.gc.frequency=300000&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# the time a JMS resource (queue/topic) has to be inactive before it can&lt;br /&gt;
# will be removed by the GC&lt;br /&gt;
#&lt;br /&gt;
# unit=[ms]&lt;br /&gt;
# default=60000 (1min)&lt;br /&gt;
#&lt;br /&gt;
#jms.server.gc.inactive-timeout-before-gc=60000&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the template&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc-templates/documents/mode-server-distributed/nature-ce-server/cache-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;to generate a suitable configuration at&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/documents/cache-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;and replace all place holder following the schema&#039;&#039;&#039;&#039;&#039;%%[...]%%&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# =============================================================================&lt;br /&gt;
# NOTE : DO NOT USE DEFAULT VALUES WITHIN THIS SCRIPT AS THEY COME FROM THE CODE.&lt;br /&gt;
#        ACTIVATE AND CHANGE VALUES IF NEEDED ONLY.&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the network interface where the server should listen for incoming requests.&lt;br /&gt;
#&lt;br /&gt;
# Possible values are:&lt;br /&gt;
#   - &amp;lt;IP_RANGE&amp;gt; to allow all (internal and external) connections&lt;br /&gt;
#   - 127.0.0.1  to allow local connections only&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;IP_RANGE&amp;gt; example:&lt;br /&gt;
#           IP of local machine is &amp;quot;192.168.0.1&amp;quot;.&lt;br /&gt;
#           A might suitable IP range can be &amp;quot;192.168.0.*&amp;quot;&lt;br /&gt;
#&lt;br /&gt;
# default=127.0.0.1&lt;br /&gt;
#&lt;br /&gt;
cache.server.interface=%%[CE_CLIENTS_IP_RANGE]%%&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the port where the server should listen for incoming requests&lt;br /&gt;
# or a client can be connected with those server.&lt;br /&gt;
#&lt;br /&gt;
# default=7000&lt;br /&gt;
#&lt;br /&gt;
#cache.server.port=7000&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# unique ID for this server instance.&lt;br /&gt;
# Can be used to separate multiple server instances on the same machine.&lt;br /&gt;
#&lt;br /&gt;
# default = &#039;default&#039;&lt;br /&gt;
#&lt;br /&gt;
cache.server.id=%%[CE_SERVER_ID]%%&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# password to join those cache server.&lt;br /&gt;
# Can be empty.&lt;br /&gt;
#&lt;br /&gt;
# default = &#039;xxx&#039;&lt;br /&gt;
#&lt;br /&gt;
cache.server.password=%%[CE_SERVER_PASSWORD]%%&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define directory for storing persistent data&lt;br /&gt;
#&lt;br /&gt;
# Will be created automatically if it does not exists.&lt;br /&gt;
# If it&#039;s not defined persistence will be disabled.&lt;br /&gt;
#&lt;br /&gt;
# Note: To disable this feature define an empty path.&lt;br /&gt;
#&lt;br /&gt;
# default = &#039;${sys:java.io.tmpdir}/ox-cache-server/${cache.server.id}/persistence&#039;&lt;br /&gt;
#&lt;br /&gt;
#cache.server.persistence.dir=${sys:java.io.tmpdir}/ox-cache-server/${cache.server.id}/persistence&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Server - Mode &#039;Server Distributed&#039; do not run OX Spreadsheet Worker locally.&amp;lt;br/&amp;gt;They have to be disabled. This and other apsects of this setup can be configured within the file&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/documents/cluster-node.xml&#039;&#039;&#039;&#039;&#039;:&amp;lt;br/&amp;gt;Use the template&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc-templates/documents/mode-server-distributed/nature-ce-server/cluster-node.xml&#039;&#039;&#039;&#039;&#039;to create those file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==========================================================================&lt;br /&gt;
&lt;br /&gt;
NOTE : DO NOT USE DEFAULT VALUES WITHIN THIS SCRIPT AS THEY COME FROM THE CODE.&lt;br /&gt;
       ACTIVATE AND CHANGE VALUES IF NEEDED ONLY.&lt;br /&gt;
&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cluster&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;node&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;cache&amp;gt;&lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 directory where states about running apps can be made persistent.&lt;br /&gt;
              &lt;br /&gt;
                 Note: To disable this feature define an empty path.&lt;br /&gt;
                 &lt;br /&gt;
                 default = ${sys:java.io.tmpdir}/ox-cluster-manager/cache&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
            &amp;lt;!--&lt;br /&gt;
            &amp;lt;dir&amp;gt;${sys:java.io.tmpdir}/ox-cluster-manager/cache&amp;lt;/dir&amp;gt;&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
        &amp;lt;/cache&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;watchdog&amp;gt;&lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 poll time to detect dead processes in [s]&lt;br /&gt;
              &lt;br /&gt;
                 unit    = [s]&lt;br /&gt;
                 default = 10s&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
            &amp;lt;!-- &lt;br /&gt;
            &amp;lt;poll-time&amp;gt;10&amp;lt;/poll-time&amp;gt;&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
              &lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 timeout for starting one app in [s]&lt;br /&gt;
              &lt;br /&gt;
                 unit    = [s]&lt;br /&gt;
                 default = 60s&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
            &amp;lt;!--&lt;br /&gt;
            &amp;lt;appstart-timeout&amp;gt;60&amp;lt;/appstart-timeout&amp;gt;&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
        &amp;lt;/watchdog&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;apps merge-operation=&amp;quot;explicit&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 enable and configure the central jms server ...&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
            &amp;lt;app id=&amp;quot;jms-server&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;!-- ==========================================================&lt;br /&gt;
                     define the memory this process can consume ...&lt;br /&gt;
                  &lt;br /&gt;
                     - the &#039;min&#039; value is used to reserver memory at startup&lt;br /&gt;
                     - the &#039;max&#039; value is used to define the maximum range which can be consumed&lt;br /&gt;
                  &lt;br /&gt;
                     default for min   = 1024&lt;br /&gt;
                     default for max   = 2048&lt;br /&gt;
                  --&amp;gt;&lt;br /&gt;
                &amp;lt;!-- &lt;br /&gt;
                &amp;lt;memory&amp;gt;&lt;br /&gt;
                    &amp;lt;min&amp;gt;1024&amp;lt;/min&amp;gt;&lt;br /&gt;
                    &amp;lt;max&amp;gt;2048&amp;lt;/max&amp;gt;&lt;br /&gt;
                &amp;lt;/memory&amp;gt;&lt;br /&gt;
                 --&amp;gt;&lt;br /&gt;
            &amp;lt;/app&amp;gt;&lt;br /&gt;
            &lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 enable and configure the central cache server ...&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
            &amp;lt;app id=&amp;quot;cache-server&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;!-- ==========================================================&lt;br /&gt;
                     define the memory this process can consume ...&lt;br /&gt;
                  &lt;br /&gt;
                     - the &#039;min&#039; value is used to reserver memory at startup&lt;br /&gt;
                     - the &#039;max&#039; value is used to define the maximum range which can be consumed&lt;br /&gt;
                  &lt;br /&gt;
                     default for min   = 1024&lt;br /&gt;
                     default for max   = 2048&lt;br /&gt;
                  --&amp;gt;&lt;br /&gt;
                &amp;lt;!-- &lt;br /&gt;
                &amp;lt;memory&amp;gt;&lt;br /&gt;
                    &amp;lt;min&amp;gt;128&amp;lt;/min&amp;gt;&lt;br /&gt;
                    &amp;lt;max&amp;gt;256&amp;lt;/max&amp;gt;&lt;br /&gt;
                &amp;lt;/memory&amp;gt;&lt;br /&gt;
                 --&amp;gt;&lt;br /&gt;
            &amp;lt;/app&amp;gt;&lt;br /&gt;
            &lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 no dedicated calc engine server in this mode ...&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
            &lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 no calcengine worker processes on this node ...&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/apps&amp;gt;&lt;br /&gt;
    &amp;lt;/node&amp;gt;&lt;br /&gt;
&amp;lt;/cluster&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure OX Spreadsheet Worker - Nature &#039;CE-Worker&#039; ===&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Worker host:&lt;br /&gt;
* Nx Worker processes connected&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Worker node host all worker processes where the real user documents are handled.&amp;lt;br/&amp;gt;So e.g. the persistence of such documents (usable for an automatic document recovery in case a worker was restarted) has to be configured at this node.&amp;lt;br/&amp;gt;Inside the configuration file&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/calcengine.properties&#039;&#039;&#039;&#039;&#039;define the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the mode the calc engine will use at runtime&lt;br /&gt;
#&lt;br /&gt;
# - jms&lt;br /&gt;
#       calc engine is a central JMS server to communicate with&lt;br /&gt;
#       all configured worker processes even clustered on different machines.&lt;br /&gt;
#&lt;br /&gt;
calcengine.mode=jms&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# path where worker can cache there documents to support auto-restore in case&lt;br /&gt;
# a worker crashed and will be reactivated.&lt;br /&gt;
#&lt;br /&gt;
# If this path is empty - auto-restore will be disabled.&lt;br /&gt;
#&lt;br /&gt;
# This value can use special variable $(TEMP) to place the cache&lt;br /&gt;
# within the temporary directory. Other variables are not supported.&lt;br /&gt;
#&lt;br /&gt;
# Note: This feature can be disabled by define an empty path only !&lt;br /&gt;
#&lt;br /&gt;
calcengine.restore-documents.path=${sys:java.io.tmpdir}/ox-ce-doc-cache&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Worker needs to know where the JMS Server is running.&amp;lt;br/&amp;gt;JMS acts as a communication channel between the OX Spreadsheet Worker and Server.&amp;lt;br/&amp;gt;Use the template&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc-templates/documents/mode-server-distributed/nature-ce-worker/jms-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;to generate a suitable configuration at&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/documents/jms-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;and replace all place holder following the schema&#039;&#039;&#039;&#039;&#039;%%[...]%%&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# =============================================================================&lt;br /&gt;
# NOTE : DO NOT USE DEFAULT VALUES WITHIN THIS SCRIPT AS THEY COME FROM THE CODE.&lt;br /&gt;
#        ACTIVATE AND CHANGE VALUES IF NEEDED ONLY.&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the host (IP/DNS) where the jms server is running and we have to&lt;br /&gt;
# be connected with&lt;br /&gt;
#&lt;br /&gt;
# default=127.0.0.1&lt;br /&gt;
#&lt;br /&gt;
jms.server.host=%%[CE_SERVER_IP]%%&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the port where the server should listen for incoming requests&lt;br /&gt;
# or a client can be connected with those server.&lt;br /&gt;
#&lt;br /&gt;
# default=61616&lt;br /&gt;
#&lt;br /&gt;
#jms.server.port=61616&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Worker needs to register itself at OX Spreadsheet Server.&amp;lt;br/&amp;gt;The OX Spreadsheet Server host also a registry (cache) server.&amp;lt;br/&amp;gt;Use the template&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc-templates/documents/mode-server-distributed/nature-ce-worker/cache-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;to generate a suitable configuration at&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/documents/cache-server.properties&#039;&#039;&#039;&#039;&#039;&amp;lt;br/&amp;gt;and replace all place holder following the schema&#039;&#039;&#039;&#039;&#039;%%[...]%%&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# =============================================================================&lt;br /&gt;
# NOTE : DO NOT USE DEFAULT VALUES WITHIN THIS SCRIPT AS THEY COME FROM THE CODE.&lt;br /&gt;
#        ACTIVATE AND CHANGE VALUES IF NEEDED ONLY.&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the host (IP/DNS) where the jms server is running and we have to&lt;br /&gt;
# be connected with&lt;br /&gt;
#&lt;br /&gt;
# default=127.0.0.1&lt;br /&gt;
#&lt;br /&gt;
cache.server.host=%%[CE_SERVER_IP]%%&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# define the port where the server should listen for incoming requests&lt;br /&gt;
# or a client can be connected with those server.&lt;br /&gt;
#&lt;br /&gt;
# default=7000&lt;br /&gt;
#&lt;br /&gt;
#cache.server.port=7000&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# unique ID for this server instance.&lt;br /&gt;
# Can be used to separate multiple server instances on the same machine.&lt;br /&gt;
#&lt;br /&gt;
cache.server.id=%%[CE_SERVER_ID]%%&lt;br /&gt;
&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
# password to join those cache server.&lt;br /&gt;
# Can be empty.&lt;br /&gt;
#&lt;br /&gt;
cache.server.password=%%[CE_SERVER_PASSWORD]%%&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Worker do not run other services locally.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;They have to be disabled. This and other apsects of this setup can be configured within the file&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc/documents/cluster-node.xml&#039;&#039;&#039;&#039;&#039;:&amp;lt;br/&amp;gt;Use the template&#039;&#039;&#039;&#039;&#039;/opt/open-xchange/etc-templates/documents/mode-server-distributed/nature-ce-worker/cluster-node.xml&#039;&#039;&#039;&#039;&#039;to create those file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==========================================================================&lt;br /&gt;
&lt;br /&gt;
NOTE : DO NOT USE DEFAULT VALUES WITHIN THIS SCRIPT AS THEY COME FROM THE CODE.&lt;br /&gt;
       ACTIVATE AND CHANGE VALUES IF NEEDED ONLY.&lt;br /&gt;
&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cluster&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;node&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;cache&amp;gt;&lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 directory where states about running apps can be made persistent.&lt;br /&gt;
              &lt;br /&gt;
                 Note: To disable this feature define an empty path.&lt;br /&gt;
                 &lt;br /&gt;
                 default = ${sys:java.io.tmpdir}/ox-cluster-manager/cache&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
            &amp;lt;!--&lt;br /&gt;
            &amp;lt;dir&amp;gt;${sys:java.io.tmpdir}/ox-cluster-manager/cache&amp;lt;/dir&amp;gt;&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
        &amp;lt;/cache&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;watchdog&amp;gt;&lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 poll time to detect dead processes in [s]&lt;br /&gt;
              &lt;br /&gt;
                 unit    = [s]&lt;br /&gt;
                 default = 10s&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
            &amp;lt;!-- &lt;br /&gt;
            &amp;lt;poll-time&amp;gt;10&amp;lt;/poll-time&amp;gt;&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
              &lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 timeout for starting one app in [s]&lt;br /&gt;
              &lt;br /&gt;
                 unit    = [s]&lt;br /&gt;
                 default = 60s&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
            &amp;lt;!--&lt;br /&gt;
            &amp;lt;appstart-timeout&amp;gt;60&amp;lt;/appstart-timeout&amp;gt;&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
        &amp;lt;/watchdog&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        &amp;lt;apps merge-operation=&amp;quot;explicit&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 no jms server on this node ...&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 no cache server on this node ...&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
            &lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 no calc engine server on this node ...&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;!-- ==============================================================&lt;br /&gt;
                 enable and configure all calcengine worker processes here ...&lt;br /&gt;
              --&amp;gt;&lt;br /&gt;
            &amp;lt;app id=&amp;quot;calcengine-worker&amp;quot;&amp;gt;&lt;br /&gt;
            &lt;br /&gt;
                &amp;lt;!-- ==========================================================&lt;br /&gt;
                     define how and when those calcengine worker has to be started.&lt;br /&gt;
&lt;br /&gt;
                     The following modes are available:&lt;br /&gt;
&lt;br /&gt;
                     auto      : the configured minimum amount of processes is started automatically&lt;br /&gt;
                                 if the OX backend will be started.&lt;br /&gt;
                     on-demand : the configured minimum amount of processes is started at runtime&lt;br /&gt;
                                 if the first spreadsheet document is requested.&lt;br /&gt;
                &lt;br /&gt;
                     default = on-demand&lt;br /&gt;
                  --&amp;gt;&lt;br /&gt;
                &amp;lt;start-mode&amp;gt;auto&amp;lt;/start-mode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                &amp;lt;!-- ==========================================================&lt;br /&gt;
                     define the minimum amount of worker processes to be started ...&lt;br /&gt;
                     &lt;br /&gt;
                     ... immediately on start up of OX backend in mode &#039;auto&#039;&lt;br /&gt;
                     ... lazy on first spreadsheet request in mode &#039;on-demand&#039;.&lt;br /&gt;
                  &lt;br /&gt;
                     range   = [0..max-instances]&lt;br /&gt;
                     default = 2&lt;br /&gt;
                  --&amp;gt;&lt;br /&gt;
                &amp;lt;min-instances&amp;gt;10&amp;lt;/min-instances&amp;gt;&lt;br /&gt;
                &lt;br /&gt;
                &amp;lt;!-- ==========================================================&lt;br /&gt;
                     define the maximum amount of worker processes to be used at runtime ...&lt;br /&gt;
                  &lt;br /&gt;
                     range   = [min-instances...]&lt;br /&gt;
                     default = 2&lt;br /&gt;
                  --&amp;gt;&lt;br /&gt;
                &amp;lt;max-instances&amp;gt;10&amp;lt;/max-instances&amp;gt;&lt;br /&gt;
&lt;br /&gt;
                &amp;lt;!-- ==========================================================&lt;br /&gt;
                     define the memory one worker can consume ...&lt;br /&gt;
                  &lt;br /&gt;
                     - the &#039;min&#039; value is used to reserver memory at startup&lt;br /&gt;
                     - the &#039;max&#039; value is used to define the maximum range which can be consumed&lt;br /&gt;
                     - the &#039;limit&#039; value is used to KILL the process&lt;br /&gt;
                       because it exceeds the maximum amount or memory&lt;br /&gt;
                  &lt;br /&gt;
                     default for min   = 1024&lt;br /&gt;
                     default for max   = 2048&lt;br /&gt;
                     default for limit = 2100&lt;br /&gt;
                  --&amp;gt;&lt;br /&gt;
                &amp;lt;!-- &lt;br /&gt;
                &amp;lt;memory&amp;gt;&lt;br /&gt;
                    &amp;lt;min&amp;gt;1024&amp;lt;/min&amp;gt;&lt;br /&gt;
                    &amp;lt;max&amp;gt;2048&amp;lt;/max&amp;gt;&lt;br /&gt;
                    &amp;lt;limit&amp;gt;2100&amp;lt;/limit&amp;gt;&lt;br /&gt;
                &amp;lt;/memory&amp;gt;&lt;br /&gt;
                 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;/app&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/apps&amp;gt;&lt;br /&gt;
    &amp;lt;/node&amp;gt;&lt;br /&gt;
&amp;lt;/cluster&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Start &amp;amp; Stop - Instructions &amp;amp; Recommendations ===&lt;br /&gt;
&lt;br /&gt;
Note: In general the order of starting all nodes (OX Appsuite, OX Spreadsheet Server and OX Spreadsheet Worker) is not important. An automatic reconnect feature guarantee a stable environment at runtime.&amp;lt;br/&amp;gt;On the other side it&#039;s more ease to analyze and locate errors inside the deployment if both nodes are started in a special order :&amp;lt;br/&amp;gt;OX Spreadsheet Server firstAll OX Spreadsheet Worker thenOX Appsuite at last&lt;br /&gt;
&lt;br /&gt;
=== Start/Stop OX Spreadsheet Server - Nature &#039;CE-Server&#039; ===&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Server can be controlled by the script&#039;&#039;&#039;&#039;&#039;/etc/init.d/open-xchange-cluster-management&#039;&#039;&#039;&#039;&#039;. The OX Backend is not installed and has not to be started on this node.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# start OX Spreadsheet Server&lt;br /&gt;
/etc/init.d/open-xchange-cluster-management start&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
# check status of OX Spreadsheet Server&lt;br /&gt;
/etc/init.d/open-xchange-cluster-management status&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
# stop OX Spreadsheet Server&lt;br /&gt;
/etc/init.d/open-xchange-cluster-management stop&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Start/Stop OX Spreadsheet Worker - Nature &#039;CE-Worker&#039; ===&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Worker can be controlled by the script&#039;&#039;&#039;&#039;&#039;/etc/init.d/open-xchange-cluster-management&#039;&#039;&#039;&#039;&#039;. The OX Backend is not installed and has not to be started on this node.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# start OX Spreadsheet Worker&lt;br /&gt;
/etc/init.d/open-xchange-cluster-management start&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
# check status of OX Spreadsheet Worker&lt;br /&gt;
/etc/init.d/open-xchange-cluster-management status&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
# stop OX Spreadsheet Worker&lt;br /&gt;
/etc/init.d/open-xchange-cluster-management stop&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Start/Stop OX Appsuite - Nature &#039;OX-Backend&#039; ===&lt;br /&gt;
&lt;br /&gt;
The OX Spreadsheet Client is running within the OX Backend process. So it&#039;s enough to control those backend service by calling the script&#039;&#039;&#039;&#039;&#039;/etc/init.d/open-xchange&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# start OX Backend&lt;br /&gt;
/etc/init.d/open-xchange start&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
# check status of OX Backend&lt;br /&gt;
/etc/init.d/open-xchange status&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
# stop OX Backend&lt;br /&gt;
/etc/init.d/open-xchange stop&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21298</id>
		<title>AppSuite:OX Guard</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21298"/>
		<updated>2016-01-12T15:22:38Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: Added Update Repository&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Guard =&lt;br /&gt;
&lt;br /&gt;
OX Guard is a fully integrated security add-on to OX App Suite that provides end users with a flexible email and file encryption solution. OX Guard is a highly scalable, multi server, feature rich solution that is so simple-to-use that end users will actually use it. With a single click a user can take control of their security and send secure emails and share encrypted files. This can be done from any device to both OX App Suite and non-OX App Suite users. &lt;br /&gt;
&lt;br /&gt;
OX Guard uses standard PGP encryption for the encryption of email and files. PGP has been around for a long time, yet has not really caught on with the masses. This is generally blamed on the confusion and complications of managing the keys, understanding trust, PGP format types, and lack of trusted central key repositories. Guard simplifies all of this, making PGP encryption as easy as a one click process, with no keys to keep track of, yet the options of advanced PGP management for those that know how.&lt;br /&gt;
&lt;br /&gt;
This article will guide you through the installation of Guard and describes the basic configuration and software requirements. As it is intended as a quick walk-through it assumes an existing installation of the operating system including a single server App Suite setup as well as average system administration skills. This guide will also show you how to setup a basic installation with none of the typically used distributed environment settings. The objective of this guide is:&lt;br /&gt;
&lt;br /&gt;
* To setup a single server installation&lt;br /&gt;
* To setup a single Guard instance on an existing Open-Xchange installation, no cluster&lt;br /&gt;
* To use the database service on the existing Open-Xchange installation for Guard, no replication&lt;br /&gt;
* To provide a basic configuration setup, no mailserver configuration&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Simple security at the touch of a button&lt;br /&gt;
* Provides user based security - Separate from provider&lt;br /&gt;
* Supplementary security to Provider based security - Layered&lt;br /&gt;
* Powerful features yet simple to use and understand&lt;br /&gt;
* Security - Inside and outside of the OX environment&lt;br /&gt;
* Email and Drive integration&lt;br /&gt;
* Uses proven PGP security&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
If an OX App Suite customer would like to evaluate OX Guard integration, the first step is to contact OX Sales. OX Sales will then work on the request and send prices and license/API (for the hosted infrastructure) key details to the customer.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
Please review following URL for remaining requirements  &lt;br /&gt;
&lt;br /&gt;
Please review [[AppSuite:OX_System_Requirements#OX_Guard|OX Guard Requirements]] for a full list of requirements.&lt;br /&gt;
&lt;br /&gt;
Since OX Guard is a Microservice it can either be added to an existing Open-Xchange installation or it can be deployed on a dedicated environment without having any of the other Open-Xchange App Suite core services installed. OX App Suite v7.6.0 or later is required to operate this extension both in a single or multi server environments.&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
* Open-Xchange REST API&lt;br /&gt;
* Grizzly HTTP connector (open-xchange-grizzly)&lt;br /&gt;
* A supported Java Virtual Machine (Java 7)&lt;br /&gt;
* An Open-Xchange App Suite installation v7.6.0 or later&lt;br /&gt;
* Please Note: To get access to the latest minor features and bug fixes, you need to have a valid license. The article [[AppSuite:UpdatingOXPackages|Updating OX-Packages]] explains how that can be done.&lt;br /&gt;
&lt;br /&gt;
== Important Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Customization ===&lt;br /&gt;
&lt;br /&gt;
OX Guard version supports branding / theming using the configuration cascade, defining a templateID for a user or context.  Additional details will be provided in customization documentation. Check bottom of this page. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mail Resolver ===&lt;br /&gt;
&lt;br /&gt;
READ THIS VERY CAREFULLY; BEFORE PROCEEDING WITH GUARD INSTALLATION!&lt;br /&gt;
&lt;br /&gt;
The Guard installation must be able to determine if an email recipient is a local OX user or if it should be a guest account.  The default MailResolver uses the context domain name to do this.  On many installations, domains may extend across multiple context and multiple database shards.  In these cases, the default MailResolver won&#039;t work.  In addition, if a custom authentication package is used, the Mail Resolver will likely not work.&lt;br /&gt;
&lt;br /&gt;
Be sure to test the mail resolver using&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test email@domain &lt;br /&gt;
&lt;br /&gt;
to see if the mail Resolver works.&lt;br /&gt;
&lt;br /&gt;
If the test does not work, you will likely need a custom Mail Resolver.  Please see [[AppSuite:GuardMailResolver| Mail Resolver page]]&lt;br /&gt;
&lt;br /&gt;
This resolver software &#039;&#039;depends heavily on your local deployment&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Download and Installation =&lt;br /&gt;
&lt;br /&gt;
=== General ===&lt;br /&gt;
The installation of the open-xchange-rest package which is required for Guard will eventually execute database update tasks if installed and activated. Please take this into account.&lt;br /&gt;
&lt;br /&gt;
There are several components to the Guard service.  They can be all installed on the same server as the OX backend, or on a separate server.&lt;br /&gt;
&lt;br /&gt;
The components required for the OX backend are: open-xchange-rest, open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
The components required for the OX frontend are: open-xchange-guard-ui open-xchange-guard-ui-static and optionally open-xchange-guard-help-en-us (or preferred language for help files)&lt;br /&gt;
&lt;br /&gt;
The components required for the Guard server (may be on same as the backend) open-xchange-guard&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the installation of the OX Guard at your already available environment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; By default, OX Guard generates the link to the secure content for external recipients on the basis of the local fully qualified domain name (FQDN). If the local FQDN is not reachable from the internet, it has to be specified manually. This can be done by setting a UCR variable, e.g. via the UMC module &amp;quot;Univention Configuration Registry&amp;quot;. The variable has to contain the external FQDN of the OX Guard system:&lt;br /&gt;
&lt;br /&gt;
 oxguard/cfg/guard.properties/com.openexchange.guard.externalEmailURL=HOSTNAME.DOMAINNAME&lt;br /&gt;
&lt;br /&gt;
= Update OX Guard =&lt;br /&gt;
&lt;br /&gt;
Before upgrading Guard to version 2.0.0 you need to install the package &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; on all groupware nodes used by Guard throught the REST api. In other words, every groupware node have &amp;lt;code&amp;gt;open-xchange-rest&amp;lt;/code&amp;gt; installed, now needs to have &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; installed.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the update of the OX Guard.&lt;br /&gt;
&lt;br /&gt;
=== Update OX Guard v1.2 to OX Guard v2.0.0 ===&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: &#039;&#039;&#039;&#039;&#039;If you did not run GUARD 1.2 already, you DO NOT NEED to execute the &amp;quot;upgradePGP&amp;quot; command!&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you have an existing Guard v1.2 database, and are upgrading to v2.0, additional PGP key table need to be created and populated.  Once the Guard package has been updated, type&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard upgradePGP&lt;br /&gt;
&lt;br /&gt;
This process will alter the needed database tables and populate the needed lookup tables.  Guard 1.2 can continue to run in the background.  Once complete, Guard 2.0 can be started.&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
The following gives an overview of the most important settings to enable Guard for users on the Open-Xchange installation. Some of those settings have to be modified in order to establish the database and REST API access from the Guard service. All settings relating to the Guard backend component are located in the configuration file guard.properties located in /opt/open-xchange/guard/etc. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the database username and password). Please refer to the inline documentation of the configuration file for more advanced options.  Additional information can be found here [[AppSuite:GuardConfiguration|Guard Configuration]]&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
Open-Xchange config_db host - Guard will establish a connection to the config_db&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.configdbHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database for storing Guard user information, main lookup tables&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardDatabaseHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database that stores keys for guest users.  May be the same as above.  New guest shards will be created on this database as needed.  If not supplied, will use the oxguardDatabaseHostname&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardShardDatabase=localhost&lt;br /&gt;
&lt;br /&gt;
Username and Password for the databases above&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.databaseUsername=openexchange&lt;br /&gt;
 com.openexchange.guard.databasePassword=db_password&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API host&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API username and password (need to be defined in the OX backend in the &amp;quot;Configure services&amp;quot; below)&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiUsername=apiusername&lt;br /&gt;
 com.openexchange.guard.restApiPassword=apipassword&lt;br /&gt;
&lt;br /&gt;
External URL for this Open-Xchange installation. This setting will be used to generate the link to the secure content for external recipients&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.externalEmailURL=URL_TO_OX&lt;br /&gt;
&lt;br /&gt;
== Configure services ==&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
Configure the mod_proxy_http module by adding the Guard API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Redhat Enterprise Linux 6 or CentOS 6&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/httpd/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Debian GNU/Linux 7.0 and SUSE Linux Enterprise Server 11&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/apache2/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguard&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all&amp;lt;br&amp;gt;&lt;br /&gt;
        BalancerMember http://localhost:8080/oxguard timeout=1800 smax=0 ttl=60 retry=60 loadfactor=100 route=OX1&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ProxyPass /appsuite/api/oxguard balancer://oxguard&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; The Guard API settings must be inserted before the existing “&amp;lt;Proxy /appsuite/api&amp;gt;” parameter.&lt;br /&gt;
&lt;br /&gt;
After the configuration is done, restart the Apache webserver&lt;br /&gt;
&lt;br /&gt;
 $ apachectl restart&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Starting in Guard 2.0, there is an administrative component to the Open-Xchange backend that notifies Guard when a user or context is deleted.  Install the package open-xchange-guard-backend-plugin on all OX backend servers.  On a debian install, this command would be:&lt;br /&gt;
&lt;br /&gt;
 apt-get install open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
There is also a configuration file for the OX backend regarding some general Guard settings.  Please remove comments in front of the following settings to the configuration file guard.properties on the Open-Xchange backend servers:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # OX GUard general permission, required to activate Guard in the AppSuite UI.&lt;br /&gt;
 com.openexchange.capability.guard=true&lt;br /&gt;
 &lt;br /&gt;
 # Default theme template id for all users that have no custom template id configured.&lt;br /&gt;
 com.openexchange.guard.templateID=0&lt;br /&gt;
&lt;br /&gt;
Configure the API username and password that you assigned to Guard in the server.properties file&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
 # Specify the user name used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.login=apiusername&lt;br /&gt;
 &lt;br /&gt;
 # Specify the password used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.password=apipassword&lt;br /&gt;
&lt;br /&gt;
Finally, the OX backend needs to know where the Guard server is located.  This is used to notify the Guard server of changes in users, and to send emails marked for signature.  The URL for the Guard server should include the url suffix /guardadmin .  In the event of a cluster setup, any Guard server can be referenced here, as it is not session specific, though ideally would have a HTTP load balancer/failover URL&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # Specifies the URI to the OX Guard end-point; e.g. http://guard.host.invalid:8081/guardadmin&lt;br /&gt;
 # Default is empty&lt;br /&gt;
 com.openexchange.guard.endpoint=http://guardserver:8080/guardadmin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart the OX backend&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange restart&lt;br /&gt;
&lt;br /&gt;
=== SELinux ===&lt;br /&gt;
&lt;br /&gt;
Running SELinux prohibits your local Open-Xchange backend service to connect to localhost:8080, which is where the Guard backend service listens to. In order to allow localhost connections to 8080 execute the following:&lt;br /&gt;
&lt;br /&gt;
 $ setsebool -P httpd_can_network_connect 1&lt;br /&gt;
&lt;br /&gt;
=== RHEL (Redhat) ===&lt;br /&gt;
&lt;br /&gt;
Occasionally, the encoding of special characters in the translation files don&#039;t work properly in RHEL.  To fix this, please edit the file /opt/open-xchange/guard/etc/ox-scriptconf.sh and add to the JAVA_XTRAOPTS -DFile.encoding=UTF-8&lt;br /&gt;
&lt;br /&gt;
  JAVA_XTRAOPTS=&amp;quot;-Xmx1024m -Dfile.encoding=UTF-8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Initiating the Guard database and key store ==&lt;br /&gt;
&lt;br /&gt;
Once the Guard configuration (database and backend configuration) and the service configuration has been applied, the Guard administration script needs to be executed in order to create the Guard databases. The administration script also takes care of the creation of the master keys and the master password file in /opt/open-xchange/guard. The initiation only needs to be done once for a multi server setup, for details please see “Optional / Clustering”.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; If you run a cluster of OX / Guard nodes, only execute this command on ONE node. Not on all nodes!  See [[AppSuite:GuardCluster | Ox Guard Clustering]] for details.&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard init&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; It is important to understand that the master password file located at /opt/open-xchange/guard/oxguardpass is required to reset user passwords, without them the administrator will not be able to reset user passwords anymore in the future. The file contains the passwords used to encrypt the master database key, as well as passwords used to encrypt protected data in the users table.  It must be the same on all Guard servers.&lt;br /&gt;
&lt;br /&gt;
== Test Setup ==&lt;br /&gt;
&lt;br /&gt;
Not required, but it is a good idea to test the Guard setup before starting the initialization.  The test function will verify that Guard has a good connection to the OX backend, and that it can resolve email addresses to users.&lt;br /&gt;
&lt;br /&gt;
To test, use an email address that exists on the OX backend (john@example.com for this example)&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test john@example.com&lt;br /&gt;
&lt;br /&gt;
Guard should return information from the OX backend regarding the user associated with john@example.com.  Problems resolving information for the user should be resolved before using Guard.  Check Rest API passwords and settings if errors returned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start Guard ==&lt;br /&gt;
&lt;br /&gt;
The services have been configured and the database has been initiated, it&#039;s time to start Guard&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange-guard start&lt;br /&gt;
&lt;br /&gt;
== Enabling Guard for Users ==&lt;br /&gt;
&lt;br /&gt;
Guard provides two capabilities for users in the environment as well as a basic &amp;quot;core&amp;quot; level:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Guard:&#039;&#039;&#039; com.openexchange.capability.guard&lt;br /&gt;
* &#039;&#039;&#039;Guard Mail:&#039;&#039;&#039; com.openexchange.capability.guard-mail&lt;br /&gt;
* &#039;&#039;&#039;Guard Drive:&#039;&#039;&#039; com.openexchange.capability.guard-drive&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;core&amp;quot; Guard enabled a basic read functionality for Guard encrypted emails.  We recommend enabling this for all users, as this allows all recipients to read Guard emails sent to them.  Great opportunity for upsell.  Recipients with only Guard enabled can then do a secure reply to the sender, but they can&#039;t start a new email or add recipients.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Guard Mail&amp;quot; and &amp;quot;Guard Drive&amp;quot; are additional options for users.  &amp;quot;Guard Mail&amp;quot; allows users the full functionality of Guard emails.  &amp;quot;Guard Drive&amp;quot; allows for encryption and decryption of drive files.&lt;br /&gt;
&lt;br /&gt;
Each of those two Guard components is enabled for all users that have the according capability configured. Please note that users need to have the Drive permission set to use Guard Drive. So the users that have Guard Drive enabled must be a subset of those users with OX Drive permission. Since v7.6.0 we enforce this via the default configuration. Those capabilities can be activated for specific user by using the Open-Xchange provisioning scripts:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Mail:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-mail=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Drive:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-drive=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Guard Drive requires Guard Mail to be configured for the user as well.  In addition, these capabilities may be configured globally by editing the guard.properties file on the OX bakend&lt;br /&gt;
&lt;br /&gt;
== Optional ==&lt;br /&gt;
&lt;br /&gt;
=== SSL Configuration ===&lt;br /&gt;
&lt;br /&gt;
Per default the connection between the Guard backend and the configured Open-Xchange REST API host is unencrypted. Even though that Guard will never transmit unencrypted emails to or from the REST API you can optionally encrypt the whole communication between those two components by using SSL. To enforce Guard to use SSL in the communication between those two components enable the follwing configuration in Guard configuration file. &lt;br /&gt;
&lt;br /&gt;
  $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
  com.openexchange.guard.backend_ssl=true&lt;br /&gt;
&lt;br /&gt;
The Guard backend is most commonly placed behind a load balancer (APACHE or other) and defaults to HTTP for incoming and outgoing traffic, using the load balancer to do SSL with the users.  If you want Guard to use SSL for all communications, you need to set up the SSL key to use.&lt;br /&gt;
&lt;br /&gt;
Please note that you have to provide access to the certificates.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.useSSL: true&lt;br /&gt;
 com.openexchange.guard.SSLPort: 8443&lt;br /&gt;
 com.openexchange.guard.SSLKeyStore: //keystore location//&lt;br /&gt;
 com.openexchange.guard.SSLKeyName: //alias name here//&lt;br /&gt;
 com.openexchange.guard.SSLKeyPass: //ssl password//&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Enabling SSL might decrease performance and/or create more system load due to additional encoding of the HTTP streams.&lt;br /&gt;
&lt;br /&gt;
For details on SSL installation and configuration, please see [[AppSuite:GuardSSL|OX Guard SSL Installation]]&lt;br /&gt;
&lt;br /&gt;
== Recipient key detection ==&lt;br /&gt;
&lt;br /&gt;
=== Local ===&lt;br /&gt;
&lt;br /&gt;
Guard needs to determine if an email recipients email address is an internal or external (non-ox) user.  &lt;br /&gt;
&lt;br /&gt;
To detect if the recipient is an account on the same OX Guard system there is a mechanism needed to map a recipient mail address to the correct local OX context. The default implementation delivered in the product achieves that by looking up the mail domain (@example.com) within the list of context mappings. That is at least not possible in case of ISPs where different users/contexts use the same mail domain. In case your OX system does not use mail domains in context mappings it is required to deploy an OX OSGi bundle implementing the com.openexchange.mailmapping.MailResolver class or by interfacing Guard with your mail resolver system.&lt;br /&gt;
Please see [[Appsuite:GuardMailResolver|OX Guard Mail Resolver]] for details&lt;br /&gt;
&lt;br /&gt;
=== External ===&lt;br /&gt;
&lt;br /&gt;
Starting with Guard 2.0, Guard will use public PGP Key servers if configured to find PGP Public keys.  In addition, Guard will also look up SRV records for PGP Key servers for a recipients domain.  This follows the standards [http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00#page-9 OpenPGP Draft].&lt;br /&gt;
&lt;br /&gt;
External PGP servers to use can be configured in the guard.properties file on the Guard servers.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.publicPGPDirectory = hkp://keys.gnupg.net:11371, hkp://pgp.mit.edu:11371&lt;br /&gt;
&lt;br /&gt;
If you would like this Guard installation discoverable by other Guard servers, then create a SRV record for each domain (&amp;quot;example.com&amp;quot; in this illustration)&lt;br /&gt;
 &lt;br /&gt;
 _hkp._tcp.open-xchange.com. 28800 IN    SRV     10 1 80 appsuite.example.com.&lt;br /&gt;
&lt;br /&gt;
You will also need to make additional entries in the apache proxy_http.conf file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardpgp&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all, add&lt;br /&gt;
        BalancerMember http://guardserver:8080/pgp timeout=1800 smax=0 ttl=60 retry=60 loadfactor=50 route=OX3&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
   &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy /pks&amp;gt;&lt;br /&gt;
        ProxyPass balancer://oxguardpgp&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note&#039;&#039;&#039; PGP Public key servers by default append use the url server/pks when the record is obtained from a SRV record.  The proxy above routes anything with the apache domain/pks to the Oxguard PGP server&lt;br /&gt;
&lt;br /&gt;
== Clustering ==&lt;br /&gt;
&lt;br /&gt;
You can run multiple OX Guard servers in your environment to ensure high availability or enhance scalability. OX Guard integrates seamlessly into the existing Open-Xchange infrastructure by using the existing interface standards and is therefor transparent to the environment. A couple of things have to be prepared in order to loosely couple OX Guard servers with Open-Xchange servers in a cluster.&lt;br /&gt;
&lt;br /&gt;
=== MySQL ===&lt;br /&gt;
&lt;br /&gt;
The MySQL servers need to be configured in order to allow access to the configdb of Open-Xchange. To do so you need to set the following configuration in the MySQL my.cnf:&lt;br /&gt;
&lt;br /&gt;
 bind = 0.0.0.0&lt;br /&gt;
&lt;br /&gt;
This allows the Guard backend to bind to the MySQL host which is configured in the guard.properties file with com.openexchange.guard.configdbHostname. After the bind for the MySQL instance is configured and the OX Guard backend would be able to connect to the configured host, you have to grant access for the OX Guard service on the MySQL instance to manage the databases. Do so by connecting to the MySQL server via the mysql client. Authenticate if necessary and execute the following, please note that you have to modify the hostname / IP address of the client who should be able to connect to this database, it should include all possible OX Guard servers:&lt;br /&gt;
&lt;br /&gt;
 GRANT ALL PRIVILEGES ON *.* TO &#039;openexchange&#039;@&#039;oxguard.example.com&#039; IDENTIFIED BY ‘secret’;&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
OX Guard uses the Open-Xchange REST API to store and fetch data from the Open-Xchange databases. The REST API is a servlet running in the Grizzly container. By default it is not exposed as a servlet through Apache and is only accessibly via port 8009. In order to use Apache&#039;s load balancing via mod_proxy we need to add a servlet called &amp;quot;preliminary&amp;quot; to proxy_http.conf, example based on a clustered mod_proxy configuration:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Location /preliminary&amp;gt;&lt;br /&gt;
      Order Deny,Allow&lt;br /&gt;
      Deny from all&lt;br /&gt;
      # Only allow access from Guard servers within the network. Do not expose this&lt;br /&gt;
      # location outside of your network. In case you use a load balancing service in front&lt;br /&gt;
      # of your Apache infrastructure you should make sure that access to /preliminary will&lt;br /&gt;
      # be blocked from the internet / outside clients. Examples:&lt;br /&gt;
      # Allow from 192.168.0.1&lt;br /&gt;
      # Allow from 192.168.1.1 192.168.1.2&lt;br /&gt;
      # Allow from 192.168.0.&lt;br /&gt;
      ProxyPass /preliminary balancer://oxcluster/preliminary&lt;br /&gt;
 &amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that the balancer is properly configured in the mod_proxy configuration. Examples on how to do so can be found in our clustering configuration for Open-Xchange AppSuite. Like explained in the example above, please make sure that this location is only available in your internal network, there is no need to expose /preliminary to the public, it is only used by Guard servers to connect to the OX backend. If you have a load balancer in front of the Apache cluster you should consider blocking access to /preliminary from WAN to restrict access to the servlet to internal network services only.&lt;br /&gt;
&lt;br /&gt;
Now add the OX Guard BalancerMembers to the oxguard balancer configuration (also in proxy_http.conf) to address all your OX Guard nodes in the cluster in this balancer configuration. The configuration has to be applied to all Apache nodes within the cluster.&lt;br /&gt;
&lt;br /&gt;
If the Apache server is a dedicated server / instance you also have to install the OX Guard UI-Static package on all Apache nodes in the cluster in order to provide static files like images or CSS to the OX Guard client. Example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Disable the Open-Xchange IPCheck for session verification. This is required because OX Guard will use the users session cookie to connect to the Open-Xchange REST API, but as a different IP address than the OX Guard server has been used during authentication the request would fail if you don&#039;t disable the IPCheck:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
and set:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.IPCheck=false&lt;br /&gt;
&lt;br /&gt;
The OX Guard UI package has to be installed on all Open-Xchange backend nodes as well, example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui&lt;br /&gt;
&lt;br /&gt;
Restart the Open-Xchange service afterwards.&lt;br /&gt;
&lt;br /&gt;
=== OX Guard ===&lt;br /&gt;
&lt;br /&gt;
For details in clustering Guard servers, please see [[AppSuite:GuardCluster | OxGuard Clustering]] .  It is critical that all Guard servers have the same oxguardpass file.  Please see the clustering link for details.  Do not run ./guard init on more than one server.&lt;br /&gt;
&lt;br /&gt;
After all the services like MySQL, Apache and Open-Xchange have been configured you need to update the OX Guard backend configuration to point to the correct API endpoints. Set the REST API endpoint to an Apache server by setting the following value in /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=apache.example.com&lt;br /&gt;
&lt;br /&gt;
Per default Guard will try to connect to port 8009 to this host, but as we configured the REST API to be proxies thorugh the serblet /preliminary on every Apache we now also need to change the target port for the REST API. You can do so by adding the following line into /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxBackendPort=80&lt;br /&gt;
&lt;br /&gt;
Please also change all settings in regards to MySQL like com.openexchange.guard.configdbHostname, com.openexchange.guard.oxguardDatabaseHostname, com.openexchange.guard.databaseUsername or com.openexchange.guard.databasePassword. Afterwards restart the OX Guard service and check the logfile if the OX Guard backend is able to connect to the configured REST API.&lt;br /&gt;
&lt;br /&gt;
== Multi Node ==&lt;br /&gt;
&lt;br /&gt;
If you have multiple OX and Guard installations, please see the following documentation [[AppSuite:OX_Guard_Modular|OX Guard Modular Setup]]&lt;br /&gt;
&lt;br /&gt;
= Support API =&lt;br /&gt;
&lt;br /&gt;
The OX Guard Support API enables administrative access to various functions for maintaining OX Guard from a client in a role as a support employee. A client has to do a BASIC AUTH authentication in order to access the API. Username and password can be configured in the guard.properties file using the following settings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    # Specify the username and password for accessing the Support API of Guard&lt;br /&gt;
    com.openexchange.guard.supportapiusername=&lt;br /&gt;
    com.openexchange.guard.supportapipassword=&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In contrast to the rest of the OX Guard requests, the OX Guard support API requests are accessible using: /guardsupport. This distinction allows more flexible configuration since the support API should not always be accessible from everywhere. But if you want to expose the Guard Support API using Apache a very basic Apache configuration could look like this:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning&#039;&#039;&#039; Exposing the support API to the internet could be huge security risk.  Only add to apache if you know what you are doing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass http://localhost:8080/guardsupport                                                    &lt;br /&gt;
        #...&lt;br /&gt;
   &amp;lt;/Location&amp;gt;      &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it might also be preferable to add a new balancer directive for guardsupport&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass balancer://oxguardsupport                                                           &lt;br /&gt;
 &amp;lt;/Location&amp;gt; &lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardsupport&amp;gt;                                                                &lt;br /&gt;
       #...&lt;br /&gt;
        BalancerMember http://localhost:8080/guardsupport #...&lt;br /&gt;
       #...&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reset password ===&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=reset_password&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Performs a password reset and sends a new random generated password to a specified email address by the user or a default address if the user did not specify an email address. The reset password function is currently not available for guest users.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to reset the password for&lt;br /&gt;
* &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; (optional) – The email address to send the new password to, if the user did not specify a secondary email address&lt;br /&gt;
&lt;br /&gt;
=== Expose key ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=expose_key&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Marks a deleted user key temporary as “exposed” and creates a unique URL for downloading the exposed key.&lt;br /&gt;
Automatic resetting of exposed keys to &amp;quot;not exposed&amp;quot; is scheduled once a day and resets all exposed keys which have been exposed before X hours, where X can be configured using com.openexchange.guard.exposedKeyDurationInHours in the guard.properties files.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to expose the deleted keys for&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; – The context id&lt;br /&gt;
&lt;br /&gt;
Response:&lt;br /&gt;
An URL pointing to the downloadable exposed keys&lt;br /&gt;
&lt;br /&gt;
=== Delete user ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=delete_user&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Deletes all keys related to a certain user. The keys are backed up and can be exposed using the “expose_key” call.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;user_id&amp;lt;/code&amp;gt; – The user&#039;s id&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; - The context id&lt;br /&gt;
&lt;br /&gt;
= Customization =&lt;br /&gt;
&lt;br /&gt;
Guard&#039;s templates are customizable at the user and context level.  Please see [[AppSuite:GuardCustomization| Customization]] for details&lt;br /&gt;
&lt;br /&gt;
= Entropy =&lt;br /&gt;
&lt;br /&gt;
Guard requires entropy (randomness) to generate the private/public keys that are used.  Depending on the server and it&#039;s environment, this may become a problem.  Please see [[AppSuite:GuardEntropy | Entropy]] for a possible solution&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21297</id>
		<title>AppSuite:OX Guard</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21297"/>
		<updated>2016-01-12T15:21:20Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: /* SUSE Linux Enterprise Server 11 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Guard =&lt;br /&gt;
&lt;br /&gt;
OX Guard is a fully integrated security add-on to OX App Suite that provides end users with a flexible email and file encryption solution. OX Guard is a highly scalable, multi server, feature rich solution that is so simple-to-use that end users will actually use it. With a single click a user can take control of their security and send secure emails and share encrypted files. This can be done from any device to both OX App Suite and non-OX App Suite users. &lt;br /&gt;
&lt;br /&gt;
OX Guard uses standard PGP encryption for the encryption of email and files. PGP has been around for a long time, yet has not really caught on with the masses. This is generally blamed on the confusion and complications of managing the keys, understanding trust, PGP format types, and lack of trusted central key repositories. Guard simplifies all of this, making PGP encryption as easy as a one click process, with no keys to keep track of, yet the options of advanced PGP management for those that know how.&lt;br /&gt;
&lt;br /&gt;
This article will guide you through the installation of Guard and describes the basic configuration and software requirements. As it is intended as a quick walk-through it assumes an existing installation of the operating system including a single server App Suite setup as well as average system administration skills. This guide will also show you how to setup a basic installation with none of the typically used distributed environment settings. The objective of this guide is:&lt;br /&gt;
&lt;br /&gt;
* To setup a single server installation&lt;br /&gt;
* To setup a single Guard instance on an existing Open-Xchange installation, no cluster&lt;br /&gt;
* To use the database service on the existing Open-Xchange installation for Guard, no replication&lt;br /&gt;
* To provide a basic configuration setup, no mailserver configuration&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Simple security at the touch of a button&lt;br /&gt;
* Provides user based security - Separate from provider&lt;br /&gt;
* Supplementary security to Provider based security - Layered&lt;br /&gt;
* Powerful features yet simple to use and understand&lt;br /&gt;
* Security - Inside and outside of the OX environment&lt;br /&gt;
* Email and Drive integration&lt;br /&gt;
* Uses proven PGP security&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
If an OX App Suite customer would like to evaluate OX Guard integration, the first step is to contact OX Sales. OX Sales will then work on the request and send prices and license/API (for the hosted infrastructure) key details to the customer.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
Please review following URL for remaining requirements  &lt;br /&gt;
&lt;br /&gt;
Please review [[AppSuite:OX_System_Requirements#OX_Guard|OX Guard Requirements]] for a full list of requirements.&lt;br /&gt;
&lt;br /&gt;
Since OX Guard is a Microservice it can either be added to an existing Open-Xchange installation or it can be deployed on a dedicated environment without having any of the other Open-Xchange App Suite core services installed. OX App Suite v7.6.0 or later is required to operate this extension both in a single or multi server environments.&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
* Open-Xchange REST API&lt;br /&gt;
* Grizzly HTTP connector (open-xchange-grizzly)&lt;br /&gt;
* A supported Java Virtual Machine (Java 7)&lt;br /&gt;
* An Open-Xchange App Suite installation v7.6.0 or later&lt;br /&gt;
* Please Note: To get access to the latest minor features and bug fixes, you need to have a valid license. The article [[AppSuite:UpdatingOXPackages|Updating OX-Packages]] explains how that can be done.&lt;br /&gt;
&lt;br /&gt;
== Important Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Customization ===&lt;br /&gt;
&lt;br /&gt;
OX Guard version supports branding / theming using the configuration cascade, defining a templateID for a user or context.  Additional details will be provided in customization documentation. Check bottom of this page. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mail Resolver ===&lt;br /&gt;
&lt;br /&gt;
READ THIS VERY CAREFULLY; BEFORE PROCEEDING WITH GUARD INSTALLATION!&lt;br /&gt;
&lt;br /&gt;
The Guard installation must be able to determine if an email recipient is a local OX user or if it should be a guest account.  The default MailResolver uses the context domain name to do this.  On many installations, domains may extend across multiple context and multiple database shards.  In these cases, the default MailResolver won&#039;t work.  In addition, if a custom authentication package is used, the Mail Resolver will likely not work.&lt;br /&gt;
&lt;br /&gt;
Be sure to test the mail resolver using&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test email@domain &lt;br /&gt;
&lt;br /&gt;
to see if the mail Resolver works.&lt;br /&gt;
&lt;br /&gt;
If the test does not work, you will likely need a custom Mail Resolver.  Please see [[AppSuite:GuardMailResolver| Mail Resolver page]]&lt;br /&gt;
&lt;br /&gt;
This resolver software &#039;&#039;depends heavily on your local deployment&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Download and Installation =&lt;br /&gt;
&lt;br /&gt;
=== General ===&lt;br /&gt;
The installation of the open-xchange-rest package which is required for Guard will eventually execute database update tasks if installed and activated. Please take this into account.&lt;br /&gt;
&lt;br /&gt;
There are several components to the Guard service.  They can be all installed on the same server as the OX backend, or on a separate server.&lt;br /&gt;
&lt;br /&gt;
The components required for the OX backend are: open-xchange-rest, open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
The components required for the OX frontend are: open-xchange-guard-ui open-xchange-guard-ui-static and optionally open-xchange-guard-help-en-us (or preferred language for help files)&lt;br /&gt;
&lt;br /&gt;
The components required for the Guard server (may be on same as the backend) open-xchange-guard&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the installation of the OX Guard at your already available environment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; By default, OX Guard generates the link to the secure content for external recipients on the basis of the local fully qualified domain name (FQDN). If the local FQDN is not reachable from the internet, it has to be specified manually. This can be done by setting a UCR variable, e.g. via the UMC module &amp;quot;Univention Configuration Registry&amp;quot;. The variable has to contain the external FQDN of the OX Guard system:&lt;br /&gt;
&lt;br /&gt;
 oxguard/cfg/guard.properties/com.openexchange.guard.externalEmailURL=HOSTNAME.DOMAINNAME&lt;br /&gt;
&lt;br /&gt;
= Update OX Guard =&lt;br /&gt;
&lt;br /&gt;
Before upgrading Guard to version 2.0.0 you need to install the package &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; on all groupware nodes used by Guard throught the REST api. In other words, every groupware node have &amp;lt;code&amp;gt;open-xchange-rest&amp;lt;/code&amp;gt; installed, now needs to have &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; installed.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the update of the OX Guard.&lt;br /&gt;
&lt;br /&gt;
=== Update OX Guard v1.2 to OX Guard v2.0.0 ===&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: &#039;&#039;&#039;&#039;&#039;If you did not run GUARD 1.2 already, you DO NOT NEED to execute the &amp;quot;upgradePGP&amp;quot; command!&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you have an existing Guard v1.2 database, and are upgrading to v2.0, additional PGP key table need to be created and populated.  Once the Guard package has been updated, type&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard upgradePGP&lt;br /&gt;
&lt;br /&gt;
This process will alter the needed database tables and populate the needed lookup tables.  Guard 1.2 can continue to run in the background.  Once complete, Guard 2.0 can be started.&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
The following gives an overview of the most important settings to enable Guard for users on the Open-Xchange installation. Some of those settings have to be modified in order to establish the database and REST API access from the Guard service. All settings relating to the Guard backend component are located in the configuration file guard.properties located in /opt/open-xchange/guard/etc. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the database username and password). Please refer to the inline documentation of the configuration file for more advanced options.  Additional information can be found here [[AppSuite:GuardConfiguration|Guard Configuration]]&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
Open-Xchange config_db host - Guard will establish a connection to the config_db&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.configdbHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database for storing Guard user information, main lookup tables&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardDatabaseHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database that stores keys for guest users.  May be the same as above.  New guest shards will be created on this database as needed.  If not supplied, will use the oxguardDatabaseHostname&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardShardDatabase=localhost&lt;br /&gt;
&lt;br /&gt;
Username and Password for the databases above&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.databaseUsername=openexchange&lt;br /&gt;
 com.openexchange.guard.databasePassword=db_password&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API host&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API username and password (need to be defined in the OX backend in the &amp;quot;Configure services&amp;quot; below)&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiUsername=apiusername&lt;br /&gt;
 com.openexchange.guard.restApiPassword=apipassword&lt;br /&gt;
&lt;br /&gt;
External URL for this Open-Xchange installation. This setting will be used to generate the link to the secure content for external recipients&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.externalEmailURL=URL_TO_OX&lt;br /&gt;
&lt;br /&gt;
== Configure services ==&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
Configure the mod_proxy_http module by adding the Guard API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Redhat Enterprise Linux 6 or CentOS 6&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/httpd/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Debian GNU/Linux 7.0 and SUSE Linux Enterprise Server 11&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/apache2/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguard&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all&amp;lt;br&amp;gt;&lt;br /&gt;
        BalancerMember http://localhost:8080/oxguard timeout=1800 smax=0 ttl=60 retry=60 loadfactor=100 route=OX1&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ProxyPass /appsuite/api/oxguard balancer://oxguard&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; The Guard API settings must be inserted before the existing “&amp;lt;Proxy /appsuite/api&amp;gt;” parameter.&lt;br /&gt;
&lt;br /&gt;
After the configuration is done, restart the Apache webserver&lt;br /&gt;
&lt;br /&gt;
 $ apachectl restart&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Starting in Guard 2.0, there is an administrative component to the Open-Xchange backend that notifies Guard when a user or context is deleted.  Install the package open-xchange-guard-backend-plugin on all OX backend servers.  On a debian install, this command would be:&lt;br /&gt;
&lt;br /&gt;
 apt-get install open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
There is also a configuration file for the OX backend regarding some general Guard settings.  Please remove comments in front of the following settings to the configuration file guard.properties on the Open-Xchange backend servers:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # OX GUard general permission, required to activate Guard in the AppSuite UI.&lt;br /&gt;
 com.openexchange.capability.guard=true&lt;br /&gt;
 &lt;br /&gt;
 # Default theme template id for all users that have no custom template id configured.&lt;br /&gt;
 com.openexchange.guard.templateID=0&lt;br /&gt;
&lt;br /&gt;
Configure the API username and password that you assigned to Guard in the server.properties file&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
 # Specify the user name used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.login=apiusername&lt;br /&gt;
 &lt;br /&gt;
 # Specify the password used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.password=apipassword&lt;br /&gt;
&lt;br /&gt;
Finally, the OX backend needs to know where the Guard server is located.  This is used to notify the Guard server of changes in users, and to send emails marked for signature.  The URL for the Guard server should include the url suffix /guardadmin .  In the event of a cluster setup, any Guard server can be referenced here, as it is not session specific, though ideally would have a HTTP load balancer/failover URL&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # Specifies the URI to the OX Guard end-point; e.g. http://guard.host.invalid:8081/guardadmin&lt;br /&gt;
 # Default is empty&lt;br /&gt;
 com.openexchange.guard.endpoint=http://guardserver:8080/guardadmin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart the OX backend&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange restart&lt;br /&gt;
&lt;br /&gt;
=== SELinux ===&lt;br /&gt;
&lt;br /&gt;
Running SELinux prohibits your local Open-Xchange backend service to connect to localhost:8080, which is where the Guard backend service listens to. In order to allow localhost connections to 8080 execute the following:&lt;br /&gt;
&lt;br /&gt;
 $ setsebool -P httpd_can_network_connect 1&lt;br /&gt;
&lt;br /&gt;
=== RHEL (Redhat) ===&lt;br /&gt;
&lt;br /&gt;
Occasionally, the encoding of special characters in the translation files don&#039;t work properly in RHEL.  To fix this, please edit the file /opt/open-xchange/guard/etc/ox-scriptconf.sh and add to the JAVA_XTRAOPTS -DFile.encoding=UTF-8&lt;br /&gt;
&lt;br /&gt;
  JAVA_XTRAOPTS=&amp;quot;-Xmx1024m -Dfile.encoding=UTF-8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Initiating the Guard database and key store ==&lt;br /&gt;
&lt;br /&gt;
Once the Guard configuration (database and backend configuration) and the service configuration has been applied, the Guard administration script needs to be executed in order to create the Guard databases. The administration script also takes care of the creation of the master keys and the master password file in /opt/open-xchange/guard. The initiation only needs to be done once for a multi server setup, for details please see “Optional / Clustering”.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; If you run a cluster of OX / Guard nodes, only execute this command on ONE node. Not on all nodes!  See [[AppSuite:GuardCluster | Ox Guard Clustering]] for details.&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard init&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; It is important to understand that the master password file located at /opt/open-xchange/guard/oxguardpass is required to reset user passwords, without them the administrator will not be able to reset user passwords anymore in the future. The file contains the passwords used to encrypt the master database key, as well as passwords used to encrypt protected data in the users table.  It must be the same on all Guard servers.&lt;br /&gt;
&lt;br /&gt;
== Test Setup ==&lt;br /&gt;
&lt;br /&gt;
Not required, but it is a good idea to test the Guard setup before starting the initialization.  The test function will verify that Guard has a good connection to the OX backend, and that it can resolve email addresses to users.&lt;br /&gt;
&lt;br /&gt;
To test, use an email address that exists on the OX backend (john@example.com for this example)&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test john@example.com&lt;br /&gt;
&lt;br /&gt;
Guard should return information from the OX backend regarding the user associated with john@example.com.  Problems resolving information for the user should be resolved before using Guard.  Check Rest API passwords and settings if errors returned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start Guard ==&lt;br /&gt;
&lt;br /&gt;
The services have been configured and the database has been initiated, it&#039;s time to start Guard&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange-guard start&lt;br /&gt;
&lt;br /&gt;
== Enabling Guard for Users ==&lt;br /&gt;
&lt;br /&gt;
Guard provides two capabilities for users in the environment as well as a basic &amp;quot;core&amp;quot; level:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Guard:&#039;&#039;&#039; com.openexchange.capability.guard&lt;br /&gt;
* &#039;&#039;&#039;Guard Mail:&#039;&#039;&#039; com.openexchange.capability.guard-mail&lt;br /&gt;
* &#039;&#039;&#039;Guard Drive:&#039;&#039;&#039; com.openexchange.capability.guard-drive&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;core&amp;quot; Guard enabled a basic read functionality for Guard encrypted emails.  We recommend enabling this for all users, as this allows all recipients to read Guard emails sent to them.  Great opportunity for upsell.  Recipients with only Guard enabled can then do a secure reply to the sender, but they can&#039;t start a new email or add recipients.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Guard Mail&amp;quot; and &amp;quot;Guard Drive&amp;quot; are additional options for users.  &amp;quot;Guard Mail&amp;quot; allows users the full functionality of Guard emails.  &amp;quot;Guard Drive&amp;quot; allows for encryption and decryption of drive files.&lt;br /&gt;
&lt;br /&gt;
Each of those two Guard components is enabled for all users that have the according capability configured. Please note that users need to have the Drive permission set to use Guard Drive. So the users that have Guard Drive enabled must be a subset of those users with OX Drive permission. Since v7.6.0 we enforce this via the default configuration. Those capabilities can be activated for specific user by using the Open-Xchange provisioning scripts:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Mail:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-mail=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Drive:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-drive=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Guard Drive requires Guard Mail to be configured for the user as well.  In addition, these capabilities may be configured globally by editing the guard.properties file on the OX bakend&lt;br /&gt;
&lt;br /&gt;
== Optional ==&lt;br /&gt;
&lt;br /&gt;
=== SSL Configuration ===&lt;br /&gt;
&lt;br /&gt;
Per default the connection between the Guard backend and the configured Open-Xchange REST API host is unencrypted. Even though that Guard will never transmit unencrypted emails to or from the REST API you can optionally encrypt the whole communication between those two components by using SSL. To enforce Guard to use SSL in the communication between those two components enable the follwing configuration in Guard configuration file. &lt;br /&gt;
&lt;br /&gt;
  $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
  com.openexchange.guard.backend_ssl=true&lt;br /&gt;
&lt;br /&gt;
The Guard backend is most commonly placed behind a load balancer (APACHE or other) and defaults to HTTP for incoming and outgoing traffic, using the load balancer to do SSL with the users.  If you want Guard to use SSL for all communications, you need to set up the SSL key to use.&lt;br /&gt;
&lt;br /&gt;
Please note that you have to provide access to the certificates.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.useSSL: true&lt;br /&gt;
 com.openexchange.guard.SSLPort: 8443&lt;br /&gt;
 com.openexchange.guard.SSLKeyStore: //keystore location//&lt;br /&gt;
 com.openexchange.guard.SSLKeyName: //alias name here//&lt;br /&gt;
 com.openexchange.guard.SSLKeyPass: //ssl password//&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Enabling SSL might decrease performance and/or create more system load due to additional encoding of the HTTP streams.&lt;br /&gt;
&lt;br /&gt;
For details on SSL installation and configuration, please see [[AppSuite:GuardSSL|OX Guard SSL Installation]]&lt;br /&gt;
&lt;br /&gt;
== Recipient key detection ==&lt;br /&gt;
&lt;br /&gt;
=== Local ===&lt;br /&gt;
&lt;br /&gt;
Guard needs to determine if an email recipients email address is an internal or external (non-ox) user.  &lt;br /&gt;
&lt;br /&gt;
To detect if the recipient is an account on the same OX Guard system there is a mechanism needed to map a recipient mail address to the correct local OX context. The default implementation delivered in the product achieves that by looking up the mail domain (@example.com) within the list of context mappings. That is at least not possible in case of ISPs where different users/contexts use the same mail domain. In case your OX system does not use mail domains in context mappings it is required to deploy an OX OSGi bundle implementing the com.openexchange.mailmapping.MailResolver class or by interfacing Guard with your mail resolver system.&lt;br /&gt;
Please see [[Appsuite:GuardMailResolver|OX Guard Mail Resolver]] for details&lt;br /&gt;
&lt;br /&gt;
=== External ===&lt;br /&gt;
&lt;br /&gt;
Starting with Guard 2.0, Guard will use public PGP Key servers if configured to find PGP Public keys.  In addition, Guard will also look up SRV records for PGP Key servers for a recipients domain.  This follows the standards [http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00#page-9 OpenPGP Draft].&lt;br /&gt;
&lt;br /&gt;
External PGP servers to use can be configured in the guard.properties file on the Guard servers.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.publicPGPDirectory = hkp://keys.gnupg.net:11371, hkp://pgp.mit.edu:11371&lt;br /&gt;
&lt;br /&gt;
If you would like this Guard installation discoverable by other Guard servers, then create a SRV record for each domain (&amp;quot;example.com&amp;quot; in this illustration)&lt;br /&gt;
 &lt;br /&gt;
 _hkp._tcp.open-xchange.com. 28800 IN    SRV     10 1 80 appsuite.example.com.&lt;br /&gt;
&lt;br /&gt;
You will also need to make additional entries in the apache proxy_http.conf file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardpgp&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all, add&lt;br /&gt;
        BalancerMember http://guardserver:8080/pgp timeout=1800 smax=0 ttl=60 retry=60 loadfactor=50 route=OX3&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
   &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy /pks&amp;gt;&lt;br /&gt;
        ProxyPass balancer://oxguardpgp&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note&#039;&#039;&#039; PGP Public key servers by default append use the url server/pks when the record is obtained from a SRV record.  The proxy above routes anything with the apache domain/pks to the Oxguard PGP server&lt;br /&gt;
&lt;br /&gt;
== Clustering ==&lt;br /&gt;
&lt;br /&gt;
You can run multiple OX Guard servers in your environment to ensure high availability or enhance scalability. OX Guard integrates seamlessly into the existing Open-Xchange infrastructure by using the existing interface standards and is therefor transparent to the environment. A couple of things have to be prepared in order to loosely couple OX Guard servers with Open-Xchange servers in a cluster.&lt;br /&gt;
&lt;br /&gt;
=== MySQL ===&lt;br /&gt;
&lt;br /&gt;
The MySQL servers need to be configured in order to allow access to the configdb of Open-Xchange. To do so you need to set the following configuration in the MySQL my.cnf:&lt;br /&gt;
&lt;br /&gt;
 bind = 0.0.0.0&lt;br /&gt;
&lt;br /&gt;
This allows the Guard backend to bind to the MySQL host which is configured in the guard.properties file with com.openexchange.guard.configdbHostname. After the bind for the MySQL instance is configured and the OX Guard backend would be able to connect to the configured host, you have to grant access for the OX Guard service on the MySQL instance to manage the databases. Do so by connecting to the MySQL server via the mysql client. Authenticate if necessary and execute the following, please note that you have to modify the hostname / IP address of the client who should be able to connect to this database, it should include all possible OX Guard servers:&lt;br /&gt;
&lt;br /&gt;
 GRANT ALL PRIVILEGES ON *.* TO &#039;openexchange&#039;@&#039;oxguard.example.com&#039; IDENTIFIED BY ‘secret’;&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
OX Guard uses the Open-Xchange REST API to store and fetch data from the Open-Xchange databases. The REST API is a servlet running in the Grizzly container. By default it is not exposed as a servlet through Apache and is only accessibly via port 8009. In order to use Apache&#039;s load balancing via mod_proxy we need to add a servlet called &amp;quot;preliminary&amp;quot; to proxy_http.conf, example based on a clustered mod_proxy configuration:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Location /preliminary&amp;gt;&lt;br /&gt;
      Order Deny,Allow&lt;br /&gt;
      Deny from all&lt;br /&gt;
      # Only allow access from Guard servers within the network. Do not expose this&lt;br /&gt;
      # location outside of your network. In case you use a load balancing service in front&lt;br /&gt;
      # of your Apache infrastructure you should make sure that access to /preliminary will&lt;br /&gt;
      # be blocked from the internet / outside clients. Examples:&lt;br /&gt;
      # Allow from 192.168.0.1&lt;br /&gt;
      # Allow from 192.168.1.1 192.168.1.2&lt;br /&gt;
      # Allow from 192.168.0.&lt;br /&gt;
      ProxyPass /preliminary balancer://oxcluster/preliminary&lt;br /&gt;
 &amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that the balancer is properly configured in the mod_proxy configuration. Examples on how to do so can be found in our clustering configuration for Open-Xchange AppSuite. Like explained in the example above, please make sure that this location is only available in your internal network, there is no need to expose /preliminary to the public, it is only used by Guard servers to connect to the OX backend. If you have a load balancer in front of the Apache cluster you should consider blocking access to /preliminary from WAN to restrict access to the servlet to internal network services only.&lt;br /&gt;
&lt;br /&gt;
Now add the OX Guard BalancerMembers to the oxguard balancer configuration (also in proxy_http.conf) to address all your OX Guard nodes in the cluster in this balancer configuration. The configuration has to be applied to all Apache nodes within the cluster.&lt;br /&gt;
&lt;br /&gt;
If the Apache server is a dedicated server / instance you also have to install the OX Guard UI-Static package on all Apache nodes in the cluster in order to provide static files like images or CSS to the OX Guard client. Example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Disable the Open-Xchange IPCheck for session verification. This is required because OX Guard will use the users session cookie to connect to the Open-Xchange REST API, but as a different IP address than the OX Guard server has been used during authentication the request would fail if you don&#039;t disable the IPCheck:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
and set:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.IPCheck=false&lt;br /&gt;
&lt;br /&gt;
The OX Guard UI package has to be installed on all Open-Xchange backend nodes as well, example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui&lt;br /&gt;
&lt;br /&gt;
Restart the Open-Xchange service afterwards.&lt;br /&gt;
&lt;br /&gt;
=== OX Guard ===&lt;br /&gt;
&lt;br /&gt;
For details in clustering Guard servers, please see [[AppSuite:GuardCluster | OxGuard Clustering]] .  It is critical that all Guard servers have the same oxguardpass file.  Please see the clustering link for details.  Do not run ./guard init on more than one server.&lt;br /&gt;
&lt;br /&gt;
After all the services like MySQL, Apache and Open-Xchange have been configured you need to update the OX Guard backend configuration to point to the correct API endpoints. Set the REST API endpoint to an Apache server by setting the following value in /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=apache.example.com&lt;br /&gt;
&lt;br /&gt;
Per default Guard will try to connect to port 8009 to this host, but as we configured the REST API to be proxies thorugh the serblet /preliminary on every Apache we now also need to change the target port for the REST API. You can do so by adding the following line into /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxBackendPort=80&lt;br /&gt;
&lt;br /&gt;
Please also change all settings in regards to MySQL like com.openexchange.guard.configdbHostname, com.openexchange.guard.oxguardDatabaseHostname, com.openexchange.guard.databaseUsername or com.openexchange.guard.databasePassword. Afterwards restart the OX Guard service and check the logfile if the OX Guard backend is able to connect to the configured REST API.&lt;br /&gt;
&lt;br /&gt;
== Multi Node ==&lt;br /&gt;
&lt;br /&gt;
If you have multiple OX and Guard installations, please see the following documentation [[AppSuite:OX_Guard_Modular|OX Guard Modular Setup]]&lt;br /&gt;
&lt;br /&gt;
= Support API =&lt;br /&gt;
&lt;br /&gt;
The OX Guard Support API enables administrative access to various functions for maintaining OX Guard from a client in a role as a support employee. A client has to do a BASIC AUTH authentication in order to access the API. Username and password can be configured in the guard.properties file using the following settings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    # Specify the username and password for accessing the Support API of Guard&lt;br /&gt;
    com.openexchange.guard.supportapiusername=&lt;br /&gt;
    com.openexchange.guard.supportapipassword=&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In contrast to the rest of the OX Guard requests, the OX Guard support API requests are accessible using: /guardsupport. This distinction allows more flexible configuration since the support API should not always be accessible from everywhere. But if you want to expose the Guard Support API using Apache a very basic Apache configuration could look like this:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning&#039;&#039;&#039; Exposing the support API to the internet could be huge security risk.  Only add to apache if you know what you are doing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass http://localhost:8080/guardsupport                                                    &lt;br /&gt;
        #...&lt;br /&gt;
   &amp;lt;/Location&amp;gt;      &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it might also be preferable to add a new balancer directive for guardsupport&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass balancer://oxguardsupport                                                           &lt;br /&gt;
 &amp;lt;/Location&amp;gt; &lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardsupport&amp;gt;                                                                &lt;br /&gt;
       #...&lt;br /&gt;
        BalancerMember http://localhost:8080/guardsupport #...&lt;br /&gt;
       #...&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reset password ===&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=reset_password&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Performs a password reset and sends a new random generated password to a specified email address by the user or a default address if the user did not specify an email address. The reset password function is currently not available for guest users.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to reset the password for&lt;br /&gt;
* &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; (optional) – The email address to send the new password to, if the user did not specify a secondary email address&lt;br /&gt;
&lt;br /&gt;
=== Expose key ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=expose_key&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Marks a deleted user key temporary as “exposed” and creates a unique URL for downloading the exposed key.&lt;br /&gt;
Automatic resetting of exposed keys to &amp;quot;not exposed&amp;quot; is scheduled once a day and resets all exposed keys which have been exposed before X hours, where X can be configured using com.openexchange.guard.exposedKeyDurationInHours in the guard.properties files.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to expose the deleted keys for&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; – The context id&lt;br /&gt;
&lt;br /&gt;
Response:&lt;br /&gt;
An URL pointing to the downloadable exposed keys&lt;br /&gt;
&lt;br /&gt;
=== Delete user ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=delete_user&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Deletes all keys related to a certain user. The keys are backed up and can be exposed using the “expose_key” call.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;user_id&amp;lt;/code&amp;gt; – The user&#039;s id&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; - The context id&lt;br /&gt;
&lt;br /&gt;
= Customization =&lt;br /&gt;
&lt;br /&gt;
Guard&#039;s templates are customizable at the user and context level.  Please see [[AppSuite:GuardCustomization| Customization]] for details&lt;br /&gt;
&lt;br /&gt;
= Entropy =&lt;br /&gt;
&lt;br /&gt;
Guard requires entropy (randomness) to generate the private/public keys that are used.  Depending on the server and it&#039;s environment, this may become a problem.  Please see [[AppSuite:GuardEntropy | Entropy]] for a possible solution&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21295</id>
		<title>AppSuite:OX Guard</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21295"/>
		<updated>2016-01-12T15:20:17Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: Added Update Repository&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Guard =&lt;br /&gt;
&lt;br /&gt;
OX Guard is a fully integrated security add-on to OX App Suite that provides end users with a flexible email and file encryption solution. OX Guard is a highly scalable, multi server, feature rich solution that is so simple-to-use that end users will actually use it. With a single click a user can take control of their security and send secure emails and share encrypted files. This can be done from any device to both OX App Suite and non-OX App Suite users. &lt;br /&gt;
&lt;br /&gt;
OX Guard uses standard PGP encryption for the encryption of email and files. PGP has been around for a long time, yet has not really caught on with the masses. This is generally blamed on the confusion and complications of managing the keys, understanding trust, PGP format types, and lack of trusted central key repositories. Guard simplifies all of this, making PGP encryption as easy as a one click process, with no keys to keep track of, yet the options of advanced PGP management for those that know how.&lt;br /&gt;
&lt;br /&gt;
This article will guide you through the installation of Guard and describes the basic configuration and software requirements. As it is intended as a quick walk-through it assumes an existing installation of the operating system including a single server App Suite setup as well as average system administration skills. This guide will also show you how to setup a basic installation with none of the typically used distributed environment settings. The objective of this guide is:&lt;br /&gt;
&lt;br /&gt;
* To setup a single server installation&lt;br /&gt;
* To setup a single Guard instance on an existing Open-Xchange installation, no cluster&lt;br /&gt;
* To use the database service on the existing Open-Xchange installation for Guard, no replication&lt;br /&gt;
* To provide a basic configuration setup, no mailserver configuration&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Simple security at the touch of a button&lt;br /&gt;
* Provides user based security - Separate from provider&lt;br /&gt;
* Supplementary security to Provider based security - Layered&lt;br /&gt;
* Powerful features yet simple to use and understand&lt;br /&gt;
* Security - Inside and outside of the OX environment&lt;br /&gt;
* Email and Drive integration&lt;br /&gt;
* Uses proven PGP security&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
If an OX App Suite customer would like to evaluate OX Guard integration, the first step is to contact OX Sales. OX Sales will then work on the request and send prices and license/API (for the hosted infrastructure) key details to the customer.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
Please review following URL for remaining requirements  &lt;br /&gt;
&lt;br /&gt;
Please review [[AppSuite:OX_System_Requirements#OX_Guard|OX Guard Requirements]] for a full list of requirements.&lt;br /&gt;
&lt;br /&gt;
Since OX Guard is a Microservice it can either be added to an existing Open-Xchange installation or it can be deployed on a dedicated environment without having any of the other Open-Xchange App Suite core services installed. OX App Suite v7.6.0 or later is required to operate this extension both in a single or multi server environments.&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
* Open-Xchange REST API&lt;br /&gt;
* Grizzly HTTP connector (open-xchange-grizzly)&lt;br /&gt;
* A supported Java Virtual Machine (Java 7)&lt;br /&gt;
* An Open-Xchange App Suite installation v7.6.0 or later&lt;br /&gt;
* Please Note: To get access to the latest minor features and bug fixes, you need to have a valid license. The article [[AppSuite:UpdatingOXPackages|Updating OX-Packages]] explains how that can be done.&lt;br /&gt;
&lt;br /&gt;
== Important Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Customization ===&lt;br /&gt;
&lt;br /&gt;
OX Guard version supports branding / theming using the configuration cascade, defining a templateID for a user or context.  Additional details will be provided in customization documentation. Check bottom of this page. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mail Resolver ===&lt;br /&gt;
&lt;br /&gt;
READ THIS VERY CAREFULLY; BEFORE PROCEEDING WITH GUARD INSTALLATION!&lt;br /&gt;
&lt;br /&gt;
The Guard installation must be able to determine if an email recipient is a local OX user or if it should be a guest account.  The default MailResolver uses the context domain name to do this.  On many installations, domains may extend across multiple context and multiple database shards.  In these cases, the default MailResolver won&#039;t work.  In addition, if a custom authentication package is used, the Mail Resolver will likely not work.&lt;br /&gt;
&lt;br /&gt;
Be sure to test the mail resolver using&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test email@domain &lt;br /&gt;
&lt;br /&gt;
to see if the mail Resolver works.&lt;br /&gt;
&lt;br /&gt;
If the test does not work, you will likely need a custom Mail Resolver.  Please see [[AppSuite:GuardMailResolver| Mail Resolver page]]&lt;br /&gt;
&lt;br /&gt;
This resolver software &#039;&#039;depends heavily on your local deployment&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Download and Installation =&lt;br /&gt;
&lt;br /&gt;
=== General ===&lt;br /&gt;
The installation of the open-xchange-rest package which is required for Guard will eventually execute database update tasks if installed and activated. Please take this into account.&lt;br /&gt;
&lt;br /&gt;
There are several components to the Guard service.  They can be all installed on the same server as the OX backend, or on a separate server.&lt;br /&gt;
&lt;br /&gt;
The components required for the OX backend are: open-xchange-rest, open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
The components required for the OX frontend are: open-xchange-guard-ui open-xchange-guard-ui-static and optionally open-xchange-guard-help-en-us (or preferred language for help files)&lt;br /&gt;
&lt;br /&gt;
The components required for the Guard server (may be on same as the backend) open-xchange-guard&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the installation of the OX Guard at your already available environment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; By default, OX Guard generates the link to the secure content for external recipients on the basis of the local fully qualified domain name (FQDN). If the local FQDN is not reachable from the internet, it has to be specified manually. This can be done by setting a UCR variable, e.g. via the UMC module &amp;quot;Univention Configuration Registry&amp;quot;. The variable has to contain the external FQDN of the OX Guard system:&lt;br /&gt;
&lt;br /&gt;
 oxguard/cfg/guard.properties/com.openexchange.guard.externalEmailURL=HOSTNAME.DOMAINNAME&lt;br /&gt;
&lt;br /&gt;
= Update OX Guard =&lt;br /&gt;
&lt;br /&gt;
Before upgrading Guard to version 2.0.0 you need to install the package &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; on all groupware nodes used by Guard throught the REST api. In other words, every groupware node have &amp;lt;code&amp;gt;open-xchange-rest&amp;lt;/code&amp;gt; installed, now needs to have &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; installed.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the update of the OX Guard.&lt;br /&gt;
&lt;br /&gt;
=== Update OX Guard v1.2 to OX Guard v2.0.0 ===&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: &#039;&#039;&#039;&#039;&#039;If you did not run GUARD 1.2 already, you DO NOT NEED to execute the &amp;quot;upgradePGP&amp;quot; command!&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you have an existing Guard v1.2 database, and are upgrading to v2.0, additional PGP key table need to be created and populated.  Once the Guard package has been updated, type&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard upgradePGP&lt;br /&gt;
&lt;br /&gt;
This process will alter the needed database tables and populate the needed lookup tables.  Guard 1.2 can continue to run in the background.  Once complete, Guard 2.0 can be started.&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
The following gives an overview of the most important settings to enable Guard for users on the Open-Xchange installation. Some of those settings have to be modified in order to establish the database and REST API access from the Guard service. All settings relating to the Guard backend component are located in the configuration file guard.properties located in /opt/open-xchange/guard/etc. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the database username and password). Please refer to the inline documentation of the configuration file for more advanced options.  Additional information can be found here [[AppSuite:GuardConfiguration|Guard Configuration]]&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
Open-Xchange config_db host - Guard will establish a connection to the config_db&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.configdbHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database for storing Guard user information, main lookup tables&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardDatabaseHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database that stores keys for guest users.  May be the same as above.  New guest shards will be created on this database as needed.  If not supplied, will use the oxguardDatabaseHostname&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardShardDatabase=localhost&lt;br /&gt;
&lt;br /&gt;
Username and Password for the databases above&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.databaseUsername=openexchange&lt;br /&gt;
 com.openexchange.guard.databasePassword=db_password&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API host&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API username and password (need to be defined in the OX backend in the &amp;quot;Configure services&amp;quot; below)&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiUsername=apiusername&lt;br /&gt;
 com.openexchange.guard.restApiPassword=apipassword&lt;br /&gt;
&lt;br /&gt;
External URL for this Open-Xchange installation. This setting will be used to generate the link to the secure content for external recipients&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.externalEmailURL=URL_TO_OX&lt;br /&gt;
&lt;br /&gt;
== Configure services ==&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
Configure the mod_proxy_http module by adding the Guard API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Redhat Enterprise Linux 6 or CentOS 6&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/httpd/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Debian GNU/Linux 7.0 and SUSE Linux Enterprise Server 11&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/apache2/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguard&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all&amp;lt;br&amp;gt;&lt;br /&gt;
        BalancerMember http://localhost:8080/oxguard timeout=1800 smax=0 ttl=60 retry=60 loadfactor=100 route=OX1&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ProxyPass /appsuite/api/oxguard balancer://oxguard&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; The Guard API settings must be inserted before the existing “&amp;lt;Proxy /appsuite/api&amp;gt;” parameter.&lt;br /&gt;
&lt;br /&gt;
After the configuration is done, restart the Apache webserver&lt;br /&gt;
&lt;br /&gt;
 $ apachectl restart&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Starting in Guard 2.0, there is an administrative component to the Open-Xchange backend that notifies Guard when a user or context is deleted.  Install the package open-xchange-guard-backend-plugin on all OX backend servers.  On a debian install, this command would be:&lt;br /&gt;
&lt;br /&gt;
 apt-get install open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
There is also a configuration file for the OX backend regarding some general Guard settings.  Please remove comments in front of the following settings to the configuration file guard.properties on the Open-Xchange backend servers:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # OX GUard general permission, required to activate Guard in the AppSuite UI.&lt;br /&gt;
 com.openexchange.capability.guard=true&lt;br /&gt;
 &lt;br /&gt;
 # Default theme template id for all users that have no custom template id configured.&lt;br /&gt;
 com.openexchange.guard.templateID=0&lt;br /&gt;
&lt;br /&gt;
Configure the API username and password that you assigned to Guard in the server.properties file&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
 # Specify the user name used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.login=apiusername&lt;br /&gt;
 &lt;br /&gt;
 # Specify the password used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.password=apipassword&lt;br /&gt;
&lt;br /&gt;
Finally, the OX backend needs to know where the Guard server is located.  This is used to notify the Guard server of changes in users, and to send emails marked for signature.  The URL for the Guard server should include the url suffix /guardadmin .  In the event of a cluster setup, any Guard server can be referenced here, as it is not session specific, though ideally would have a HTTP load balancer/failover URL&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # Specifies the URI to the OX Guard end-point; e.g. http://guard.host.invalid:8081/guardadmin&lt;br /&gt;
 # Default is empty&lt;br /&gt;
 com.openexchange.guard.endpoint=http://guardserver:8080/guardadmin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart the OX backend&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange restart&lt;br /&gt;
&lt;br /&gt;
=== SELinux ===&lt;br /&gt;
&lt;br /&gt;
Running SELinux prohibits your local Open-Xchange backend service to connect to localhost:8080, which is where the Guard backend service listens to. In order to allow localhost connections to 8080 execute the following:&lt;br /&gt;
&lt;br /&gt;
 $ setsebool -P httpd_can_network_connect 1&lt;br /&gt;
&lt;br /&gt;
=== RHEL (Redhat) ===&lt;br /&gt;
&lt;br /&gt;
Occasionally, the encoding of special characters in the translation files don&#039;t work properly in RHEL.  To fix this, please edit the file /opt/open-xchange/guard/etc/ox-scriptconf.sh and add to the JAVA_XTRAOPTS -DFile.encoding=UTF-8&lt;br /&gt;
&lt;br /&gt;
  JAVA_XTRAOPTS=&amp;quot;-Xmx1024m -Dfile.encoding=UTF-8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Initiating the Guard database and key store ==&lt;br /&gt;
&lt;br /&gt;
Once the Guard configuration (database and backend configuration) and the service configuration has been applied, the Guard administration script needs to be executed in order to create the Guard databases. The administration script also takes care of the creation of the master keys and the master password file in /opt/open-xchange/guard. The initiation only needs to be done once for a multi server setup, for details please see “Optional / Clustering”.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; If you run a cluster of OX / Guard nodes, only execute this command on ONE node. Not on all nodes!  See [[AppSuite:GuardCluster | Ox Guard Clustering]] for details.&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard init&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; It is important to understand that the master password file located at /opt/open-xchange/guard/oxguardpass is required to reset user passwords, without them the administrator will not be able to reset user passwords anymore in the future. The file contains the passwords used to encrypt the master database key, as well as passwords used to encrypt protected data in the users table.  It must be the same on all Guard servers.&lt;br /&gt;
&lt;br /&gt;
== Test Setup ==&lt;br /&gt;
&lt;br /&gt;
Not required, but it is a good idea to test the Guard setup before starting the initialization.  The test function will verify that Guard has a good connection to the OX backend, and that it can resolve email addresses to users.&lt;br /&gt;
&lt;br /&gt;
To test, use an email address that exists on the OX backend (john@example.com for this example)&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test john@example.com&lt;br /&gt;
&lt;br /&gt;
Guard should return information from the OX backend regarding the user associated with john@example.com.  Problems resolving information for the user should be resolved before using Guard.  Check Rest API passwords and settings if errors returned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start Guard ==&lt;br /&gt;
&lt;br /&gt;
The services have been configured and the database has been initiated, it&#039;s time to start Guard&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange-guard start&lt;br /&gt;
&lt;br /&gt;
== Enabling Guard for Users ==&lt;br /&gt;
&lt;br /&gt;
Guard provides two capabilities for users in the environment as well as a basic &amp;quot;core&amp;quot; level:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Guard:&#039;&#039;&#039; com.openexchange.capability.guard&lt;br /&gt;
* &#039;&#039;&#039;Guard Mail:&#039;&#039;&#039; com.openexchange.capability.guard-mail&lt;br /&gt;
* &#039;&#039;&#039;Guard Drive:&#039;&#039;&#039; com.openexchange.capability.guard-drive&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;core&amp;quot; Guard enabled a basic read functionality for Guard encrypted emails.  We recommend enabling this for all users, as this allows all recipients to read Guard emails sent to them.  Great opportunity for upsell.  Recipients with only Guard enabled can then do a secure reply to the sender, but they can&#039;t start a new email or add recipients.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Guard Mail&amp;quot; and &amp;quot;Guard Drive&amp;quot; are additional options for users.  &amp;quot;Guard Mail&amp;quot; allows users the full functionality of Guard emails.  &amp;quot;Guard Drive&amp;quot; allows for encryption and decryption of drive files.&lt;br /&gt;
&lt;br /&gt;
Each of those two Guard components is enabled for all users that have the according capability configured. Please note that users need to have the Drive permission set to use Guard Drive. So the users that have Guard Drive enabled must be a subset of those users with OX Drive permission. Since v7.6.0 we enforce this via the default configuration. Those capabilities can be activated for specific user by using the Open-Xchange provisioning scripts:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Mail:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-mail=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Drive:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-drive=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Guard Drive requires Guard Mail to be configured for the user as well.  In addition, these capabilities may be configured globally by editing the guard.properties file on the OX bakend&lt;br /&gt;
&lt;br /&gt;
== Optional ==&lt;br /&gt;
&lt;br /&gt;
=== SSL Configuration ===&lt;br /&gt;
&lt;br /&gt;
Per default the connection between the Guard backend and the configured Open-Xchange REST API host is unencrypted. Even though that Guard will never transmit unencrypted emails to or from the REST API you can optionally encrypt the whole communication between those two components by using SSL. To enforce Guard to use SSL in the communication between those two components enable the follwing configuration in Guard configuration file. &lt;br /&gt;
&lt;br /&gt;
  $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
  com.openexchange.guard.backend_ssl=true&lt;br /&gt;
&lt;br /&gt;
The Guard backend is most commonly placed behind a load balancer (APACHE or other) and defaults to HTTP for incoming and outgoing traffic, using the load balancer to do SSL with the users.  If you want Guard to use SSL for all communications, you need to set up the SSL key to use.&lt;br /&gt;
&lt;br /&gt;
Please note that you have to provide access to the certificates.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.useSSL: true&lt;br /&gt;
 com.openexchange.guard.SSLPort: 8443&lt;br /&gt;
 com.openexchange.guard.SSLKeyStore: //keystore location//&lt;br /&gt;
 com.openexchange.guard.SSLKeyName: //alias name here//&lt;br /&gt;
 com.openexchange.guard.SSLKeyPass: //ssl password//&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Enabling SSL might decrease performance and/or create more system load due to additional encoding of the HTTP streams.&lt;br /&gt;
&lt;br /&gt;
For details on SSL installation and configuration, please see [[AppSuite:GuardSSL|OX Guard SSL Installation]]&lt;br /&gt;
&lt;br /&gt;
== Recipient key detection ==&lt;br /&gt;
&lt;br /&gt;
=== Local ===&lt;br /&gt;
&lt;br /&gt;
Guard needs to determine if an email recipients email address is an internal or external (non-ox) user.  &lt;br /&gt;
&lt;br /&gt;
To detect if the recipient is an account on the same OX Guard system there is a mechanism needed to map a recipient mail address to the correct local OX context. The default implementation delivered in the product achieves that by looking up the mail domain (@example.com) within the list of context mappings. That is at least not possible in case of ISPs where different users/contexts use the same mail domain. In case your OX system does not use mail domains in context mappings it is required to deploy an OX OSGi bundle implementing the com.openexchange.mailmapping.MailResolver class or by interfacing Guard with your mail resolver system.&lt;br /&gt;
Please see [[Appsuite:GuardMailResolver|OX Guard Mail Resolver]] for details&lt;br /&gt;
&lt;br /&gt;
=== External ===&lt;br /&gt;
&lt;br /&gt;
Starting with Guard 2.0, Guard will use public PGP Key servers if configured to find PGP Public keys.  In addition, Guard will also look up SRV records for PGP Key servers for a recipients domain.  This follows the standards [http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00#page-9 OpenPGP Draft].&lt;br /&gt;
&lt;br /&gt;
External PGP servers to use can be configured in the guard.properties file on the Guard servers.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.publicPGPDirectory = hkp://keys.gnupg.net:11371, hkp://pgp.mit.edu:11371&lt;br /&gt;
&lt;br /&gt;
If you would like this Guard installation discoverable by other Guard servers, then create a SRV record for each domain (&amp;quot;example.com&amp;quot; in this illustration)&lt;br /&gt;
 &lt;br /&gt;
 _hkp._tcp.open-xchange.com. 28800 IN    SRV     10 1 80 appsuite.example.com.&lt;br /&gt;
&lt;br /&gt;
You will also need to make additional entries in the apache proxy_http.conf file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardpgp&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all, add&lt;br /&gt;
        BalancerMember http://guardserver:8080/pgp timeout=1800 smax=0 ttl=60 retry=60 loadfactor=50 route=OX3&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
   &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy /pks&amp;gt;&lt;br /&gt;
        ProxyPass balancer://oxguardpgp&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note&#039;&#039;&#039; PGP Public key servers by default append use the url server/pks when the record is obtained from a SRV record.  The proxy above routes anything with the apache domain/pks to the Oxguard PGP server&lt;br /&gt;
&lt;br /&gt;
== Clustering ==&lt;br /&gt;
&lt;br /&gt;
You can run multiple OX Guard servers in your environment to ensure high availability or enhance scalability. OX Guard integrates seamlessly into the existing Open-Xchange infrastructure by using the existing interface standards and is therefor transparent to the environment. A couple of things have to be prepared in order to loosely couple OX Guard servers with Open-Xchange servers in a cluster.&lt;br /&gt;
&lt;br /&gt;
=== MySQL ===&lt;br /&gt;
&lt;br /&gt;
The MySQL servers need to be configured in order to allow access to the configdb of Open-Xchange. To do so you need to set the following configuration in the MySQL my.cnf:&lt;br /&gt;
&lt;br /&gt;
 bind = 0.0.0.0&lt;br /&gt;
&lt;br /&gt;
This allows the Guard backend to bind to the MySQL host which is configured in the guard.properties file with com.openexchange.guard.configdbHostname. After the bind for the MySQL instance is configured and the OX Guard backend would be able to connect to the configured host, you have to grant access for the OX Guard service on the MySQL instance to manage the databases. Do so by connecting to the MySQL server via the mysql client. Authenticate if necessary and execute the following, please note that you have to modify the hostname / IP address of the client who should be able to connect to this database, it should include all possible OX Guard servers:&lt;br /&gt;
&lt;br /&gt;
 GRANT ALL PRIVILEGES ON *.* TO &#039;openexchange&#039;@&#039;oxguard.example.com&#039; IDENTIFIED BY ‘secret’;&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
OX Guard uses the Open-Xchange REST API to store and fetch data from the Open-Xchange databases. The REST API is a servlet running in the Grizzly container. By default it is not exposed as a servlet through Apache and is only accessibly via port 8009. In order to use Apache&#039;s load balancing via mod_proxy we need to add a servlet called &amp;quot;preliminary&amp;quot; to proxy_http.conf, example based on a clustered mod_proxy configuration:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Location /preliminary&amp;gt;&lt;br /&gt;
      Order Deny,Allow&lt;br /&gt;
      Deny from all&lt;br /&gt;
      # Only allow access from Guard servers within the network. Do not expose this&lt;br /&gt;
      # location outside of your network. In case you use a load balancing service in front&lt;br /&gt;
      # of your Apache infrastructure you should make sure that access to /preliminary will&lt;br /&gt;
      # be blocked from the internet / outside clients. Examples:&lt;br /&gt;
      # Allow from 192.168.0.1&lt;br /&gt;
      # Allow from 192.168.1.1 192.168.1.2&lt;br /&gt;
      # Allow from 192.168.0.&lt;br /&gt;
      ProxyPass /preliminary balancer://oxcluster/preliminary&lt;br /&gt;
 &amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that the balancer is properly configured in the mod_proxy configuration. Examples on how to do so can be found in our clustering configuration for Open-Xchange AppSuite. Like explained in the example above, please make sure that this location is only available in your internal network, there is no need to expose /preliminary to the public, it is only used by Guard servers to connect to the OX backend. If you have a load balancer in front of the Apache cluster you should consider blocking access to /preliminary from WAN to restrict access to the servlet to internal network services only.&lt;br /&gt;
&lt;br /&gt;
Now add the OX Guard BalancerMembers to the oxguard balancer configuration (also in proxy_http.conf) to address all your OX Guard nodes in the cluster in this balancer configuration. The configuration has to be applied to all Apache nodes within the cluster.&lt;br /&gt;
&lt;br /&gt;
If the Apache server is a dedicated server / instance you also have to install the OX Guard UI-Static package on all Apache nodes in the cluster in order to provide static files like images or CSS to the OX Guard client. Example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Disable the Open-Xchange IPCheck for session verification. This is required because OX Guard will use the users session cookie to connect to the Open-Xchange REST API, but as a different IP address than the OX Guard server has been used during authentication the request would fail if you don&#039;t disable the IPCheck:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
and set:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.IPCheck=false&lt;br /&gt;
&lt;br /&gt;
The OX Guard UI package has to be installed on all Open-Xchange backend nodes as well, example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui&lt;br /&gt;
&lt;br /&gt;
Restart the Open-Xchange service afterwards.&lt;br /&gt;
&lt;br /&gt;
=== OX Guard ===&lt;br /&gt;
&lt;br /&gt;
For details in clustering Guard servers, please see [[AppSuite:GuardCluster | OxGuard Clustering]] .  It is critical that all Guard servers have the same oxguardpass file.  Please see the clustering link for details.  Do not run ./guard init on more than one server.&lt;br /&gt;
&lt;br /&gt;
After all the services like MySQL, Apache and Open-Xchange have been configured you need to update the OX Guard backend configuration to point to the correct API endpoints. Set the REST API endpoint to an Apache server by setting the following value in /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=apache.example.com&lt;br /&gt;
&lt;br /&gt;
Per default Guard will try to connect to port 8009 to this host, but as we configured the REST API to be proxies thorugh the serblet /preliminary on every Apache we now also need to change the target port for the REST API. You can do so by adding the following line into /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxBackendPort=80&lt;br /&gt;
&lt;br /&gt;
Please also change all settings in regards to MySQL like com.openexchange.guard.configdbHostname, com.openexchange.guard.oxguardDatabaseHostname, com.openexchange.guard.databaseUsername or com.openexchange.guard.databasePassword. Afterwards restart the OX Guard service and check the logfile if the OX Guard backend is able to connect to the configured REST API.&lt;br /&gt;
&lt;br /&gt;
== Multi Node ==&lt;br /&gt;
&lt;br /&gt;
If you have multiple OX and Guard installations, please see the following documentation [[AppSuite:OX_Guard_Modular|OX Guard Modular Setup]]&lt;br /&gt;
&lt;br /&gt;
= Support API =&lt;br /&gt;
&lt;br /&gt;
The OX Guard Support API enables administrative access to various functions for maintaining OX Guard from a client in a role as a support employee. A client has to do a BASIC AUTH authentication in order to access the API. Username and password can be configured in the guard.properties file using the following settings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    # Specify the username and password for accessing the Support API of Guard&lt;br /&gt;
    com.openexchange.guard.supportapiusername=&lt;br /&gt;
    com.openexchange.guard.supportapipassword=&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In contrast to the rest of the OX Guard requests, the OX Guard support API requests are accessible using: /guardsupport. This distinction allows more flexible configuration since the support API should not always be accessible from everywhere. But if you want to expose the Guard Support API using Apache a very basic Apache configuration could look like this:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning&#039;&#039;&#039; Exposing the support API to the internet could be huge security risk.  Only add to apache if you know what you are doing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass http://localhost:8080/guardsupport                                                    &lt;br /&gt;
        #...&lt;br /&gt;
   &amp;lt;/Location&amp;gt;      &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it might also be preferable to add a new balancer directive for guardsupport&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass balancer://oxguardsupport                                                           &lt;br /&gt;
 &amp;lt;/Location&amp;gt; &lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardsupport&amp;gt;                                                                &lt;br /&gt;
       #...&lt;br /&gt;
        BalancerMember http://localhost:8080/guardsupport #...&lt;br /&gt;
       #...&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reset password ===&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=reset_password&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Performs a password reset and sends a new random generated password to a specified email address by the user or a default address if the user did not specify an email address. The reset password function is currently not available for guest users.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to reset the password for&lt;br /&gt;
* &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; (optional) – The email address to send the new password to, if the user did not specify a secondary email address&lt;br /&gt;
&lt;br /&gt;
=== Expose key ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=expose_key&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Marks a deleted user key temporary as “exposed” and creates a unique URL for downloading the exposed key.&lt;br /&gt;
Automatic resetting of exposed keys to &amp;quot;not exposed&amp;quot; is scheduled once a day and resets all exposed keys which have been exposed before X hours, where X can be configured using com.openexchange.guard.exposedKeyDurationInHours in the guard.properties files.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to expose the deleted keys for&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; – The context id&lt;br /&gt;
&lt;br /&gt;
Response:&lt;br /&gt;
An URL pointing to the downloadable exposed keys&lt;br /&gt;
&lt;br /&gt;
=== Delete user ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=delete_user&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Deletes all keys related to a certain user. The keys are backed up and can be exposed using the “expose_key” call.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;user_id&amp;lt;/code&amp;gt; – The user&#039;s id&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; - The context id&lt;br /&gt;
&lt;br /&gt;
= Customization =&lt;br /&gt;
&lt;br /&gt;
Guard&#039;s templates are customizable at the user and context level.  Please see [[AppSuite:GuardCustomization| Customization]] for details&lt;br /&gt;
&lt;br /&gt;
= Entropy =&lt;br /&gt;
&lt;br /&gt;
Guard requires entropy (randomness) to generate the private/public keys that are used.  Depending on the server and it&#039;s environment, this may become a problem.  Please see [[AppSuite:GuardEntropy | Entropy]] for a possible solution&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21294</id>
		<title>AppSuite:OX Guard</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21294"/>
		<updated>2016-01-12T15:19:11Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: Added Update Repository&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Guard =&lt;br /&gt;
&lt;br /&gt;
OX Guard is a fully integrated security add-on to OX App Suite that provides end users with a flexible email and file encryption solution. OX Guard is a highly scalable, multi server, feature rich solution that is so simple-to-use that end users will actually use it. With a single click a user can take control of their security and send secure emails and share encrypted files. This can be done from any device to both OX App Suite and non-OX App Suite users. &lt;br /&gt;
&lt;br /&gt;
OX Guard uses standard PGP encryption for the encryption of email and files. PGP has been around for a long time, yet has not really caught on with the masses. This is generally blamed on the confusion and complications of managing the keys, understanding trust, PGP format types, and lack of trusted central key repositories. Guard simplifies all of this, making PGP encryption as easy as a one click process, with no keys to keep track of, yet the options of advanced PGP management for those that know how.&lt;br /&gt;
&lt;br /&gt;
This article will guide you through the installation of Guard and describes the basic configuration and software requirements. As it is intended as a quick walk-through it assumes an existing installation of the operating system including a single server App Suite setup as well as average system administration skills. This guide will also show you how to setup a basic installation with none of the typically used distributed environment settings. The objective of this guide is:&lt;br /&gt;
&lt;br /&gt;
* To setup a single server installation&lt;br /&gt;
* To setup a single Guard instance on an existing Open-Xchange installation, no cluster&lt;br /&gt;
* To use the database service on the existing Open-Xchange installation for Guard, no replication&lt;br /&gt;
* To provide a basic configuration setup, no mailserver configuration&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Simple security at the touch of a button&lt;br /&gt;
* Provides user based security - Separate from provider&lt;br /&gt;
* Supplementary security to Provider based security - Layered&lt;br /&gt;
* Powerful features yet simple to use and understand&lt;br /&gt;
* Security - Inside and outside of the OX environment&lt;br /&gt;
* Email and Drive integration&lt;br /&gt;
* Uses proven PGP security&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
If an OX App Suite customer would like to evaluate OX Guard integration, the first step is to contact OX Sales. OX Sales will then work on the request and send prices and license/API (for the hosted infrastructure) key details to the customer.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
Please review following URL for remaining requirements  &lt;br /&gt;
&lt;br /&gt;
Please review [[AppSuite:OX_System_Requirements#OX_Guard|OX Guard Requirements]] for a full list of requirements.&lt;br /&gt;
&lt;br /&gt;
Since OX Guard is a Microservice it can either be added to an existing Open-Xchange installation or it can be deployed on a dedicated environment without having any of the other Open-Xchange App Suite core services installed. OX App Suite v7.6.0 or later is required to operate this extension both in a single or multi server environments.&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
* Open-Xchange REST API&lt;br /&gt;
* Grizzly HTTP connector (open-xchange-grizzly)&lt;br /&gt;
* A supported Java Virtual Machine (Java 7)&lt;br /&gt;
* An Open-Xchange App Suite installation v7.6.0 or later&lt;br /&gt;
* Please Note: To get access to the latest minor features and bug fixes, you need to have a valid license. The article [[AppSuite:UpdatingOXPackages|Updating OX-Packages]] explains how that can be done.&lt;br /&gt;
&lt;br /&gt;
== Important Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Customization ===&lt;br /&gt;
&lt;br /&gt;
OX Guard version supports branding / theming using the configuration cascade, defining a templateID for a user or context.  Additional details will be provided in customization documentation. Check bottom of this page. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mail Resolver ===&lt;br /&gt;
&lt;br /&gt;
READ THIS VERY CAREFULLY; BEFORE PROCEEDING WITH GUARD INSTALLATION!&lt;br /&gt;
&lt;br /&gt;
The Guard installation must be able to determine if an email recipient is a local OX user or if it should be a guest account.  The default MailResolver uses the context domain name to do this.  On many installations, domains may extend across multiple context and multiple database shards.  In these cases, the default MailResolver won&#039;t work.  In addition, if a custom authentication package is used, the Mail Resolver will likely not work.&lt;br /&gt;
&lt;br /&gt;
Be sure to test the mail resolver using&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test email@domain &lt;br /&gt;
&lt;br /&gt;
to see if the mail Resolver works.&lt;br /&gt;
&lt;br /&gt;
If the test does not work, you will likely need a custom Mail Resolver.  Please see [[AppSuite:GuardMailResolver| Mail Resolver page]]&lt;br /&gt;
&lt;br /&gt;
This resolver software &#039;&#039;depends heavily on your local deployment&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Download and Installation =&lt;br /&gt;
&lt;br /&gt;
=== General ===&lt;br /&gt;
The installation of the open-xchange-rest package which is required for Guard will eventually execute database update tasks if installed and activated. Please take this into account.&lt;br /&gt;
&lt;br /&gt;
There are several components to the Guard service.  They can be all installed on the same server as the OX backend, or on a separate server.&lt;br /&gt;
&lt;br /&gt;
The components required for the OX backend are: open-xchange-rest, open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
The components required for the OX frontend are: open-xchange-guard-ui open-xchange-guard-ui-static and optionally open-xchange-guard-help-en-us (or preferred language for help files)&lt;br /&gt;
&lt;br /&gt;
The components required for the Guard server (may be on same as the backend) open-xchange-guard&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the installation of the OX Guard at your already available environment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; By default, OX Guard generates the link to the secure content for external recipients on the basis of the local fully qualified domain name (FQDN). If the local FQDN is not reachable from the internet, it has to be specified manually. This can be done by setting a UCR variable, e.g. via the UMC module &amp;quot;Univention Configuration Registry&amp;quot;. The variable has to contain the external FQDN of the OX Guard system:&lt;br /&gt;
&lt;br /&gt;
 oxguard/cfg/guard.properties/com.openexchange.guard.externalEmailURL=HOSTNAME.DOMAINNAME&lt;br /&gt;
&lt;br /&gt;
= Update OX Guard =&lt;br /&gt;
&lt;br /&gt;
Before upgrading Guard to version 2.0.0 you need to install the package &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; on all groupware nodes used by Guard throught the REST api. In other words, every groupware node have &amp;lt;code&amp;gt;open-xchange-rest&amp;lt;/code&amp;gt; installed, now needs to have &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; installed.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the update of the OX Guard.&lt;br /&gt;
&lt;br /&gt;
=== Update OX Guard v1.2 to OX Guard v2.0.0 ===&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: &#039;&#039;&#039;&#039;&#039;If you did not run GUARD 1.2 already, you DO NOT NEED to execute the &amp;quot;upgradePGP&amp;quot; command!&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you have an existing Guard v1.2 database, and are upgrading to v2.0, additional PGP key table need to be created and populated.  Once the Guard package has been updated, type&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard upgradePGP&lt;br /&gt;
&lt;br /&gt;
This process will alter the needed database tables and populate the needed lookup tables.  Guard 1.2 can continue to run in the background.  Once complete, Guard 2.0 can be started.&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
The following gives an overview of the most important settings to enable Guard for users on the Open-Xchange installation. Some of those settings have to be modified in order to establish the database and REST API access from the Guard service. All settings relating to the Guard backend component are located in the configuration file guard.properties located in /opt/open-xchange/guard/etc. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the database username and password). Please refer to the inline documentation of the configuration file for more advanced options.  Additional information can be found here [[AppSuite:GuardConfiguration|Guard Configuration]]&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
Open-Xchange config_db host - Guard will establish a connection to the config_db&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.configdbHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database for storing Guard user information, main lookup tables&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardDatabaseHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database that stores keys for guest users.  May be the same as above.  New guest shards will be created on this database as needed.  If not supplied, will use the oxguardDatabaseHostname&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardShardDatabase=localhost&lt;br /&gt;
&lt;br /&gt;
Username and Password for the databases above&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.databaseUsername=openexchange&lt;br /&gt;
 com.openexchange.guard.databasePassword=db_password&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API host&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API username and password (need to be defined in the OX backend in the &amp;quot;Configure services&amp;quot; below)&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiUsername=apiusername&lt;br /&gt;
 com.openexchange.guard.restApiPassword=apipassword&lt;br /&gt;
&lt;br /&gt;
External URL for this Open-Xchange installation. This setting will be used to generate the link to the secure content for external recipients&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.externalEmailURL=URL_TO_OX&lt;br /&gt;
&lt;br /&gt;
== Configure services ==&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
Configure the mod_proxy_http module by adding the Guard API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Redhat Enterprise Linux 6 or CentOS 6&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/httpd/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Debian GNU/Linux 7.0 and SUSE Linux Enterprise Server 11&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/apache2/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguard&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all&amp;lt;br&amp;gt;&lt;br /&gt;
        BalancerMember http://localhost:8080/oxguard timeout=1800 smax=0 ttl=60 retry=60 loadfactor=100 route=OX1&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ProxyPass /appsuite/api/oxguard balancer://oxguard&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; The Guard API settings must be inserted before the existing “&amp;lt;Proxy /appsuite/api&amp;gt;” parameter.&lt;br /&gt;
&lt;br /&gt;
After the configuration is done, restart the Apache webserver&lt;br /&gt;
&lt;br /&gt;
 $ apachectl restart&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Starting in Guard 2.0, there is an administrative component to the Open-Xchange backend that notifies Guard when a user or context is deleted.  Install the package open-xchange-guard-backend-plugin on all OX backend servers.  On a debian install, this command would be:&lt;br /&gt;
&lt;br /&gt;
 apt-get install open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
There is also a configuration file for the OX backend regarding some general Guard settings.  Please remove comments in front of the following settings to the configuration file guard.properties on the Open-Xchange backend servers:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # OX GUard general permission, required to activate Guard in the AppSuite UI.&lt;br /&gt;
 com.openexchange.capability.guard=true&lt;br /&gt;
 &lt;br /&gt;
 # Default theme template id for all users that have no custom template id configured.&lt;br /&gt;
 com.openexchange.guard.templateID=0&lt;br /&gt;
&lt;br /&gt;
Configure the API username and password that you assigned to Guard in the server.properties file&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
 # Specify the user name used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.login=apiusername&lt;br /&gt;
 &lt;br /&gt;
 # Specify the password used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.password=apipassword&lt;br /&gt;
&lt;br /&gt;
Finally, the OX backend needs to know where the Guard server is located.  This is used to notify the Guard server of changes in users, and to send emails marked for signature.  The URL for the Guard server should include the url suffix /guardadmin .  In the event of a cluster setup, any Guard server can be referenced here, as it is not session specific, though ideally would have a HTTP load balancer/failover URL&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # Specifies the URI to the OX Guard end-point; e.g. http://guard.host.invalid:8081/guardadmin&lt;br /&gt;
 # Default is empty&lt;br /&gt;
 com.openexchange.guard.endpoint=http://guardserver:8080/guardadmin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart the OX backend&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange restart&lt;br /&gt;
&lt;br /&gt;
=== SELinux ===&lt;br /&gt;
&lt;br /&gt;
Running SELinux prohibits your local Open-Xchange backend service to connect to localhost:8080, which is where the Guard backend service listens to. In order to allow localhost connections to 8080 execute the following:&lt;br /&gt;
&lt;br /&gt;
 $ setsebool -P httpd_can_network_connect 1&lt;br /&gt;
&lt;br /&gt;
=== RHEL (Redhat) ===&lt;br /&gt;
&lt;br /&gt;
Occasionally, the encoding of special characters in the translation files don&#039;t work properly in RHEL.  To fix this, please edit the file /opt/open-xchange/guard/etc/ox-scriptconf.sh and add to the JAVA_XTRAOPTS -DFile.encoding=UTF-8&lt;br /&gt;
&lt;br /&gt;
  JAVA_XTRAOPTS=&amp;quot;-Xmx1024m -Dfile.encoding=UTF-8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Initiating the Guard database and key store ==&lt;br /&gt;
&lt;br /&gt;
Once the Guard configuration (database and backend configuration) and the service configuration has been applied, the Guard administration script needs to be executed in order to create the Guard databases. The administration script also takes care of the creation of the master keys and the master password file in /opt/open-xchange/guard. The initiation only needs to be done once for a multi server setup, for details please see “Optional / Clustering”.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; If you run a cluster of OX / Guard nodes, only execute this command on ONE node. Not on all nodes!  See [[AppSuite:GuardCluster | Ox Guard Clustering]] for details.&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard init&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; It is important to understand that the master password file located at /opt/open-xchange/guard/oxguardpass is required to reset user passwords, without them the administrator will not be able to reset user passwords anymore in the future. The file contains the passwords used to encrypt the master database key, as well as passwords used to encrypt protected data in the users table.  It must be the same on all Guard servers.&lt;br /&gt;
&lt;br /&gt;
== Test Setup ==&lt;br /&gt;
&lt;br /&gt;
Not required, but it is a good idea to test the Guard setup before starting the initialization.  The test function will verify that Guard has a good connection to the OX backend, and that it can resolve email addresses to users.&lt;br /&gt;
&lt;br /&gt;
To test, use an email address that exists on the OX backend (john@example.com for this example)&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test john@example.com&lt;br /&gt;
&lt;br /&gt;
Guard should return information from the OX backend regarding the user associated with john@example.com.  Problems resolving information for the user should be resolved before using Guard.  Check Rest API passwords and settings if errors returned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start Guard ==&lt;br /&gt;
&lt;br /&gt;
The services have been configured and the database has been initiated, it&#039;s time to start Guard&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange-guard start&lt;br /&gt;
&lt;br /&gt;
== Enabling Guard for Users ==&lt;br /&gt;
&lt;br /&gt;
Guard provides two capabilities for users in the environment as well as a basic &amp;quot;core&amp;quot; level:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Guard:&#039;&#039;&#039; com.openexchange.capability.guard&lt;br /&gt;
* &#039;&#039;&#039;Guard Mail:&#039;&#039;&#039; com.openexchange.capability.guard-mail&lt;br /&gt;
* &#039;&#039;&#039;Guard Drive:&#039;&#039;&#039; com.openexchange.capability.guard-drive&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;core&amp;quot; Guard enabled a basic read functionality for Guard encrypted emails.  We recommend enabling this for all users, as this allows all recipients to read Guard emails sent to them.  Great opportunity for upsell.  Recipients with only Guard enabled can then do a secure reply to the sender, but they can&#039;t start a new email or add recipients.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Guard Mail&amp;quot; and &amp;quot;Guard Drive&amp;quot; are additional options for users.  &amp;quot;Guard Mail&amp;quot; allows users the full functionality of Guard emails.  &amp;quot;Guard Drive&amp;quot; allows for encryption and decryption of drive files.&lt;br /&gt;
&lt;br /&gt;
Each of those two Guard components is enabled for all users that have the according capability configured. Please note that users need to have the Drive permission set to use Guard Drive. So the users that have Guard Drive enabled must be a subset of those users with OX Drive permission. Since v7.6.0 we enforce this via the default configuration. Those capabilities can be activated for specific user by using the Open-Xchange provisioning scripts:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Mail:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-mail=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Drive:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-drive=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Guard Drive requires Guard Mail to be configured for the user as well.  In addition, these capabilities may be configured globally by editing the guard.properties file on the OX bakend&lt;br /&gt;
&lt;br /&gt;
== Optional ==&lt;br /&gt;
&lt;br /&gt;
=== SSL Configuration ===&lt;br /&gt;
&lt;br /&gt;
Per default the connection between the Guard backend and the configured Open-Xchange REST API host is unencrypted. Even though that Guard will never transmit unencrypted emails to or from the REST API you can optionally encrypt the whole communication between those two components by using SSL. To enforce Guard to use SSL in the communication between those two components enable the follwing configuration in Guard configuration file. &lt;br /&gt;
&lt;br /&gt;
  $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
  com.openexchange.guard.backend_ssl=true&lt;br /&gt;
&lt;br /&gt;
The Guard backend is most commonly placed behind a load balancer (APACHE or other) and defaults to HTTP for incoming and outgoing traffic, using the load balancer to do SSL with the users.  If you want Guard to use SSL for all communications, you need to set up the SSL key to use.&lt;br /&gt;
&lt;br /&gt;
Please note that you have to provide access to the certificates.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.useSSL: true&lt;br /&gt;
 com.openexchange.guard.SSLPort: 8443&lt;br /&gt;
 com.openexchange.guard.SSLKeyStore: //keystore location//&lt;br /&gt;
 com.openexchange.guard.SSLKeyName: //alias name here//&lt;br /&gt;
 com.openexchange.guard.SSLKeyPass: //ssl password//&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Enabling SSL might decrease performance and/or create more system load due to additional encoding of the HTTP streams.&lt;br /&gt;
&lt;br /&gt;
For details on SSL installation and configuration, please see [[AppSuite:GuardSSL|OX Guard SSL Installation]]&lt;br /&gt;
&lt;br /&gt;
== Recipient key detection ==&lt;br /&gt;
&lt;br /&gt;
=== Local ===&lt;br /&gt;
&lt;br /&gt;
Guard needs to determine if an email recipients email address is an internal or external (non-ox) user.  &lt;br /&gt;
&lt;br /&gt;
To detect if the recipient is an account on the same OX Guard system there is a mechanism needed to map a recipient mail address to the correct local OX context. The default implementation delivered in the product achieves that by looking up the mail domain (@example.com) within the list of context mappings. That is at least not possible in case of ISPs where different users/contexts use the same mail domain. In case your OX system does not use mail domains in context mappings it is required to deploy an OX OSGi bundle implementing the com.openexchange.mailmapping.MailResolver class or by interfacing Guard with your mail resolver system.&lt;br /&gt;
Please see [[Appsuite:GuardMailResolver|OX Guard Mail Resolver]] for details&lt;br /&gt;
&lt;br /&gt;
=== External ===&lt;br /&gt;
&lt;br /&gt;
Starting with Guard 2.0, Guard will use public PGP Key servers if configured to find PGP Public keys.  In addition, Guard will also look up SRV records for PGP Key servers for a recipients domain.  This follows the standards [http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00#page-9 OpenPGP Draft].&lt;br /&gt;
&lt;br /&gt;
External PGP servers to use can be configured in the guard.properties file on the Guard servers.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.publicPGPDirectory = hkp://keys.gnupg.net:11371, hkp://pgp.mit.edu:11371&lt;br /&gt;
&lt;br /&gt;
If you would like this Guard installation discoverable by other Guard servers, then create a SRV record for each domain (&amp;quot;example.com&amp;quot; in this illustration)&lt;br /&gt;
 &lt;br /&gt;
 _hkp._tcp.open-xchange.com. 28800 IN    SRV     10 1 80 appsuite.example.com.&lt;br /&gt;
&lt;br /&gt;
You will also need to make additional entries in the apache proxy_http.conf file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardpgp&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all, add&lt;br /&gt;
        BalancerMember http://guardserver:8080/pgp timeout=1800 smax=0 ttl=60 retry=60 loadfactor=50 route=OX3&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
   &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy /pks&amp;gt;&lt;br /&gt;
        ProxyPass balancer://oxguardpgp&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note&#039;&#039;&#039; PGP Public key servers by default append use the url server/pks when the record is obtained from a SRV record.  The proxy above routes anything with the apache domain/pks to the Oxguard PGP server&lt;br /&gt;
&lt;br /&gt;
== Clustering ==&lt;br /&gt;
&lt;br /&gt;
You can run multiple OX Guard servers in your environment to ensure high availability or enhance scalability. OX Guard integrates seamlessly into the existing Open-Xchange infrastructure by using the existing interface standards and is therefor transparent to the environment. A couple of things have to be prepared in order to loosely couple OX Guard servers with Open-Xchange servers in a cluster.&lt;br /&gt;
&lt;br /&gt;
=== MySQL ===&lt;br /&gt;
&lt;br /&gt;
The MySQL servers need to be configured in order to allow access to the configdb of Open-Xchange. To do so you need to set the following configuration in the MySQL my.cnf:&lt;br /&gt;
&lt;br /&gt;
 bind = 0.0.0.0&lt;br /&gt;
&lt;br /&gt;
This allows the Guard backend to bind to the MySQL host which is configured in the guard.properties file with com.openexchange.guard.configdbHostname. After the bind for the MySQL instance is configured and the OX Guard backend would be able to connect to the configured host, you have to grant access for the OX Guard service on the MySQL instance to manage the databases. Do so by connecting to the MySQL server via the mysql client. Authenticate if necessary and execute the following, please note that you have to modify the hostname / IP address of the client who should be able to connect to this database, it should include all possible OX Guard servers:&lt;br /&gt;
&lt;br /&gt;
 GRANT ALL PRIVILEGES ON *.* TO &#039;openexchange&#039;@&#039;oxguard.example.com&#039; IDENTIFIED BY ‘secret’;&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
OX Guard uses the Open-Xchange REST API to store and fetch data from the Open-Xchange databases. The REST API is a servlet running in the Grizzly container. By default it is not exposed as a servlet through Apache and is only accessibly via port 8009. In order to use Apache&#039;s load balancing via mod_proxy we need to add a servlet called &amp;quot;preliminary&amp;quot; to proxy_http.conf, example based on a clustered mod_proxy configuration:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Location /preliminary&amp;gt;&lt;br /&gt;
      Order Deny,Allow&lt;br /&gt;
      Deny from all&lt;br /&gt;
      # Only allow access from Guard servers within the network. Do not expose this&lt;br /&gt;
      # location outside of your network. In case you use a load balancing service in front&lt;br /&gt;
      # of your Apache infrastructure you should make sure that access to /preliminary will&lt;br /&gt;
      # be blocked from the internet / outside clients. Examples:&lt;br /&gt;
      # Allow from 192.168.0.1&lt;br /&gt;
      # Allow from 192.168.1.1 192.168.1.2&lt;br /&gt;
      # Allow from 192.168.0.&lt;br /&gt;
      ProxyPass /preliminary balancer://oxcluster/preliminary&lt;br /&gt;
 &amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that the balancer is properly configured in the mod_proxy configuration. Examples on how to do so can be found in our clustering configuration for Open-Xchange AppSuite. Like explained in the example above, please make sure that this location is only available in your internal network, there is no need to expose /preliminary to the public, it is only used by Guard servers to connect to the OX backend. If you have a load balancer in front of the Apache cluster you should consider blocking access to /preliminary from WAN to restrict access to the servlet to internal network services only.&lt;br /&gt;
&lt;br /&gt;
Now add the OX Guard BalancerMembers to the oxguard balancer configuration (also in proxy_http.conf) to address all your OX Guard nodes in the cluster in this balancer configuration. The configuration has to be applied to all Apache nodes within the cluster.&lt;br /&gt;
&lt;br /&gt;
If the Apache server is a dedicated server / instance you also have to install the OX Guard UI-Static package on all Apache nodes in the cluster in order to provide static files like images or CSS to the OX Guard client. Example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Disable the Open-Xchange IPCheck for session verification. This is required because OX Guard will use the users session cookie to connect to the Open-Xchange REST API, but as a different IP address than the OX Guard server has been used during authentication the request would fail if you don&#039;t disable the IPCheck:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
and set:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.IPCheck=false&lt;br /&gt;
&lt;br /&gt;
The OX Guard UI package has to be installed on all Open-Xchange backend nodes as well, example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui&lt;br /&gt;
&lt;br /&gt;
Restart the Open-Xchange service afterwards.&lt;br /&gt;
&lt;br /&gt;
=== OX Guard ===&lt;br /&gt;
&lt;br /&gt;
For details in clustering Guard servers, please see [[AppSuite:GuardCluster | OxGuard Clustering]] .  It is critical that all Guard servers have the same oxguardpass file.  Please see the clustering link for details.  Do not run ./guard init on more than one server.&lt;br /&gt;
&lt;br /&gt;
After all the services like MySQL, Apache and Open-Xchange have been configured you need to update the OX Guard backend configuration to point to the correct API endpoints. Set the REST API endpoint to an Apache server by setting the following value in /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=apache.example.com&lt;br /&gt;
&lt;br /&gt;
Per default Guard will try to connect to port 8009 to this host, but as we configured the REST API to be proxies thorugh the serblet /preliminary on every Apache we now also need to change the target port for the REST API. You can do so by adding the following line into /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxBackendPort=80&lt;br /&gt;
&lt;br /&gt;
Please also change all settings in regards to MySQL like com.openexchange.guard.configdbHostname, com.openexchange.guard.oxguardDatabaseHostname, com.openexchange.guard.databaseUsername or com.openexchange.guard.databasePassword. Afterwards restart the OX Guard service and check the logfile if the OX Guard backend is able to connect to the configured REST API.&lt;br /&gt;
&lt;br /&gt;
== Multi Node ==&lt;br /&gt;
&lt;br /&gt;
If you have multiple OX and Guard installations, please see the following documentation [[AppSuite:OX_Guard_Modular|OX Guard Modular Setup]]&lt;br /&gt;
&lt;br /&gt;
= Support API =&lt;br /&gt;
&lt;br /&gt;
The OX Guard Support API enables administrative access to various functions for maintaining OX Guard from a client in a role as a support employee. A client has to do a BASIC AUTH authentication in order to access the API. Username and password can be configured in the guard.properties file using the following settings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    # Specify the username and password for accessing the Support API of Guard&lt;br /&gt;
    com.openexchange.guard.supportapiusername=&lt;br /&gt;
    com.openexchange.guard.supportapipassword=&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In contrast to the rest of the OX Guard requests, the OX Guard support API requests are accessible using: /guardsupport. This distinction allows more flexible configuration since the support API should not always be accessible from everywhere. But if you want to expose the Guard Support API using Apache a very basic Apache configuration could look like this:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning&#039;&#039;&#039; Exposing the support API to the internet could be huge security risk.  Only add to apache if you know what you are doing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass http://localhost:8080/guardsupport                                                    &lt;br /&gt;
        #...&lt;br /&gt;
   &amp;lt;/Location&amp;gt;      &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it might also be preferable to add a new balancer directive for guardsupport&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass balancer://oxguardsupport                                                           &lt;br /&gt;
 &amp;lt;/Location&amp;gt; &lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardsupport&amp;gt;                                                                &lt;br /&gt;
       #...&lt;br /&gt;
        BalancerMember http://localhost:8080/guardsupport #...&lt;br /&gt;
       #...&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reset password ===&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=reset_password&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Performs a password reset and sends a new random generated password to a specified email address by the user or a default address if the user did not specify an email address. The reset password function is currently not available for guest users.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to reset the password for&lt;br /&gt;
* &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; (optional) – The email address to send the new password to, if the user did not specify a secondary email address&lt;br /&gt;
&lt;br /&gt;
=== Expose key ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=expose_key&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Marks a deleted user key temporary as “exposed” and creates a unique URL for downloading the exposed key.&lt;br /&gt;
Automatic resetting of exposed keys to &amp;quot;not exposed&amp;quot; is scheduled once a day and resets all exposed keys which have been exposed before X hours, where X can be configured using com.openexchange.guard.exposedKeyDurationInHours in the guard.properties files.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to expose the deleted keys for&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; – The context id&lt;br /&gt;
&lt;br /&gt;
Response:&lt;br /&gt;
An URL pointing to the downloadable exposed keys&lt;br /&gt;
&lt;br /&gt;
=== Delete user ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=delete_user&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Deletes all keys related to a certain user. The keys are backed up and can be exposed using the “expose_key” call.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;user_id&amp;lt;/code&amp;gt; – The user&#039;s id&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; - The context id&lt;br /&gt;
&lt;br /&gt;
= Customization =&lt;br /&gt;
&lt;br /&gt;
Guard&#039;s templates are customizable at the user and context level.  Please see [[AppSuite:GuardCustomization| Customization]] for details&lt;br /&gt;
&lt;br /&gt;
= Entropy =&lt;br /&gt;
&lt;br /&gt;
Guard requires entropy (randomness) to generate the private/public keys that are used.  Depending on the server and it&#039;s environment, this may become a problem.  Please see [[AppSuite:GuardEntropy | Entropy]] for a possible solution&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21293</id>
		<title>AppSuite:OX Guard</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21293"/>
		<updated>2016-01-12T15:17:57Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: Added Update Repository&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Guard =&lt;br /&gt;
&lt;br /&gt;
OX Guard is a fully integrated security add-on to OX App Suite that provides end users with a flexible email and file encryption solution. OX Guard is a highly scalable, multi server, feature rich solution that is so simple-to-use that end users will actually use it. With a single click a user can take control of their security and send secure emails and share encrypted files. This can be done from any device to both OX App Suite and non-OX App Suite users. &lt;br /&gt;
&lt;br /&gt;
OX Guard uses standard PGP encryption for the encryption of email and files. PGP has been around for a long time, yet has not really caught on with the masses. This is generally blamed on the confusion and complications of managing the keys, understanding trust, PGP format types, and lack of trusted central key repositories. Guard simplifies all of this, making PGP encryption as easy as a one click process, with no keys to keep track of, yet the options of advanced PGP management for those that know how.&lt;br /&gt;
&lt;br /&gt;
This article will guide you through the installation of Guard and describes the basic configuration and software requirements. As it is intended as a quick walk-through it assumes an existing installation of the operating system including a single server App Suite setup as well as average system administration skills. This guide will also show you how to setup a basic installation with none of the typically used distributed environment settings. The objective of this guide is:&lt;br /&gt;
&lt;br /&gt;
* To setup a single server installation&lt;br /&gt;
* To setup a single Guard instance on an existing Open-Xchange installation, no cluster&lt;br /&gt;
* To use the database service on the existing Open-Xchange installation for Guard, no replication&lt;br /&gt;
* To provide a basic configuration setup, no mailserver configuration&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Simple security at the touch of a button&lt;br /&gt;
* Provides user based security - Separate from provider&lt;br /&gt;
* Supplementary security to Provider based security - Layered&lt;br /&gt;
* Powerful features yet simple to use and understand&lt;br /&gt;
* Security - Inside and outside of the OX environment&lt;br /&gt;
* Email and Drive integration&lt;br /&gt;
* Uses proven PGP security&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
If an OX App Suite customer would like to evaluate OX Guard integration, the first step is to contact OX Sales. OX Sales will then work on the request and send prices and license/API (for the hosted infrastructure) key details to the customer.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
Please review following URL for remaining requirements  &lt;br /&gt;
&lt;br /&gt;
Please review [[AppSuite:OX_System_Requirements#OX_Guard|OX Guard Requirements]] for a full list of requirements.&lt;br /&gt;
&lt;br /&gt;
Since OX Guard is a Microservice it can either be added to an existing Open-Xchange installation or it can be deployed on a dedicated environment without having any of the other Open-Xchange App Suite core services installed. OX App Suite v7.6.0 or later is required to operate this extension both in a single or multi server environments.&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
* Open-Xchange REST API&lt;br /&gt;
* Grizzly HTTP connector (open-xchange-grizzly)&lt;br /&gt;
* A supported Java Virtual Machine (Java 7)&lt;br /&gt;
* An Open-Xchange App Suite installation v7.6.0 or later&lt;br /&gt;
* Please Note: To get access to the latest minor features and bug fixes, you need to have a valid license. The article [[AppSuite:UpdatingOXPackages|Updating OX-Packages]] explains how that can be done.&lt;br /&gt;
&lt;br /&gt;
== Important Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Customization ===&lt;br /&gt;
&lt;br /&gt;
OX Guard version supports branding / theming using the configuration cascade, defining a templateID for a user or context.  Additional details will be provided in customization documentation. Check bottom of this page. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mail Resolver ===&lt;br /&gt;
&lt;br /&gt;
READ THIS VERY CAREFULLY; BEFORE PROCEEDING WITH GUARD INSTALLATION!&lt;br /&gt;
&lt;br /&gt;
The Guard installation must be able to determine if an email recipient is a local OX user or if it should be a guest account.  The default MailResolver uses the context domain name to do this.  On many installations, domains may extend across multiple context and multiple database shards.  In these cases, the default MailResolver won&#039;t work.  In addition, if a custom authentication package is used, the Mail Resolver will likely not work.&lt;br /&gt;
&lt;br /&gt;
Be sure to test the mail resolver using&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test email@domain &lt;br /&gt;
&lt;br /&gt;
to see if the mail Resolver works.&lt;br /&gt;
&lt;br /&gt;
If the test does not work, you will likely need a custom Mail Resolver.  Please see [[AppSuite:GuardMailResolver| Mail Resolver page]]&lt;br /&gt;
&lt;br /&gt;
This resolver software &#039;&#039;depends heavily on your local deployment&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Download and Installation =&lt;br /&gt;
&lt;br /&gt;
=== General ===&lt;br /&gt;
The installation of the open-xchange-rest package which is required for Guard will eventually execute database update tasks if installed and activated. Please take this into account.&lt;br /&gt;
&lt;br /&gt;
There are several components to the Guard service.  They can be all installed on the same server as the OX backend, or on a separate server.&lt;br /&gt;
&lt;br /&gt;
The components required for the OX backend are: open-xchange-rest, open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
The components required for the OX frontend are: open-xchange-guard-ui open-xchange-guard-ui-static and optionally open-xchange-guard-help-en-us (or preferred language for help files)&lt;br /&gt;
&lt;br /&gt;
The components required for the Guard server (may be on same as the backend) open-xchange-guard&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the installation of the OX Guard at your already available environment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; By default, OX Guard generates the link to the secure content for external recipients on the basis of the local fully qualified domain name (FQDN). If the local FQDN is not reachable from the internet, it has to be specified manually. This can be done by setting a UCR variable, e.g. via the UMC module &amp;quot;Univention Configuration Registry&amp;quot;. The variable has to contain the external FQDN of the OX Guard system:&lt;br /&gt;
&lt;br /&gt;
 oxguard/cfg/guard.properties/com.openexchange.guard.externalEmailURL=HOSTNAME.DOMAINNAME&lt;br /&gt;
&lt;br /&gt;
= Update OX Guard =&lt;br /&gt;
&lt;br /&gt;
Before upgrading Guard to version 2.0.0 you need to install the package &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; on all groupware nodes used by Guard throught the REST api. In other words, every groupware node have &amp;lt;code&amp;gt;open-xchange-rest&amp;lt;/code&amp;gt; installed, now needs to have &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; installed.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the update of the OX Guard.&lt;br /&gt;
&lt;br /&gt;
=== Update OX Guard v1.2 to OX Guard v2.0.0 ===&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: &#039;&#039;&#039;&#039;&#039;If you did not run GUARD 1.2 already, you DO NOT NEED to execute the &amp;quot;upgradePGP&amp;quot; command!&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you have an existing Guard v1.2 database, and are upgrading to v2.0, additional PGP key table need to be created and populated.  Once the Guard package has been updated, type&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard upgradePGP&lt;br /&gt;
&lt;br /&gt;
This process will alter the needed database tables and populate the needed lookup tables.  Guard 1.2 can continue to run in the background.  Once complete, Guard 2.0 can be started.&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
The following gives an overview of the most important settings to enable Guard for users on the Open-Xchange installation. Some of those settings have to be modified in order to establish the database and REST API access from the Guard service. All settings relating to the Guard backend component are located in the configuration file guard.properties located in /opt/open-xchange/guard/etc. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the database username and password). Please refer to the inline documentation of the configuration file for more advanced options.  Additional information can be found here [[AppSuite:GuardConfiguration|Guard Configuration]]&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
Open-Xchange config_db host - Guard will establish a connection to the config_db&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.configdbHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database for storing Guard user information, main lookup tables&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardDatabaseHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database that stores keys for guest users.  May be the same as above.  New guest shards will be created on this database as needed.  If not supplied, will use the oxguardDatabaseHostname&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardShardDatabase=localhost&lt;br /&gt;
&lt;br /&gt;
Username and Password for the databases above&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.databaseUsername=openexchange&lt;br /&gt;
 com.openexchange.guard.databasePassword=db_password&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API host&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API username and password (need to be defined in the OX backend in the &amp;quot;Configure services&amp;quot; below)&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiUsername=apiusername&lt;br /&gt;
 com.openexchange.guard.restApiPassword=apipassword&lt;br /&gt;
&lt;br /&gt;
External URL for this Open-Xchange installation. This setting will be used to generate the link to the secure content for external recipients&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.externalEmailURL=URL_TO_OX&lt;br /&gt;
&lt;br /&gt;
== Configure services ==&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
Configure the mod_proxy_http module by adding the Guard API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Redhat Enterprise Linux 6 or CentOS 6&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/httpd/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Debian GNU/Linux 7.0 and SUSE Linux Enterprise Server 11&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/apache2/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguard&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all&amp;lt;br&amp;gt;&lt;br /&gt;
        BalancerMember http://localhost:8080/oxguard timeout=1800 smax=0 ttl=60 retry=60 loadfactor=100 route=OX1&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ProxyPass /appsuite/api/oxguard balancer://oxguard&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; The Guard API settings must be inserted before the existing “&amp;lt;Proxy /appsuite/api&amp;gt;” parameter.&lt;br /&gt;
&lt;br /&gt;
After the configuration is done, restart the Apache webserver&lt;br /&gt;
&lt;br /&gt;
 $ apachectl restart&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Starting in Guard 2.0, there is an administrative component to the Open-Xchange backend that notifies Guard when a user or context is deleted.  Install the package open-xchange-guard-backend-plugin on all OX backend servers.  On a debian install, this command would be:&lt;br /&gt;
&lt;br /&gt;
 apt-get install open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
There is also a configuration file for the OX backend regarding some general Guard settings.  Please remove comments in front of the following settings to the configuration file guard.properties on the Open-Xchange backend servers:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # OX GUard general permission, required to activate Guard in the AppSuite UI.&lt;br /&gt;
 com.openexchange.capability.guard=true&lt;br /&gt;
 &lt;br /&gt;
 # Default theme template id for all users that have no custom template id configured.&lt;br /&gt;
 com.openexchange.guard.templateID=0&lt;br /&gt;
&lt;br /&gt;
Configure the API username and password that you assigned to Guard in the server.properties file&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
 # Specify the user name used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.login=apiusername&lt;br /&gt;
 &lt;br /&gt;
 # Specify the password used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.password=apipassword&lt;br /&gt;
&lt;br /&gt;
Finally, the OX backend needs to know where the Guard server is located.  This is used to notify the Guard server of changes in users, and to send emails marked for signature.  The URL for the Guard server should include the url suffix /guardadmin .  In the event of a cluster setup, any Guard server can be referenced here, as it is not session specific, though ideally would have a HTTP load balancer/failover URL&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # Specifies the URI to the OX Guard end-point; e.g. http://guard.host.invalid:8081/guardadmin&lt;br /&gt;
 # Default is empty&lt;br /&gt;
 com.openexchange.guard.endpoint=http://guardserver:8080/guardadmin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart the OX backend&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange restart&lt;br /&gt;
&lt;br /&gt;
=== SELinux ===&lt;br /&gt;
&lt;br /&gt;
Running SELinux prohibits your local Open-Xchange backend service to connect to localhost:8080, which is where the Guard backend service listens to. In order to allow localhost connections to 8080 execute the following:&lt;br /&gt;
&lt;br /&gt;
 $ setsebool -P httpd_can_network_connect 1&lt;br /&gt;
&lt;br /&gt;
=== RHEL (Redhat) ===&lt;br /&gt;
&lt;br /&gt;
Occasionally, the encoding of special characters in the translation files don&#039;t work properly in RHEL.  To fix this, please edit the file /opt/open-xchange/guard/etc/ox-scriptconf.sh and add to the JAVA_XTRAOPTS -DFile.encoding=UTF-8&lt;br /&gt;
&lt;br /&gt;
  JAVA_XTRAOPTS=&amp;quot;-Xmx1024m -Dfile.encoding=UTF-8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Initiating the Guard database and key store ==&lt;br /&gt;
&lt;br /&gt;
Once the Guard configuration (database and backend configuration) and the service configuration has been applied, the Guard administration script needs to be executed in order to create the Guard databases. The administration script also takes care of the creation of the master keys and the master password file in /opt/open-xchange/guard. The initiation only needs to be done once for a multi server setup, for details please see “Optional / Clustering”.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; If you run a cluster of OX / Guard nodes, only execute this command on ONE node. Not on all nodes!  See [[AppSuite:GuardCluster | Ox Guard Clustering]] for details.&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard init&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; It is important to understand that the master password file located at /opt/open-xchange/guard/oxguardpass is required to reset user passwords, without them the administrator will not be able to reset user passwords anymore in the future. The file contains the passwords used to encrypt the master database key, as well as passwords used to encrypt protected data in the users table.  It must be the same on all Guard servers.&lt;br /&gt;
&lt;br /&gt;
== Test Setup ==&lt;br /&gt;
&lt;br /&gt;
Not required, but it is a good idea to test the Guard setup before starting the initialization.  The test function will verify that Guard has a good connection to the OX backend, and that it can resolve email addresses to users.&lt;br /&gt;
&lt;br /&gt;
To test, use an email address that exists on the OX backend (john@example.com for this example)&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test john@example.com&lt;br /&gt;
&lt;br /&gt;
Guard should return information from the OX backend regarding the user associated with john@example.com.  Problems resolving information for the user should be resolved before using Guard.  Check Rest API passwords and settings if errors returned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start Guard ==&lt;br /&gt;
&lt;br /&gt;
The services have been configured and the database has been initiated, it&#039;s time to start Guard&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange-guard start&lt;br /&gt;
&lt;br /&gt;
== Enabling Guard for Users ==&lt;br /&gt;
&lt;br /&gt;
Guard provides two capabilities for users in the environment as well as a basic &amp;quot;core&amp;quot; level:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Guard:&#039;&#039;&#039; com.openexchange.capability.guard&lt;br /&gt;
* &#039;&#039;&#039;Guard Mail:&#039;&#039;&#039; com.openexchange.capability.guard-mail&lt;br /&gt;
* &#039;&#039;&#039;Guard Drive:&#039;&#039;&#039; com.openexchange.capability.guard-drive&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;core&amp;quot; Guard enabled a basic read functionality for Guard encrypted emails.  We recommend enabling this for all users, as this allows all recipients to read Guard emails sent to them.  Great opportunity for upsell.  Recipients with only Guard enabled can then do a secure reply to the sender, but they can&#039;t start a new email or add recipients.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Guard Mail&amp;quot; and &amp;quot;Guard Drive&amp;quot; are additional options for users.  &amp;quot;Guard Mail&amp;quot; allows users the full functionality of Guard emails.  &amp;quot;Guard Drive&amp;quot; allows for encryption and decryption of drive files.&lt;br /&gt;
&lt;br /&gt;
Each of those two Guard components is enabled for all users that have the according capability configured. Please note that users need to have the Drive permission set to use Guard Drive. So the users that have Guard Drive enabled must be a subset of those users with OX Drive permission. Since v7.6.0 we enforce this via the default configuration. Those capabilities can be activated for specific user by using the Open-Xchange provisioning scripts:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Mail:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-mail=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Drive:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-drive=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Guard Drive requires Guard Mail to be configured for the user as well.  In addition, these capabilities may be configured globally by editing the guard.properties file on the OX bakend&lt;br /&gt;
&lt;br /&gt;
== Optional ==&lt;br /&gt;
&lt;br /&gt;
=== SSL Configuration ===&lt;br /&gt;
&lt;br /&gt;
Per default the connection between the Guard backend and the configured Open-Xchange REST API host is unencrypted. Even though that Guard will never transmit unencrypted emails to or from the REST API you can optionally encrypt the whole communication between those two components by using SSL. To enforce Guard to use SSL in the communication between those two components enable the follwing configuration in Guard configuration file. &lt;br /&gt;
&lt;br /&gt;
  $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
  com.openexchange.guard.backend_ssl=true&lt;br /&gt;
&lt;br /&gt;
The Guard backend is most commonly placed behind a load balancer (APACHE or other) and defaults to HTTP for incoming and outgoing traffic, using the load balancer to do SSL with the users.  If you want Guard to use SSL for all communications, you need to set up the SSL key to use.&lt;br /&gt;
&lt;br /&gt;
Please note that you have to provide access to the certificates.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.useSSL: true&lt;br /&gt;
 com.openexchange.guard.SSLPort: 8443&lt;br /&gt;
 com.openexchange.guard.SSLKeyStore: //keystore location//&lt;br /&gt;
 com.openexchange.guard.SSLKeyName: //alias name here//&lt;br /&gt;
 com.openexchange.guard.SSLKeyPass: //ssl password//&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Enabling SSL might decrease performance and/or create more system load due to additional encoding of the HTTP streams.&lt;br /&gt;
&lt;br /&gt;
For details on SSL installation and configuration, please see [[AppSuite:GuardSSL|OX Guard SSL Installation]]&lt;br /&gt;
&lt;br /&gt;
== Recipient key detection ==&lt;br /&gt;
&lt;br /&gt;
=== Local ===&lt;br /&gt;
&lt;br /&gt;
Guard needs to determine if an email recipients email address is an internal or external (non-ox) user.  &lt;br /&gt;
&lt;br /&gt;
To detect if the recipient is an account on the same OX Guard system there is a mechanism needed to map a recipient mail address to the correct local OX context. The default implementation delivered in the product achieves that by looking up the mail domain (@example.com) within the list of context mappings. That is at least not possible in case of ISPs where different users/contexts use the same mail domain. In case your OX system does not use mail domains in context mappings it is required to deploy an OX OSGi bundle implementing the com.openexchange.mailmapping.MailResolver class or by interfacing Guard with your mail resolver system.&lt;br /&gt;
Please see [[Appsuite:GuardMailResolver|OX Guard Mail Resolver]] for details&lt;br /&gt;
&lt;br /&gt;
=== External ===&lt;br /&gt;
&lt;br /&gt;
Starting with Guard 2.0, Guard will use public PGP Key servers if configured to find PGP Public keys.  In addition, Guard will also look up SRV records for PGP Key servers for a recipients domain.  This follows the standards [http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00#page-9 OpenPGP Draft].&lt;br /&gt;
&lt;br /&gt;
External PGP servers to use can be configured in the guard.properties file on the Guard servers.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.publicPGPDirectory = hkp://keys.gnupg.net:11371, hkp://pgp.mit.edu:11371&lt;br /&gt;
&lt;br /&gt;
If you would like this Guard installation discoverable by other Guard servers, then create a SRV record for each domain (&amp;quot;example.com&amp;quot; in this illustration)&lt;br /&gt;
 &lt;br /&gt;
 _hkp._tcp.open-xchange.com. 28800 IN    SRV     10 1 80 appsuite.example.com.&lt;br /&gt;
&lt;br /&gt;
You will also need to make additional entries in the apache proxy_http.conf file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardpgp&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all, add&lt;br /&gt;
        BalancerMember http://guardserver:8080/pgp timeout=1800 smax=0 ttl=60 retry=60 loadfactor=50 route=OX3&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
   &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy /pks&amp;gt;&lt;br /&gt;
        ProxyPass balancer://oxguardpgp&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note&#039;&#039;&#039; PGP Public key servers by default append use the url server/pks when the record is obtained from a SRV record.  The proxy above routes anything with the apache domain/pks to the Oxguard PGP server&lt;br /&gt;
&lt;br /&gt;
== Clustering ==&lt;br /&gt;
&lt;br /&gt;
You can run multiple OX Guard servers in your environment to ensure high availability or enhance scalability. OX Guard integrates seamlessly into the existing Open-Xchange infrastructure by using the existing interface standards and is therefor transparent to the environment. A couple of things have to be prepared in order to loosely couple OX Guard servers with Open-Xchange servers in a cluster.&lt;br /&gt;
&lt;br /&gt;
=== MySQL ===&lt;br /&gt;
&lt;br /&gt;
The MySQL servers need to be configured in order to allow access to the configdb of Open-Xchange. To do so you need to set the following configuration in the MySQL my.cnf:&lt;br /&gt;
&lt;br /&gt;
 bind = 0.0.0.0&lt;br /&gt;
&lt;br /&gt;
This allows the Guard backend to bind to the MySQL host which is configured in the guard.properties file with com.openexchange.guard.configdbHostname. After the bind for the MySQL instance is configured and the OX Guard backend would be able to connect to the configured host, you have to grant access for the OX Guard service on the MySQL instance to manage the databases. Do so by connecting to the MySQL server via the mysql client. Authenticate if necessary and execute the following, please note that you have to modify the hostname / IP address of the client who should be able to connect to this database, it should include all possible OX Guard servers:&lt;br /&gt;
&lt;br /&gt;
 GRANT ALL PRIVILEGES ON *.* TO &#039;openexchange&#039;@&#039;oxguard.example.com&#039; IDENTIFIED BY ‘secret’;&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
OX Guard uses the Open-Xchange REST API to store and fetch data from the Open-Xchange databases. The REST API is a servlet running in the Grizzly container. By default it is not exposed as a servlet through Apache and is only accessibly via port 8009. In order to use Apache&#039;s load balancing via mod_proxy we need to add a servlet called &amp;quot;preliminary&amp;quot; to proxy_http.conf, example based on a clustered mod_proxy configuration:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Location /preliminary&amp;gt;&lt;br /&gt;
      Order Deny,Allow&lt;br /&gt;
      Deny from all&lt;br /&gt;
      # Only allow access from Guard servers within the network. Do not expose this&lt;br /&gt;
      # location outside of your network. In case you use a load balancing service in front&lt;br /&gt;
      # of your Apache infrastructure you should make sure that access to /preliminary will&lt;br /&gt;
      # be blocked from the internet / outside clients. Examples:&lt;br /&gt;
      # Allow from 192.168.0.1&lt;br /&gt;
      # Allow from 192.168.1.1 192.168.1.2&lt;br /&gt;
      # Allow from 192.168.0.&lt;br /&gt;
      ProxyPass /preliminary balancer://oxcluster/preliminary&lt;br /&gt;
 &amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that the balancer is properly configured in the mod_proxy configuration. Examples on how to do so can be found in our clustering configuration for Open-Xchange AppSuite. Like explained in the example above, please make sure that this location is only available in your internal network, there is no need to expose /preliminary to the public, it is only used by Guard servers to connect to the OX backend. If you have a load balancer in front of the Apache cluster you should consider blocking access to /preliminary from WAN to restrict access to the servlet to internal network services only.&lt;br /&gt;
&lt;br /&gt;
Now add the OX Guard BalancerMembers to the oxguard balancer configuration (also in proxy_http.conf) to address all your OX Guard nodes in the cluster in this balancer configuration. The configuration has to be applied to all Apache nodes within the cluster.&lt;br /&gt;
&lt;br /&gt;
If the Apache server is a dedicated server / instance you also have to install the OX Guard UI-Static package on all Apache nodes in the cluster in order to provide static files like images or CSS to the OX Guard client. Example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Disable the Open-Xchange IPCheck for session verification. This is required because OX Guard will use the users session cookie to connect to the Open-Xchange REST API, but as a different IP address than the OX Guard server has been used during authentication the request would fail if you don&#039;t disable the IPCheck:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
and set:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.IPCheck=false&lt;br /&gt;
&lt;br /&gt;
The OX Guard UI package has to be installed on all Open-Xchange backend nodes as well, example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui&lt;br /&gt;
&lt;br /&gt;
Restart the Open-Xchange service afterwards.&lt;br /&gt;
&lt;br /&gt;
=== OX Guard ===&lt;br /&gt;
&lt;br /&gt;
For details in clustering Guard servers, please see [[AppSuite:GuardCluster | OxGuard Clustering]] .  It is critical that all Guard servers have the same oxguardpass file.  Please see the clustering link for details.  Do not run ./guard init on more than one server.&lt;br /&gt;
&lt;br /&gt;
After all the services like MySQL, Apache and Open-Xchange have been configured you need to update the OX Guard backend configuration to point to the correct API endpoints. Set the REST API endpoint to an Apache server by setting the following value in /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=apache.example.com&lt;br /&gt;
&lt;br /&gt;
Per default Guard will try to connect to port 8009 to this host, but as we configured the REST API to be proxies thorugh the serblet /preliminary on every Apache we now also need to change the target port for the REST API. You can do so by adding the following line into /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxBackendPort=80&lt;br /&gt;
&lt;br /&gt;
Please also change all settings in regards to MySQL like com.openexchange.guard.configdbHostname, com.openexchange.guard.oxguardDatabaseHostname, com.openexchange.guard.databaseUsername or com.openexchange.guard.databasePassword. Afterwards restart the OX Guard service and check the logfile if the OX Guard backend is able to connect to the configured REST API.&lt;br /&gt;
&lt;br /&gt;
== Multi Node ==&lt;br /&gt;
&lt;br /&gt;
If you have multiple OX and Guard installations, please see the following documentation [[AppSuite:OX_Guard_Modular|OX Guard Modular Setup]]&lt;br /&gt;
&lt;br /&gt;
= Support API =&lt;br /&gt;
&lt;br /&gt;
The OX Guard Support API enables administrative access to various functions for maintaining OX Guard from a client in a role as a support employee. A client has to do a BASIC AUTH authentication in order to access the API. Username and password can be configured in the guard.properties file using the following settings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    # Specify the username and password for accessing the Support API of Guard&lt;br /&gt;
    com.openexchange.guard.supportapiusername=&lt;br /&gt;
    com.openexchange.guard.supportapipassword=&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In contrast to the rest of the OX Guard requests, the OX Guard support API requests are accessible using: /guardsupport. This distinction allows more flexible configuration since the support API should not always be accessible from everywhere. But if you want to expose the Guard Support API using Apache a very basic Apache configuration could look like this:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning&#039;&#039;&#039; Exposing the support API to the internet could be huge security risk.  Only add to apache if you know what you are doing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass http://localhost:8080/guardsupport                                                    &lt;br /&gt;
        #...&lt;br /&gt;
   &amp;lt;/Location&amp;gt;      &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it might also be preferable to add a new balancer directive for guardsupport&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass balancer://oxguardsupport                                                           &lt;br /&gt;
 &amp;lt;/Location&amp;gt; &lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardsupport&amp;gt;                                                                &lt;br /&gt;
       #...&lt;br /&gt;
        BalancerMember http://localhost:8080/guardsupport #...&lt;br /&gt;
       #...&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reset password ===&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=reset_password&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Performs a password reset and sends a new random generated password to a specified email address by the user or a default address if the user did not specify an email address. The reset password function is currently not available for guest users.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to reset the password for&lt;br /&gt;
* &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; (optional) – The email address to send the new password to, if the user did not specify a secondary email address&lt;br /&gt;
&lt;br /&gt;
=== Expose key ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=expose_key&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Marks a deleted user key temporary as “exposed” and creates a unique URL for downloading the exposed key.&lt;br /&gt;
Automatic resetting of exposed keys to &amp;quot;not exposed&amp;quot; is scheduled once a day and resets all exposed keys which have been exposed before X hours, where X can be configured using com.openexchange.guard.exposedKeyDurationInHours in the guard.properties files.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to expose the deleted keys for&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; – The context id&lt;br /&gt;
&lt;br /&gt;
Response:&lt;br /&gt;
An URL pointing to the downloadable exposed keys&lt;br /&gt;
&lt;br /&gt;
=== Delete user ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=delete_user&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Deletes all keys related to a certain user. The keys are backed up and can be exposed using the “expose_key” call.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;user_id&amp;lt;/code&amp;gt; – The user&#039;s id&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; - The context id&lt;br /&gt;
&lt;br /&gt;
= Customization =&lt;br /&gt;
&lt;br /&gt;
Guard&#039;s templates are customizable at the user and context level.  Please see [[AppSuite:GuardCustomization| Customization]] for details&lt;br /&gt;
&lt;br /&gt;
= Entropy =&lt;br /&gt;
&lt;br /&gt;
Guard requires entropy (randomness) to generate the private/public keys that are used.  Depending on the server and it&#039;s environment, this may become a problem.  Please see [[AppSuite:GuardEntropy | Entropy]] for a possible solution&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21292</id>
		<title>AppSuite:OX Guard</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:OX_Guard&amp;diff=21292"/>
		<updated>2016-01-12T15:15:59Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: Added Update Repository&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OX Guard =&lt;br /&gt;
&lt;br /&gt;
OX Guard is a fully integrated security add-on to OX App Suite that provides end users with a flexible email and file encryption solution. OX Guard is a highly scalable, multi server, feature rich solution that is so simple-to-use that end users will actually use it. With a single click a user can take control of their security and send secure emails and share encrypted files. This can be done from any device to both OX App Suite and non-OX App Suite users. &lt;br /&gt;
&lt;br /&gt;
OX Guard uses standard PGP encryption for the encryption of email and files. PGP has been around for a long time, yet has not really caught on with the masses. This is generally blamed on the confusion and complications of managing the keys, understanding trust, PGP format types, and lack of trusted central key repositories. Guard simplifies all of this, making PGP encryption as easy as a one click process, with no keys to keep track of, yet the options of advanced PGP management for those that know how.&lt;br /&gt;
&lt;br /&gt;
This article will guide you through the installation of Guard and describes the basic configuration and software requirements. As it is intended as a quick walk-through it assumes an existing installation of the operating system including a single server App Suite setup as well as average system administration skills. This guide will also show you how to setup a basic installation with none of the typically used distributed environment settings. The objective of this guide is:&lt;br /&gt;
&lt;br /&gt;
* To setup a single server installation&lt;br /&gt;
* To setup a single Guard instance on an existing Open-Xchange installation, no cluster&lt;br /&gt;
* To use the database service on the existing Open-Xchange installation for Guard, no replication&lt;br /&gt;
* To provide a basic configuration setup, no mailserver configuration&lt;br /&gt;
&lt;br /&gt;
== Key features ==&lt;br /&gt;
&lt;br /&gt;
* Simple security at the touch of a button&lt;br /&gt;
* Provides user based security - Separate from provider&lt;br /&gt;
* Supplementary security to Provider based security - Layered&lt;br /&gt;
* Powerful features yet simple to use and understand&lt;br /&gt;
* Security - Inside and outside of the OX environment&lt;br /&gt;
* Email and Drive integration&lt;br /&gt;
* Uses proven PGP security&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
If an OX App Suite customer would like to evaluate OX Guard integration, the first step is to contact OX Sales. OX Sales will then work on the request and send prices and license/API (for the hosted infrastructure) key details to the customer.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
Please review following URL for remaining requirements  &lt;br /&gt;
&lt;br /&gt;
Please review [[AppSuite:OX_System_Requirements#OX_Guard|OX Guard Requirements]] for a full list of requirements.&lt;br /&gt;
&lt;br /&gt;
Since OX Guard is a Microservice it can either be added to an existing Open-Xchange installation or it can be deployed on a dedicated environment without having any of the other Open-Xchange App Suite core services installed. OX App Suite v7.6.0 or later is required to operate this extension both in a single or multi server environments.&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
* Open-Xchange REST API&lt;br /&gt;
* Grizzly HTTP connector (open-xchange-grizzly)&lt;br /&gt;
* A supported Java Virtual Machine (Java 7)&lt;br /&gt;
* An Open-Xchange App Suite installation v7.6.0 or later&lt;br /&gt;
* Please Note: To get access to the latest minor features and bug fixes, you need to have a valid license. The article [[AppSuite:UpdatingOXPackages|Updating OX-Packages]] explains how that can be done.&lt;br /&gt;
&lt;br /&gt;
== Important Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Customization ===&lt;br /&gt;
&lt;br /&gt;
OX Guard version supports branding / theming using the configuration cascade, defining a templateID for a user or context.  Additional details will be provided in customization documentation. Check bottom of this page. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mail Resolver ===&lt;br /&gt;
&lt;br /&gt;
READ THIS VERY CAREFULLY; BEFORE PROCEEDING WITH GUARD INSTALLATION!&lt;br /&gt;
&lt;br /&gt;
The Guard installation must be able to determine if an email recipient is a local OX user or if it should be a guest account.  The default MailResolver uses the context domain name to do this.  On many installations, domains may extend across multiple context and multiple database shards.  In these cases, the default MailResolver won&#039;t work.  In addition, if a custom authentication package is used, the Mail Resolver will likely not work.&lt;br /&gt;
&lt;br /&gt;
Be sure to test the mail resolver using&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test email@domain &lt;br /&gt;
&lt;br /&gt;
to see if the mail Resolver works.&lt;br /&gt;
&lt;br /&gt;
If the test does not work, you will likely need a custom Mail Resolver.  Please see [[AppSuite:GuardMailResolver| Mail Resolver page]]&lt;br /&gt;
&lt;br /&gt;
This resolver software &#039;&#039;depends heavily on your local deployment&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Download and Installation =&lt;br /&gt;
&lt;br /&gt;
=== General ===&lt;br /&gt;
The installation of the open-xchange-rest package which is required for Guard will eventually execute database update tasks if installed and activated. Please take this into account.&lt;br /&gt;
&lt;br /&gt;
There are several components to the Guard service.  They can be all installed on the same server as the OX backend, or on a separate server.&lt;br /&gt;
&lt;br /&gt;
The components required for the OX backend are: open-xchange-rest, open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
The components required for the OX frontend are: open-xchange-guard-ui open-xchange-guard-ui-static and optionally open-xchange-guard-help-en-us (or preferred language for help files)&lt;br /&gt;
&lt;br /&gt;
The components required for the Guard server (may be on same as the backend) open-xchange-guard&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|guard/stable/guard}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
 $ zypper in open-xchange-rest open-xchange-guard open-xchange-guard-ui open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
Guard requires Java 1.7, which will be installed through the Guard packages, still SUSE Linux Enterprise Server 11 will not use Java 1.7 by default. Therefor we have to set Java 1.7 as the default instead of Java 1.6:&lt;br /&gt;
&lt;br /&gt;
 $ update-alternatives --config java&lt;br /&gt;
&lt;br /&gt;
Now select the Java 1.7 JRE, example:&lt;br /&gt;
&lt;br /&gt;
 There are 2 alternatives which provide `java&#039;.&lt;br /&gt;
&lt;br /&gt;
   Selection    Alternative&lt;br /&gt;
 -----------------------------------------------&lt;br /&gt;
 *         1    /usr/lib64/jvm/jre-1.6.0-ibm/bin/java&lt;br /&gt;
  +        2    /usr/lib64/jvm/jre-1.7.0-ibm/bin/java&lt;br /&gt;
 &lt;br /&gt;
 Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;
 Using &#039;/usr/lib64/jvm/jre-1.7.0-ibm/bin/java&#039; to provide &#039;java&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the installation of the OX Guard at your already available environment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; By default, OX Guard generates the link to the secure content for external recipients on the basis of the local fully qualified domain name (FQDN). If the local FQDN is not reachable from the internet, it has to be specified manually. This can be done by setting a UCR variable, e.g. via the UMC module &amp;quot;Univention Configuration Registry&amp;quot;. The variable has to contain the external FQDN of the OX Guard system:&lt;br /&gt;
&lt;br /&gt;
 oxguard/cfg/guard.properties/com.openexchange.guard.externalEmailURL=HOSTNAME.DOMAINNAME&lt;br /&gt;
&lt;br /&gt;
= Update OX Guard =&lt;br /&gt;
&lt;br /&gt;
Before upgrading Guard to version 2.0.0 you need to install the package &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; on all groupware nodes used by Guard throught the REST api. In other words, every groupware node have &amp;lt;code&amp;gt;open-xchange-rest&amp;lt;/code&amp;gt; installed, now needs to have &amp;lt;code&amp;gt;open-xchange-guard-backend&amp;lt;/code&amp;gt; installed.&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 6 or CentOS 6 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Redhat Enterprise Linux 7 or CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange yum configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=rhelname|pc2v=RHEL7|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
 $ yum upgrade&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 7.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianWheezy|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Debian GNU/Linux 8.0 ===&lt;br /&gt;
&lt;br /&gt;
If not already done, add the following repositories to your Open-Xchange apt configuration:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=APTRepo|pv=reponame|pc1n=path|pc1v=products|pc2n=debianname|pc2v=DebianJessie|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
If you want to see, what apt-get is going to do without actually doing it, you can run:&lt;br /&gt;
&lt;br /&gt;
 $ apt-get dist-upgrade -s&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ /etc/init.d/open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 11 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLES11|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SUSE Linux Enterprise Server 12 ===&lt;br /&gt;
&lt;br /&gt;
Add the package repository using zypper if not already present:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=SUSERepo|pv=reponame|pc1n=path|pc1v=products|pc2n=susename|pc2v=SLE_12|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|guard/stable/guard/updates}}&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-backend-updates&lt;br /&gt;
 $ zypper dup -r guard-stable-guard-ui-updates&lt;br /&gt;
&lt;br /&gt;
You might need to run&lt;br /&gt;
&lt;br /&gt;
 $ zypper ref&lt;br /&gt;
&lt;br /&gt;
to update the repository metadata before running &#039;&#039;zypper up&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the new packages are installed, the guard process needs a restart:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;$ open-xchange-guard restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Univention Corporate Server ===&lt;br /&gt;
&lt;br /&gt;
If you have purchased the OX App Suite for UCS, the OX Guard is part of the offering. OX Guard is available in the Univention App Center. Please check the UMC module App Center for the update of the OX Guard.&lt;br /&gt;
&lt;br /&gt;
=== Update OX Guard v1.2 to OX Guard v2.0.0 ===&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: &#039;&#039;&#039;&#039;&#039;If you did not run GUARD 1.2 already, you DO NOT NEED to execute the &amp;quot;upgradePGP&amp;quot; command!&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you have an existing Guard v1.2 database, and are upgrading to v2.0, additional PGP key table need to be created and populated.  Once the Guard package has been updated, type&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard upgradePGP&lt;br /&gt;
&lt;br /&gt;
This process will alter the needed database tables and populate the needed lookup tables.  Guard 1.2 can continue to run in the background.  Once complete, Guard 2.0 can be started.&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
The following gives an overview of the most important settings to enable Guard for users on the Open-Xchange installation. Some of those settings have to be modified in order to establish the database and REST API access from the Guard service. All settings relating to the Guard backend component are located in the configuration file guard.properties located in /opt/open-xchange/guard/etc. The default configuration should be sufficient for a basic &amp;quot;up-and-running&amp;quot; setup (with the exception of defining the database username and password). Please refer to the inline documentation of the configuration file for more advanced options.  Additional information can be found here [[AppSuite:GuardConfiguration|Guard Configuration]]&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
Open-Xchange config_db host - Guard will establish a connection to the config_db&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.configdbHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database for storing Guard user information, main lookup tables&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardDatabaseHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Guard database that stores keys for guest users.  May be the same as above.  New guest shards will be created on this database as needed.  If not supplied, will use the oxguardDatabaseHostname&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxguardShardDatabase=localhost&lt;br /&gt;
&lt;br /&gt;
Username and Password for the databases above&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.databaseUsername=openexchange&lt;br /&gt;
 com.openexchange.guard.databasePassword=db_password&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API host&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=localhost&lt;br /&gt;
&lt;br /&gt;
Open-Xchange REST API username and password (need to be defined in the OX backend in the &amp;quot;Configure services&amp;quot; below)&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiUsername=apiusername&lt;br /&gt;
 com.openexchange.guard.restApiPassword=apipassword&lt;br /&gt;
&lt;br /&gt;
External URL for this Open-Xchange installation. This setting will be used to generate the link to the secure content for external recipients&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.externalEmailURL=URL_TO_OX&lt;br /&gt;
&lt;br /&gt;
== Configure services ==&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
Configure the mod_proxy_http module by adding the Guard API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Redhat Enterprise Linux 6 or CentOS 6&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/httpd/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Debian GNU/Linux 7.0 and SUSE Linux Enterprise Server 11&#039;&#039;&#039;&lt;br /&gt;
 $ vim /etc/apache2/conf.d/proxy_http.conf&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguard&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all&amp;lt;br&amp;gt;&lt;br /&gt;
        BalancerMember http://localhost:8080/oxguard timeout=1800 smax=0 ttl=60 retry=60 loadfactor=100 route=OX1&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 ProxyPass /appsuite/api/oxguard balancer://oxguard&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; The Guard API settings must be inserted before the existing “&amp;lt;Proxy /appsuite/api&amp;gt;” parameter.&lt;br /&gt;
&lt;br /&gt;
After the configuration is done, restart the Apache webserver&lt;br /&gt;
&lt;br /&gt;
 $ apachectl restart&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Starting in Guard 2.0, there is an administrative component to the Open-Xchange backend that notifies Guard when a user or context is deleted.  Install the package open-xchange-guard-backend-plugin on all OX backend servers.  On a debian install, this command would be:&lt;br /&gt;
&lt;br /&gt;
 apt-get install open-xchange-guard-backend-plugin&lt;br /&gt;
&lt;br /&gt;
There is also a configuration file for the OX backend regarding some general Guard settings.  Please remove comments in front of the following settings to the configuration file guard.properties on the Open-Xchange backend servers:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # OX GUard general permission, required to activate Guard in the AppSuite UI.&lt;br /&gt;
 com.openexchange.capability.guard=true&lt;br /&gt;
 &lt;br /&gt;
 # Default theme template id for all users that have no custom template id configured.&lt;br /&gt;
 com.openexchange.guard.templateID=0&lt;br /&gt;
&lt;br /&gt;
Configure the API username and password that you assigned to Guard in the server.properties file&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
 # Specify the user name used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.login=apiusername&lt;br /&gt;
 &lt;br /&gt;
 # Specify the password used for HTTP basic auth by internal REST servlet&lt;br /&gt;
 com.openexchange.rest.services.basic-auth.password=apipassword&lt;br /&gt;
&lt;br /&gt;
Finally, the OX backend needs to know where the Guard server is located.  This is used to notify the Guard server of changes in users, and to send emails marked for signature.  The URL for the Guard server should include the url suffix /guardadmin .  In the event of a cluster setup, any Guard server can be referenced here, as it is not session specific, though ideally would have a HTTP load balancer/failover URL&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
 # Specifies the URI to the OX Guard end-point; e.g. http://guard.host.invalid:8081/guardadmin&lt;br /&gt;
 # Default is empty&lt;br /&gt;
 com.openexchange.guard.endpoint=http://guardserver:8080/guardadmin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart the OX backend&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange restart&lt;br /&gt;
&lt;br /&gt;
=== SELinux ===&lt;br /&gt;
&lt;br /&gt;
Running SELinux prohibits your local Open-Xchange backend service to connect to localhost:8080, which is where the Guard backend service listens to. In order to allow localhost connections to 8080 execute the following:&lt;br /&gt;
&lt;br /&gt;
 $ setsebool -P httpd_can_network_connect 1&lt;br /&gt;
&lt;br /&gt;
=== RHEL (Redhat) ===&lt;br /&gt;
&lt;br /&gt;
Occasionally, the encoding of special characters in the translation files don&#039;t work properly in RHEL.  To fix this, please edit the file /opt/open-xchange/guard/etc/ox-scriptconf.sh and add to the JAVA_XTRAOPTS -DFile.encoding=UTF-8&lt;br /&gt;
&lt;br /&gt;
  JAVA_XTRAOPTS=&amp;quot;-Xmx1024m -Dfile.encoding=UTF-8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Initiating the Guard database and key store ==&lt;br /&gt;
&lt;br /&gt;
Once the Guard configuration (database and backend configuration) and the service configuration has been applied, the Guard administration script needs to be executed in order to create the Guard databases. The administration script also takes care of the creation of the master keys and the master password file in /opt/open-xchange/guard. The initiation only needs to be done once for a multi server setup, for details please see “Optional / Clustering”.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; If you run a cluster of OX / Guard nodes, only execute this command on ONE node. Not on all nodes!  See [[AppSuite:GuardCluster | Ox Guard Clustering]] for details.&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard init&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; It is important to understand that the master password file located at /opt/open-xchange/guard/oxguardpass is required to reset user passwords, without them the administrator will not be able to reset user passwords anymore in the future. The file contains the passwords used to encrypt the master database key, as well as passwords used to encrypt protected data in the users table.  It must be the same on all Guard servers.&lt;br /&gt;
&lt;br /&gt;
== Test Setup ==&lt;br /&gt;
&lt;br /&gt;
Not required, but it is a good idea to test the Guard setup before starting the initialization.  The test function will verify that Guard has a good connection to the OX backend, and that it can resolve email addresses to users.&lt;br /&gt;
&lt;br /&gt;
To test, use an email address that exists on the OX backend (john@example.com for this example)&lt;br /&gt;
&lt;br /&gt;
 /opt/open-xchange/guard/sbin/guard test john@example.com&lt;br /&gt;
&lt;br /&gt;
Guard should return information from the OX backend regarding the user associated with john@example.com.  Problems resolving information for the user should be resolved before using Guard.  Check Rest API passwords and settings if errors returned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start Guard ==&lt;br /&gt;
&lt;br /&gt;
The services have been configured and the database has been initiated, it&#039;s time to start Guard&lt;br /&gt;
&lt;br /&gt;
 $ /etc/init.d/open-xchange-guard start&lt;br /&gt;
&lt;br /&gt;
== Enabling Guard for Users ==&lt;br /&gt;
&lt;br /&gt;
Guard provides two capabilities for users in the environment as well as a basic &amp;quot;core&amp;quot; level:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Guard:&#039;&#039;&#039; com.openexchange.capability.guard&lt;br /&gt;
* &#039;&#039;&#039;Guard Mail:&#039;&#039;&#039; com.openexchange.capability.guard-mail&lt;br /&gt;
* &#039;&#039;&#039;Guard Drive:&#039;&#039;&#039; com.openexchange.capability.guard-drive&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;core&amp;quot; Guard enabled a basic read functionality for Guard encrypted emails.  We recommend enabling this for all users, as this allows all recipients to read Guard emails sent to them.  Great opportunity for upsell.  Recipients with only Guard enabled can then do a secure reply to the sender, but they can&#039;t start a new email or add recipients.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Guard Mail&amp;quot; and &amp;quot;Guard Drive&amp;quot; are additional options for users.  &amp;quot;Guard Mail&amp;quot; allows users the full functionality of Guard emails.  &amp;quot;Guard Drive&amp;quot; allows for encryption and decryption of drive files.&lt;br /&gt;
&lt;br /&gt;
Each of those two Guard components is enabled for all users that have the according capability configured. Please note that users need to have the Drive permission set to use Guard Drive. So the users that have Guard Drive enabled must be a subset of those users with OX Drive permission. Since v7.6.0 we enforce this via the default configuration. Those capabilities can be activated for specific user by using the Open-Xchange provisioning scripts:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Mail:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-mail=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guard Drive:&#039;&#039;&#039;&lt;br /&gt;
 $ /opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P admin_password -u testuser --config/com.openexchange.capability.guard-drive=true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Guard Drive requires Guard Mail to be configured for the user as well.  In addition, these capabilities may be configured globally by editing the guard.properties file on the OX bakend&lt;br /&gt;
&lt;br /&gt;
== Optional ==&lt;br /&gt;
&lt;br /&gt;
=== SSL Configuration ===&lt;br /&gt;
&lt;br /&gt;
Per default the connection between the Guard backend and the configured Open-Xchange REST API host is unencrypted. Even though that Guard will never transmit unencrypted emails to or from the REST API you can optionally encrypt the whole communication between those two components by using SSL. To enforce Guard to use SSL in the communication between those two components enable the follwing configuration in Guard configuration file. &lt;br /&gt;
&lt;br /&gt;
  $ vim /opt/open-xchange/guard/etc/guard.properties&lt;br /&gt;
&lt;br /&gt;
  com.openexchange.guard.backend_ssl=true&lt;br /&gt;
&lt;br /&gt;
The Guard backend is most commonly placed behind a load balancer (APACHE or other) and defaults to HTTP for incoming and outgoing traffic, using the load balancer to do SSL with the users.  If you want Guard to use SSL for all communications, you need to set up the SSL key to use.&lt;br /&gt;
&lt;br /&gt;
Please note that you have to provide access to the certificates.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.useSSL: true&lt;br /&gt;
 com.openexchange.guard.SSLPort: 8443&lt;br /&gt;
 com.openexchange.guard.SSLKeyStore: //keystore location//&lt;br /&gt;
 com.openexchange.guard.SSLKeyName: //alias name here//&lt;br /&gt;
 com.openexchange.guard.SSLKeyPass: //ssl password//&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; Enabling SSL might decrease performance and/or create more system load due to additional encoding of the HTTP streams.&lt;br /&gt;
&lt;br /&gt;
For details on SSL installation and configuration, please see [[AppSuite:GuardSSL|OX Guard SSL Installation]]&lt;br /&gt;
&lt;br /&gt;
== Recipient key detection ==&lt;br /&gt;
&lt;br /&gt;
=== Local ===&lt;br /&gt;
&lt;br /&gt;
Guard needs to determine if an email recipients email address is an internal or external (non-ox) user.  &lt;br /&gt;
&lt;br /&gt;
To detect if the recipient is an account on the same OX Guard system there is a mechanism needed to map a recipient mail address to the correct local OX context. The default implementation delivered in the product achieves that by looking up the mail domain (@example.com) within the list of context mappings. That is at least not possible in case of ISPs where different users/contexts use the same mail domain. In case your OX system does not use mail domains in context mappings it is required to deploy an OX OSGi bundle implementing the com.openexchange.mailmapping.MailResolver class or by interfacing Guard with your mail resolver system.&lt;br /&gt;
Please see [[Appsuite:GuardMailResolver|OX Guard Mail Resolver]] for details&lt;br /&gt;
&lt;br /&gt;
=== External ===&lt;br /&gt;
&lt;br /&gt;
Starting with Guard 2.0, Guard will use public PGP Key servers if configured to find PGP Public keys.  In addition, Guard will also look up SRV records for PGP Key servers for a recipients domain.  This follows the standards [http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00#page-9 OpenPGP Draft].&lt;br /&gt;
&lt;br /&gt;
External PGP servers to use can be configured in the guard.properties file on the Guard servers.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.publicPGPDirectory = hkp://keys.gnupg.net:11371, hkp://pgp.mit.edu:11371&lt;br /&gt;
&lt;br /&gt;
If you would like this Guard installation discoverable by other Guard servers, then create a SRV record for each domain (&amp;quot;example.com&amp;quot; in this illustration)&lt;br /&gt;
 &lt;br /&gt;
 _hkp._tcp.open-xchange.com. 28800 IN    SRV     10 1 80 appsuite.example.com.&lt;br /&gt;
&lt;br /&gt;
You will also need to make additional entries in the apache proxy_http.conf file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardpgp&amp;gt;&lt;br /&gt;
        Order deny,allow&lt;br /&gt;
        Allow from all, add&lt;br /&gt;
        BalancerMember http://guardserver:8080/pgp timeout=1800 smax=0 ttl=60 retry=60 loadfactor=50 route=OX3&lt;br /&gt;
        ProxySet stickysession=JSESSIONID|jsessionid scolonpathdelim=ON&lt;br /&gt;
        SetEnv proxy-initial-not-pooled&lt;br /&gt;
        SetEnv proxy-sendchunked&lt;br /&gt;
   &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Proxy /pks&amp;gt;&lt;br /&gt;
        ProxyPass balancer://oxguardpgp&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please Note&#039;&#039;&#039; PGP Public key servers by default append use the url server/pks when the record is obtained from a SRV record.  The proxy above routes anything with the apache domain/pks to the Oxguard PGP server&lt;br /&gt;
&lt;br /&gt;
== Clustering ==&lt;br /&gt;
&lt;br /&gt;
You can run multiple OX Guard servers in your environment to ensure high availability or enhance scalability. OX Guard integrates seamlessly into the existing Open-Xchange infrastructure by using the existing interface standards and is therefor transparent to the environment. A couple of things have to be prepared in order to loosely couple OX Guard servers with Open-Xchange servers in a cluster.&lt;br /&gt;
&lt;br /&gt;
=== MySQL ===&lt;br /&gt;
&lt;br /&gt;
The MySQL servers need to be configured in order to allow access to the configdb of Open-Xchange. To do so you need to set the following configuration in the MySQL my.cnf:&lt;br /&gt;
&lt;br /&gt;
 bind = 0.0.0.0&lt;br /&gt;
&lt;br /&gt;
This allows the Guard backend to bind to the MySQL host which is configured in the guard.properties file with com.openexchange.guard.configdbHostname. After the bind for the MySQL instance is configured and the OX Guard backend would be able to connect to the configured host, you have to grant access for the OX Guard service on the MySQL instance to manage the databases. Do so by connecting to the MySQL server via the mysql client. Authenticate if necessary and execute the following, please note that you have to modify the hostname / IP address of the client who should be able to connect to this database, it should include all possible OX Guard servers:&lt;br /&gt;
&lt;br /&gt;
 GRANT ALL PRIVILEGES ON *.* TO &#039;openexchange&#039;@&#039;oxguard.example.com&#039; IDENTIFIED BY ‘secret’;&lt;br /&gt;
&lt;br /&gt;
=== Apache ===&lt;br /&gt;
&lt;br /&gt;
OX Guard uses the Open-Xchange REST API to store and fetch data from the Open-Xchange databases. The REST API is a servlet running in the Grizzly container. By default it is not exposed as a servlet through Apache and is only accessibly via port 8009. In order to use Apache&#039;s load balancing via mod_proxy we need to add a servlet called &amp;quot;preliminary&amp;quot; to proxy_http.conf, example based on a clustered mod_proxy configuration:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Location /preliminary&amp;gt;&lt;br /&gt;
      Order Deny,Allow&lt;br /&gt;
      Deny from all&lt;br /&gt;
      # Only allow access from Guard servers within the network. Do not expose this&lt;br /&gt;
      # location outside of your network. In case you use a load balancing service in front&lt;br /&gt;
      # of your Apache infrastructure you should make sure that access to /preliminary will&lt;br /&gt;
      # be blocked from the internet / outside clients. Examples:&lt;br /&gt;
      # Allow from 192.168.0.1&lt;br /&gt;
      # Allow from 192.168.1.1 192.168.1.2&lt;br /&gt;
      # Allow from 192.168.0.&lt;br /&gt;
      ProxyPass /preliminary balancer://oxcluster/preliminary&lt;br /&gt;
 &amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that the balancer is properly configured in the mod_proxy configuration. Examples on how to do so can be found in our clustering configuration for Open-Xchange AppSuite. Like explained in the example above, please make sure that this location is only available in your internal network, there is no need to expose /preliminary to the public, it is only used by Guard servers to connect to the OX backend. If you have a load balancer in front of the Apache cluster you should consider blocking access to /preliminary from WAN to restrict access to the servlet to internal network services only.&lt;br /&gt;
&lt;br /&gt;
Now add the OX Guard BalancerMembers to the oxguard balancer configuration (also in proxy_http.conf) to address all your OX Guard nodes in the cluster in this balancer configuration. The configuration has to be applied to all Apache nodes within the cluster.&lt;br /&gt;
&lt;br /&gt;
If the Apache server is a dedicated server / instance you also have to install the OX Guard UI-Static package on all Apache nodes in the cluster in order to provide static files like images or CSS to the OX Guard client. Example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui-static&lt;br /&gt;
&lt;br /&gt;
=== Open-Xchange ===&lt;br /&gt;
&lt;br /&gt;
Disable the Open-Xchange IPCheck for session verification. This is required because OX Guard will use the users session cookie to connect to the Open-Xchange REST API, but as a different IP address than the OX Guard server has been used during authentication the request would fail if you don&#039;t disable the IPCheck:&lt;br /&gt;
&lt;br /&gt;
 $ vim /opt/open-xchange/etc/server.properties&lt;br /&gt;
&lt;br /&gt;
and set:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.IPCheck=false&lt;br /&gt;
&lt;br /&gt;
The OX Guard UI package has to be installed on all Open-Xchange backend nodes as well, example for Debian (the OX Guard repository has to be configured in the package management prior):&lt;br /&gt;
&lt;br /&gt;
 $ apt-get install open-xchange-guard-ui&lt;br /&gt;
&lt;br /&gt;
Restart the Open-Xchange service afterwards.&lt;br /&gt;
&lt;br /&gt;
=== OX Guard ===&lt;br /&gt;
&lt;br /&gt;
For details in clustering Guard servers, please see [[AppSuite:GuardCluster | OxGuard Clustering]] .  It is critical that all Guard servers have the same oxguardpass file.  Please see the clustering link for details.  Do not run ./guard init on more than one server.&lt;br /&gt;
&lt;br /&gt;
After all the services like MySQL, Apache and Open-Xchange have been configured you need to update the OX Guard backend configuration to point to the correct API endpoints. Set the REST API endpoint to an Apache server by setting the following value in /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.restApiHostname=apache.example.com&lt;br /&gt;
&lt;br /&gt;
Per default Guard will try to connect to port 8009 to this host, but as we configured the REST API to be proxies thorugh the serblet /preliminary on every Apache we now also need to change the target port for the REST API. You can do so by adding the following line into /opt/open-xchange/guard/etc/guard.properties:&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.oxBackendPort=80&lt;br /&gt;
&lt;br /&gt;
Please also change all settings in regards to MySQL like com.openexchange.guard.configdbHostname, com.openexchange.guard.oxguardDatabaseHostname, com.openexchange.guard.databaseUsername or com.openexchange.guard.databasePassword. Afterwards restart the OX Guard service and check the logfile if the OX Guard backend is able to connect to the configured REST API.&lt;br /&gt;
&lt;br /&gt;
== Multi Node ==&lt;br /&gt;
&lt;br /&gt;
If you have multiple OX and Guard installations, please see the following documentation [[AppSuite:OX_Guard_Modular|OX Guard Modular Setup]]&lt;br /&gt;
&lt;br /&gt;
= Support API =&lt;br /&gt;
&lt;br /&gt;
The OX Guard Support API enables administrative access to various functions for maintaining OX Guard from a client in a role as a support employee. A client has to do a BASIC AUTH authentication in order to access the API. Username and password can be configured in the guard.properties file using the following settings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    # Specify the username and password for accessing the Support API of Guard&lt;br /&gt;
    com.openexchange.guard.supportapiusername=&lt;br /&gt;
    com.openexchange.guard.supportapipassword=&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In contrast to the rest of the OX Guard requests, the OX Guard support API requests are accessible using: /guardsupport. This distinction allows more flexible configuration since the support API should not always be accessible from everywhere. But if you want to expose the Guard Support API using Apache a very basic Apache configuration could look like this:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning&#039;&#039;&#039; Exposing the support API to the internet could be huge security risk.  Only add to apache if you know what you are doing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass http://localhost:8080/guardsupport                                                    &lt;br /&gt;
        #...&lt;br /&gt;
   &amp;lt;/Location&amp;gt;      &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it might also be preferable to add a new balancer directive for guardsupport&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &amp;lt;Location /appsuite/api/guardsupport&amp;gt;                                                               &lt;br /&gt;
        ProxyPass balancer://oxguardsupport                                                           &lt;br /&gt;
 &amp;lt;/Location&amp;gt; &lt;br /&gt;
 &amp;lt;Proxy balancer://oxguardsupport&amp;gt;                                                                &lt;br /&gt;
       #...&lt;br /&gt;
        BalancerMember http://localhost:8080/guardsupport #...&lt;br /&gt;
       #...&lt;br /&gt;
 &amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reset password ===&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=reset_password&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Performs a password reset and sends a new random generated password to a specified email address by the user or a default address if the user did not specify an email address. The reset password function is currently not available for guest users.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to reset the password for&lt;br /&gt;
* &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; (optional) – The email address to send the new password to, if the user did not specify a secondary email address&lt;br /&gt;
&lt;br /&gt;
=== Expose key ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=expose_key&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Marks a deleted user key temporary as “exposed” and creates a unique URL for downloading the exposed key.&lt;br /&gt;
Automatic resetting of exposed keys to &amp;quot;not exposed&amp;quot; is scheduled once a day and resets all exposed keys which have been exposed before X hours, where X can be configured using com.openexchange.guard.exposedKeyDurationInHours in the guard.properties files.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; – The email address of the user to expose the deleted keys for&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; – The context id&lt;br /&gt;
&lt;br /&gt;
Response:&lt;br /&gt;
An URL pointing to the downloadable exposed keys&lt;br /&gt;
&lt;br /&gt;
=== Delete user ===&lt;br /&gt;
&lt;br /&gt;
POST &amp;lt;code&amp;gt;/guardsupport/?action=delete_user&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Deletes all keys related to a certain user. The keys are backed up and can be exposed using the “expose_key” call.&lt;br /&gt;
&lt;br /&gt;
Since Guard 2.0&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;user_id&amp;lt;/code&amp;gt; – The user&#039;s id&lt;br /&gt;
* &amp;lt;code&amp;gt;cid&amp;lt;/code&amp;gt; - The context id&lt;br /&gt;
&lt;br /&gt;
= Customization =&lt;br /&gt;
&lt;br /&gt;
Guard&#039;s templates are customizable at the user and context level.  Please see [[AppSuite:GuardCustomization| Customization]] for details&lt;br /&gt;
&lt;br /&gt;
= Entropy =&lt;br /&gt;
&lt;br /&gt;
Guard requires entropy (randomness) to generate the private/public keys that are used.  Depending on the server and it&#039;s environment, this may become a problem.  Please see [[AppSuite:GuardEntropy | Entropy]] for a possible solution&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Upgrade_from_6.22_for_CentOS6&amp;diff=21283</id>
		<title>AppSuite:Upgrade from 6.22 for CentOS6</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Upgrade_from_6.22_for_CentOS6&amp;diff=21283"/>
		<updated>2016-01-12T14:43:00Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: Switchet Repo by Text to Repo by Template; Added LDB-Credentials for the Update paths&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AppSuiteUpgradeIntroduction|distroname=CentOS 6|distro=CentOS6|distronameshort=CentOS 6}}&lt;br /&gt;
&lt;br /&gt;
= Update the software =&lt;br /&gt;
&lt;br /&gt;
== Update Open-Xchange Repositories ==&lt;br /&gt;
&lt;br /&gt;
If not already configured, we make the latest OX6 repos available by ajdusting the file &amp;lt;code&amp;gt;/etc/yum.repos.d/ox.repo&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=OX6/6.22|pc2n=rhelname|pc2v=RHEL6|frontend|backend|usm}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=OX6/6.22|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|updates/frontend|updates/backend|updates/usm}}&lt;br /&gt;
&lt;br /&gt;
Verify the repos:&lt;br /&gt;
&lt;br /&gt;
 # yum repolist&lt;br /&gt;
&lt;br /&gt;
It may be necessary to&lt;br /&gt;
&lt;br /&gt;
 # yum clean all&lt;br /&gt;
&lt;br /&gt;
to make your new repos appear.&lt;br /&gt;
&lt;br /&gt;
== Update packages ==&lt;br /&gt;
&lt;br /&gt;
Download and update all installed packages: &lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
&lt;br /&gt;
This will install new config files of some packages as &amp;lt;code&amp;gt;.rpmnew&amp;lt;/code&amp;gt; files. Check those files to identlfy files where you want to keep the existing version, put the new version in place, or merge them.&lt;br /&gt;
&lt;br /&gt;
=== Replace AJP with Grizzly ===&lt;br /&gt;
&lt;br /&gt;
You need to decide whether whether you want to replace AJP by Grizzly now, or later. AJP is deprecated with OX App Suite 7.4 / OX6 v6.22.4 released in September 2013 and will be discontinued with OX App Suite 7.6 in April 2014. For more information, see [[AppSuite:Grizzly]].&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeChangesByVersion}}&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeRestartOpenXchange}}&lt;br /&gt;
&lt;br /&gt;
= Add the App Suite UI =&lt;br /&gt;
&lt;br /&gt;
== Install the packages ==&lt;br /&gt;
&lt;br /&gt;
Add App Suite repositories to your sources.list:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|appsuiteui}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=updates/RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|appsuiteui}}&lt;br /&gt;
&lt;br /&gt;
Since the OX App Suite backend is the same as the OX6 backend, there is no need to add the backend repository here. But, on the other hand, you may add it here, and remove the backend repository from the OX6 repository list.&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|backend|usm}}&lt;br /&gt;
 &lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=updates/RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend|usm}}&lt;br /&gt;
&lt;br /&gt;
Then, install packages:&lt;br /&gt;
&lt;br /&gt;
 # yum install open-xchange-appsuite open-xchange-appsuite-backend open-xchange-appsuite-manifest&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeAdjustApacheConfig|filename=ox.conf|distro=RHEL6|apacheservice=httpd}}&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeRemoveOX6GUI|listpackages=rpm -qa|uninstallpackages=yum remove|apacheconf=/etc/httpd/conf.d/ox.conf|distro=RHEL6}}&lt;br /&gt;
&lt;br /&gt;
== Leftover configuration files and runtime data ==&lt;br /&gt;
&lt;br /&gt;
After the update you may see leftover configuration files and runtime data below &amp;lt;code&amp;gt;/opt/open-xchange/etc&amp;lt;/code&amp;gt;. It is safe to remove all files ending in .rpmsave or .rpmnew once you are confident that your configuration is working after the update.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Upgrade_from_6.22_for_CentOS6&amp;diff=21280</id>
		<title>AppSuite:Upgrade from 6.22 for CentOS6</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Upgrade_from_6.22_for_CentOS6&amp;diff=21280"/>
		<updated>2016-01-12T14:40:44Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: Switchet Repo by Text to Repo by Template; Added LDB-Credentials for the Update paths&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AppSuiteUpgradeIntroduction|distroname=CentOS 6|distro=CentOS6|distronameshort=CentOS 6}}&lt;br /&gt;
&lt;br /&gt;
= Update the software =&lt;br /&gt;
&lt;br /&gt;
== Update Open-Xchange Repositories ==&lt;br /&gt;
&lt;br /&gt;
If not already configured, we make the latest OX6 repos available by ajdusting the file &amp;lt;code&amp;gt;/etc/yum.repos.d/ox.repo&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=OX6/6.22|pc2n=rhelname|pc2v=RHEL6|frontend|backend|usm}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=OX6/6.22|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|updates/frontend|updates/backend|updates/usm}}&lt;br /&gt;
&lt;br /&gt;
Verify the repos:&lt;br /&gt;
&lt;br /&gt;
 # yum repolist&lt;br /&gt;
&lt;br /&gt;
It may be necessary to&lt;br /&gt;
&lt;br /&gt;
 # yum clean all&lt;br /&gt;
&lt;br /&gt;
to make your new repos appear.&lt;br /&gt;
&lt;br /&gt;
== Update packages ==&lt;br /&gt;
&lt;br /&gt;
Download and update all installed packages: &lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
&lt;br /&gt;
This will install new config files of some packages as &amp;lt;code&amp;gt;.rpmnew&amp;lt;/code&amp;gt; files. Check those files to identlfy files where you want to keep the existing version, put the new version in place, or merge them.&lt;br /&gt;
&lt;br /&gt;
=== Replace AJP with Grizzly ===&lt;br /&gt;
&lt;br /&gt;
You need to decide whether whether you want to replace AJP by Grizzly now, or later. AJP is deprecated with OX App Suite 7.4 / OX6 v6.22.4 released in September 2013 and will be discontinued with OX App Suite 7.6 in April 2014. For more information, see [[AppSuite:Grizzly]].&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeChangesByVersion}}&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeRestartOpenXchange}}&lt;br /&gt;
&lt;br /&gt;
= Add the App Suite UI =&lt;br /&gt;
&lt;br /&gt;
== Install the packages ==&lt;br /&gt;
&lt;br /&gt;
Add App Suite repositories to your sources.list:&lt;br /&gt;
&lt;br /&gt;
 [appsuite-frontend]&lt;br /&gt;
 name=Appsuite-frontend&lt;br /&gt;
 baseurl=http://software.open-xchange.com/products/appsuite/stable/appsuiteui/RHEL6/&lt;br /&gt;
 gpgkey=http://software.open-xchange.com/oxbuildkey.pub&lt;br /&gt;
 enabled=1&lt;br /&gt;
 gpgcheck=1&lt;br /&gt;
 metadata_expire=0m&lt;br /&gt;
 &lt;br /&gt;
 #[appsuite-backend]&lt;br /&gt;
 #name=Appsuite-backend&lt;br /&gt;
 #baseurl=http://software.open-xchange.com/products/appsuite/stable/backend/RHEL6/&lt;br /&gt;
 #gpgkey=http://software.open-xchange.com/oxbuildkey.pub&lt;br /&gt;
 #enabled=1&lt;br /&gt;
 #gpgcheck=1&lt;br /&gt;
 #metadata_expire=0m&lt;br /&gt;
 # &lt;br /&gt;
 #[appsuite-usm]&lt;br /&gt;
 #name=Appsuite-usm&lt;br /&gt;
 #baseurl=http://software.open-xchange.com/products/appsuite/stable/usm/RHEL6/&lt;br /&gt;
 #gpgkey=http://software.open-xchange.com/oxbuildkey.pub&lt;br /&gt;
 #enabled=1&lt;br /&gt;
 #gpgcheck=1&lt;br /&gt;
 #metadata_expire=0m&lt;br /&gt;
&lt;br /&gt;
Since the OX App Suite backend is the same as the OX6 backend, there is no need to add the backend repository here. But, on the other hand, you may add it here, and remove the backend repository from the OX6 repository list.&lt;br /&gt;
&lt;br /&gt;
Then, install packages:&lt;br /&gt;
&lt;br /&gt;
 # yum install open-xchange-appsuite open-xchange-appsuite-backend open-xchange-appsuite-manifest&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeAdjustApacheConfig|filename=ox.conf|distro=CentOS_6|apacheservice=httpd}}&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeRemoveOX6GUI|listpackages=rpm -qa|uninstallpackages=yum remove|apacheconf=/etc/httpd/conf.d/ox.conf|distro=CentOS_6}}&lt;br /&gt;
&lt;br /&gt;
== Leftover configuration files and runtime data ==&lt;br /&gt;
&lt;br /&gt;
After the update you may see leftover configuration files and runtime data below &amp;lt;code&amp;gt;/opt/open-xchange/etc&amp;lt;/code&amp;gt;. It is safe to remove all files ending in .rpmsave or .rpmnew once you are confident that your configuration is working after the update.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Upgrade_from_6.22_for_RHEL6&amp;diff=21277</id>
		<title>AppSuite:Upgrade from 6.22 for RHEL6</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Upgrade_from_6.22_for_RHEL6&amp;diff=21277"/>
		<updated>2016-01-12T14:39:03Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: Fixed Layout&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AppSuiteUpgradeIntroduction|distroname=RHEL 6|distro=RHEL6|distronameshort=RHEL 6}}&lt;br /&gt;
&lt;br /&gt;
= Update the software =&lt;br /&gt;
&lt;br /&gt;
== Update Open-Xchange Repositories ==&lt;br /&gt;
&lt;br /&gt;
If not already configured, we make the latest OX6 repos available by ajdusting the file &amp;lt;code&amp;gt;/etc/yum.repos.d/ox.repo&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=OX6/6.22|pc2n=rhelname|pc2v=RHEL6|frontend|backend|usm}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=OX6/6.22|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|updates/frontend|updates/backend|updates/usm}}&lt;br /&gt;
&lt;br /&gt;
Verify the repos:&lt;br /&gt;
&lt;br /&gt;
 # yum repolist&lt;br /&gt;
&lt;br /&gt;
It may be necessary to&lt;br /&gt;
&lt;br /&gt;
 # yum clean all&lt;br /&gt;
&lt;br /&gt;
to make your new repos appear.&lt;br /&gt;
&lt;br /&gt;
== Update packages ==&lt;br /&gt;
&lt;br /&gt;
Download and update all installed packages: &lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
&lt;br /&gt;
This will install new config files of some packages as &amp;lt;code&amp;gt;.rpmnew&amp;lt;/code&amp;gt; files. Check those files to identlfy files where you want to keep the existing version, put the new version in place, or merge them.&lt;br /&gt;
&lt;br /&gt;
=== Replace AJP with Grizzly ===&lt;br /&gt;
&lt;br /&gt;
You need to decide whether you want to replace AJP by Grizzly now, or later. AJP is deprecated with OX App Suite 7.4 / OX6 v6.22.4 released in September 2013 and will be discontinued with OX App Suite 7.6 in April 2014. For more information, see [[AppSuite:Grizzly]].&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeChangesByVersion}}&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeRestartOpenXchange}}&lt;br /&gt;
&lt;br /&gt;
= Add the App Suite UI =&lt;br /&gt;
&lt;br /&gt;
== Install the packages ==&lt;br /&gt;
&lt;br /&gt;
Add App Suite repositories to your sources.list:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|appsuiteui}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=updates/RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|appsuiteui}}&lt;br /&gt;
&lt;br /&gt;
Since the OX App Suite backend is the same as the OX6 backend, there is no need to add the backend repository here. But, on the other hand, you may add it here, and remove the backend repository from the OX6 repository list.&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|backend|usm}}&lt;br /&gt;
 &lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=updates/RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend|usm}}&lt;br /&gt;
&lt;br /&gt;
Then, install packages:&lt;br /&gt;
&lt;br /&gt;
 # yum install open-xchange-appsuite open-xchange-appsuite-backend open-xchange-appsuite-manifest&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeAdjustApacheConfig|filename=ox.conf|distro=RHEL6|apacheservice=httpd}}&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeRemoveOX6GUI|listpackages=rpm -qa|uninstallpackages=yum remove|apacheconf=/etc/httpd/conf.d/ox.conf|distro=RHEL6}}&lt;br /&gt;
&lt;br /&gt;
== Leftover configuration files and runtime data ==&lt;br /&gt;
&lt;br /&gt;
After the update you may see leftover configuration files and runtime data below &amp;lt;code&amp;gt;/opt/open-xchange/etc&amp;lt;/code&amp;gt;. It is safe to remove all files ending in .rpmsave or .rpmnew once you are confident that your configuration is working after the update.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Upgrade_from_6.22_for_RHEL6&amp;diff=21274</id>
		<title>AppSuite:Upgrade from 6.22 for RHEL6</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Upgrade_from_6.22_for_RHEL6&amp;diff=21274"/>
		<updated>2016-01-12T14:36:14Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: Switchet from text to template Repositorys; Added Update Repositorys&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AppSuiteUpgradeIntroduction|distroname=RHEL 6|distro=RHEL6|distronameshort=RHEL 6}}&lt;br /&gt;
&lt;br /&gt;
= Update the software =&lt;br /&gt;
&lt;br /&gt;
== Update Open-Xchange Repositories ==&lt;br /&gt;
&lt;br /&gt;
If not already configured, we make the latest OX6 repos available by ajdusting the file &amp;lt;code&amp;gt;/etc/yum.repos.d/ox.repo&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=OX6/6.22|pc2n=rhelname|pc2v=RHEL6|frontend|backend|usm}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=OX6/6.22|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|updates/frontend|updates/backend|updates/usm}}&lt;br /&gt;
&lt;br /&gt;
Verify the repos:&lt;br /&gt;
&lt;br /&gt;
 # yum repolist&lt;br /&gt;
&lt;br /&gt;
It may be necessary to&lt;br /&gt;
&lt;br /&gt;
 # yum clean all&lt;br /&gt;
&lt;br /&gt;
to make your new repos appear.&lt;br /&gt;
&lt;br /&gt;
== Update packages ==&lt;br /&gt;
&lt;br /&gt;
Download and update all installed packages: &lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
&lt;br /&gt;
This will install new config files of some packages as &amp;lt;code&amp;gt;.rpmnew&amp;lt;/code&amp;gt; files. Check those files to identlfy files where you want to keep the existing version, put the new version in place, or merge them.&lt;br /&gt;
&lt;br /&gt;
=== Replace AJP with Grizzly ===&lt;br /&gt;
&lt;br /&gt;
You need to decide whether you want to replace AJP by Grizzly now, or later. AJP is deprecated with OX App Suite 7.4 / OX6 v6.22.4 released in September 2013 and will be discontinued with OX App Suite 7.6 in April 2014. For more information, see [[AppSuite:Grizzly]].&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeChangesByVersion}}&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeRestartOpenXchange}}&lt;br /&gt;
&lt;br /&gt;
= Add the App Suite UI =&lt;br /&gt;
&lt;br /&gt;
== Install the packages ==&lt;br /&gt;
&lt;br /&gt;
Add App Suite repositories to your sources.list:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|appsuiteui}}&lt;br /&gt;
&lt;br /&gt;
 if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
 following and add the ldb account data to the url so that the most recent&lt;br /&gt;
 packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=updates/RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|appsuiteui}}&lt;br /&gt;
&lt;br /&gt;
Since the OX App Suite backend is the same as the OX6 backend, there is no need to add the backend repository here. But, on the other hand, you may add it here, and remove the backend repository from the OX6 repository list.&lt;br /&gt;
&lt;br /&gt;
{{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=RHEL6|backend|usm}}&lt;br /&gt;
 &lt;br /&gt;
 if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
 following and add the ldb account data to the url so that the most recent&lt;br /&gt;
 packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=products/appsuite/stable|pc2n=rhelname|pc2v=updates/RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|backend|usm}}&lt;br /&gt;
&lt;br /&gt;
Then, install packages:&lt;br /&gt;
&lt;br /&gt;
 # yum install open-xchange-appsuite open-xchange-appsuite-backend open-xchange-appsuite-manifest&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeAdjustApacheConfig|filename=ox.conf|distro=RHEL6|apacheservice=httpd}}&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeRemoveOX6GUI|listpackages=rpm -qa|uninstallpackages=yum remove|apacheconf=/etc/httpd/conf.d/ox.conf|distro=RHEL6}}&lt;br /&gt;
&lt;br /&gt;
== Leftover configuration files and runtime data ==&lt;br /&gt;
&lt;br /&gt;
After the update you may see leftover configuration files and runtime data below &amp;lt;code&amp;gt;/opt/open-xchange/etc&amp;lt;/code&amp;gt;. It is safe to remove all files ending in .rpmsave or .rpmnew once you are confident that your configuration is working after the update.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Upgrade_from_6.22_for_RHEL6&amp;diff=21253</id>
		<title>AppSuite:Upgrade from 6.22 for RHEL6</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Upgrade_from_6.22_for_RHEL6&amp;diff=21253"/>
		<updated>2016-01-12T13:52:08Z</updated>

		<summary type="html">&lt;p&gt;Christian.kundner: Switchet Repo by Text to Repo by Template; Added LDB-Credentials for the Update paths&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AppSuiteUpgradeIntroduction|distroname=RHEL 6|distro=RHEL6|distronameshort=RHEL 6}}&lt;br /&gt;
&lt;br /&gt;
= Update the software =&lt;br /&gt;
&lt;br /&gt;
== Update Open-Xchange Repositories ==&lt;br /&gt;
&lt;br /&gt;
If not already configured, we make the latest OX6 repos available by ajdusting the file &amp;lt;code&amp;gt;/etc/yum.repos.d/ox.repo&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=OX6/6.22|pc2n=rhelname|pc2v=RHEL6|frontend|backend|usm}}&lt;br /&gt;
&lt;br /&gt;
if you have a valid maintenance subscription, please uncomment the &lt;br /&gt;
following and add the ldb account data to the url so that the most recent&lt;br /&gt;
packages get installed&lt;br /&gt;
&lt;br /&gt;
 {{for loop||call=YUMRepo|pv=reponame|pc1n=path|pc1v=OX6/6.22|pc2n=rhelname|pc2v=RHEL6|pc3n=ldbaccount|pc3v=LDBUSER:LDBPASSWORD|updates/frontend|updates/backend|updates/usm}}&lt;br /&gt;
&lt;br /&gt;
Verify the repos:&lt;br /&gt;
&lt;br /&gt;
 # yum repolist&lt;br /&gt;
&lt;br /&gt;
It may be necessary to&lt;br /&gt;
&lt;br /&gt;
 # yum clean all&lt;br /&gt;
&lt;br /&gt;
to make your new repos appear.&lt;br /&gt;
&lt;br /&gt;
== Update packages ==&lt;br /&gt;
&lt;br /&gt;
Download and update all installed packages: &lt;br /&gt;
&lt;br /&gt;
 $ yum update&lt;br /&gt;
&lt;br /&gt;
This will install new config files of some packages as &amp;lt;code&amp;gt;.rpmnew&amp;lt;/code&amp;gt; files. Check those files to identlfy files where you want to keep the existing version, put the new version in place, or merge them.&lt;br /&gt;
&lt;br /&gt;
=== Replace AJP with Grizzly ===&lt;br /&gt;
&lt;br /&gt;
You need to decide whether you want to replace AJP by Grizzly now, or later. AJP is deprecated with OX App Suite 7.4 / OX6 v6.22.4 released in September 2013 and will be discontinued with OX App Suite 7.6 in April 2014. For more information, see [[AppSuite:Grizzly]].&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeChangesByVersion}}&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeRestartOpenXchange}}&lt;br /&gt;
&lt;br /&gt;
= Add the App Suite UI =&lt;br /&gt;
&lt;br /&gt;
== Install the packages ==&lt;br /&gt;
&lt;br /&gt;
Add App Suite repositories to your sources.list:&lt;br /&gt;
&lt;br /&gt;
 [appsuite-frontend]&lt;br /&gt;
 name=Appsuite-frontend&lt;br /&gt;
 baseurl=http://software.open-xchange.com/products/appsuite/stable/appsuiteui/RHEL6/&lt;br /&gt;
 gpgkey=http://software.open-xchange.com/oxbuildkey.pub&lt;br /&gt;
 enabled=1&lt;br /&gt;
 gpgcheck=1&lt;br /&gt;
 metadata_expire=0m&lt;br /&gt;
 &lt;br /&gt;
 #[appsuite-backend]&lt;br /&gt;
 #name=Appsuite-backend&lt;br /&gt;
 #baseurl=http://software.open-xchange.com/products/appsuite/stable/backend/RHEL6/&lt;br /&gt;
 #gpgkey=http://software.open-xchange.com/oxbuildkey.pub&lt;br /&gt;
 #enabled=1&lt;br /&gt;
 #gpgcheck=1&lt;br /&gt;
 #metadata_expire=0m&lt;br /&gt;
 # &lt;br /&gt;
 #[appsuite-usm]&lt;br /&gt;
 #name=Appsuite-usm&lt;br /&gt;
 #baseurl=http://software.open-xchange.com/products/appsuite/stable/usm/RHEL6/&lt;br /&gt;
 #gpgkey=http://software.open-xchange.com/oxbuildkey.pub&lt;br /&gt;
 #enabled=1&lt;br /&gt;
 #gpgcheck=1&lt;br /&gt;
 #metadata_expire=0m&lt;br /&gt;
&lt;br /&gt;
Since the OX App Suite backend is the same as the OX6 backend, there is no need to add the backend repository here. But, on the other hand, you may add it here, and remove the backend repository from the OX6 repository list.&lt;br /&gt;
&lt;br /&gt;
Then, install packages:&lt;br /&gt;
&lt;br /&gt;
 # yum install open-xchange-appsuite open-xchange-appsuite-backend open-xchange-appsuite-manifest&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeAdjustApacheConfig|filename=ox.conf|distro=RHEL6|apacheservice=httpd}}&lt;br /&gt;
&lt;br /&gt;
{{AppSuiteUpgradeRemoveOX6GUI|listpackages=rpm -qa|uninstallpackages=yum remove|apacheconf=/etc/httpd/conf.d/ox.conf|distro=RHEL6}}&lt;br /&gt;
&lt;br /&gt;
== Leftover configuration files and runtime data ==&lt;br /&gt;
&lt;br /&gt;
After the update you may see leftover configuration files and runtime data below &amp;lt;code&amp;gt;/opt/open-xchange/etc&amp;lt;/code&amp;gt;. It is safe to remove all files ending in .rpmsave or .rpmnew once you are confident that your configuration is working after the update.&lt;/div&gt;</summary>
		<author><name>Christian.kundner</name></author>
	</entry>
</feed>