Configure Kopano File Previewer and MDM the Right Way

To set up these features, treat them as two separate things: Kopano WebApp’s File Previewer is controlled by the ENABLE_FILE_PREVIEWER setting, while MDM is a separately installed WebApp plugin that depends on Z-Push. Enable the preview option in the WebApp configuration, install and point MDM at the correct Z-Push service, then confirm that users can preview a supported attachment and see their connected device in Settings.

This distinction matters because “FileViewer” is not the name used in the public WebApp admin documentation. That documentation calls it the File Previewer and describes a configuration switch, not a separate package. The instructions below apply to the Kopano WebApp packaging model described in Kopano’s published manuals; check your distribution’s supported repository and version before installing legacy package names.

1. Enable the File Previewer option

An administrator should first check the main WebApp configuration file used by the installation. Kopano documents the setting as ENABLE_FILE_PREVIEWER: when true, users can enable the previewer in their own settings; when false, the setting is hidden and the previewer is disabled for everyone. The documented default is true. See the Kopano WebApp Admin Manual’s File Previewer setting.

A config.php editor displays the ENABLE_FILE_PREVIEWER setting set to true.
An illustrative config view shows the File Previewer option enabled in WebApp configuration.

If the setting is already present, change its value rather than adding a duplicate definition. Preserve valid PHP syntax and follow your deployment’s configuration procedure. The documentation does not prescribe a universal restart step for this setting, so use the reload or service procedure that applies to your WebApp installation instead of guessing.

After the administrator makes the option available, a user can open WebApp settings and enable the File Previewer if the control is offered. Apply the change, reopen WebApp if needed, and try an attachment whose format the installed build supports. Success means the preview option is available and that known-supported file opens in the preview area. A visible option alone does not prove every file type can be previewed; supported formats and any rendering dependencies can vary with the deployed build.

2. Install MDM only after checking its dependencies

MDM is a separate plugin package. Kopano’s MDM installation manual lists Z-Push 2.0 or later and PHP SOAP as dependencies because the plugin communicates with the Z-Push web service. The manual gives these package examples:

  • For a Debian-based distribution: dpkg -i kopano-webapp-plugins-mdm_<version>.deb
  • For an RPM-based distribution: rpm -Uhv kopano-webapp-plugins-mdm_<version>_.noarch.rpm

Replace the placeholder with the package version available for the installed WebApp release. Do not paste either example literally or mix a package from another release. The official MDM installation instructions are useful for identifying dependencies and historical package names, but the public MDM PDF is dated August 9, 2017. If the package is missing from your configured repository, stop and check the supported package source or ask the Kopano administrator; do not substitute an unrelated plugin.

3. Point MDM to the right Z-Push service

Before users test MDM, an administrator should review /etc/kopano/webapp/config-mdm.php, the configuration path specified by Kopano’s MDM manual. The relevant options are:

  • PLUGIN_MDM_SERVER identifies the Z-Push server. The documented default is localhost.
  • PLUGIN_MDM_SERVER_SSL should be true when the configured Z-Push connection uses SSL. The documented default is false.
  • PLUGIN_MDM_USER_DEFAULT_ENABLE_MDM controls whether the plugin is enabled by default for users. The documented default is false.

Use the actual Z-Push address reachable from the WebApp server, especially when Z-Push runs on another host. Set SSL to match the connection you are using; a mismatch can prevent the plugin from reaching its service. The Kopano MDM configuration reference documents these names and defaults. Make configuration edits as an administrator and preserve the file’s PHP syntax.

Once the package and server configuration are ready, sign in to WebApp, open Settings, select the Plugins tab, check MDM, and click Apply. Kopano’s WebApp user manual says administrators install plugins and users enable installed plugins through this tab. Some deployments can enable MDM by default in the server configuration, but the user-facing plugin control is a direct way to test the setup.

A WebApp Settings Plugins panel shows the MDM plugin checked and an Apply button.
An illustrative Plugins panel shows MDM selected; users apply the selection to save it.

4. Judge the result in the MDM device list

After enabling MDM, return to Settings and open the MDM tab. The official manual says the tab shows connected-device information, including a device ID and last-sync time. If the device that already syncs through your organization’s Z-Push service appears there with plausible information, the WebApp plugin is communicating well enough to display its device record.

An illustrative MDM device list shows Device ID and Last sync columns with Refresh, Resync, Remove, and Wipe buttons.
The MDM device view uses a device ID and last-sync time to help identify a connected device.

If MDM is missing from the Plugins list, verify that the package is installed for the same WebApp instance and that plugins are allowed by the server configuration. If MDM can be enabled but its tab is empty or fails to load, first recheck the Z-Push host, SSL setting, PHP SOAP dependency, and the service’s reachability from the WebApp server. Then ask the administrator to inspect the relevant WebApp and Z-Push logs. The manuals do not provide a single error-code map that fits every version, so the exact log message and package versions matter.

Use device actions carefully, then verify once more

The MDM tab’s buttons do different jobs. Kopano documents Refresh as updating the list, Resync as sending server information to the device, and Remove as removing a device from the list. To make a removed device appear again, its account must be removed from the phone and reconnected. Remove is therefore not a harmless refresh. Wipe is more consequential: the manual warns that it removes all data from the device and prompts for the user’s password.

A Wipe device confirmation dialog warns that device data will be removed and requests a password.
The wipe confirmation asks for a password and warns that the device’s data will be removed.

Use Wipe only when the device is positively identified and the organization intends to erase it. The feature operates on devices known to the Z-Push/ActiveSync setup; it is not a complete enterprise mobile-device-management suite for enforcing every operating-system, application, or security policy. Kopano’s Core Administrator Manual describes user-initiated wipes through the WebApp MDM plugin and administrator wipes through z-push-admin.

To finish, confirm both outcomes separately: open a known-supported attachment to test File Previewer, then refresh the MDM list and check the connected device’s ID and last-sync field. If the preview option is unavailable, revisit ENABLE_FILE_PREVIEWER and the user setting. If the MDM list still does not reflect a device that syncs through the expected Z-Push server, change the troubleshooting path to server connectivity, PHP SOAP, and version-compatible packages before trying device actions.

Leave a Comment

How to