Cool Solution - How to separate IMAP server and OX App Suite

From Univention Wiki

Jump to: navigation, search
Produktlogo UCS Version 4.0

Note: Cool Solutions are articles documenting additional functionality based on Univention products. Not all of the shown steps in the article are covered by Univention Support. For questions about your support coverage contact your contact person at Univention before you want to implement one of the shown steps.

Also regard the legal notes at Terms of Service.

This article describes how the separation of the IMAP server and OX App Suite for a mail domain can be configured, so both services can be run on different servers.


First of all you need two UCS systems. Let's assume they are named server01 and server02. For the UCS server role, choosing Domaincontroller Backup or Domaincontroller Slave is recommended.

On the first UCS (server01) please install the OX App Suite via the Univention App Center.

The installation will also configure a default mail domain according to your UCS domain name. Additional mail domains can be easily added using the UMC module OX E-Mail. The separation of the IMAP server needs to be configured for each mail domain separately.

To get a list of all mail domains managed by UCS, run the following command on the command line:

udm oxmail/oxdomain list

The output is similar to the following:

ARG: None
  oxContextName: context10


Hint: Configuration is currently not possible using the UMC.

The important information is the field oxImapServer, which indicates on which server the IMAP backend runs. Since UCS 4.0-3, this is Dovecot by default. If the server is now to be changed to a dedicated server running the IMAP backend, execute the following command:

udm oxmail/oxdomain modify \
--dn,cn=domain,cn=mail,dc=ox,dc=example,dc=org \
--set oxImapServer=""

Hint: Change and the DN according to your needs.

Next, install the App "Mailserver" via the Univention App Center on the new IMAP server (server02).

Lastly the IMAP services can be deactivated on the server running the OX App Suite (server01).

If you are running Dovecot (default since UCS 4.0-3):

service dovecot stop
ucr set mail/dovecot/autostart=no

If you are running Cyrus (default prior to UCS 4.0-3):

service cyrus-imapd stop
ucr set mail/cyrus/autostart=no
Personal tools