Prepare 2 Ubuntu servers(version 16.04) under the same VLAN, one for Seafile, one for Kolab. Note: In the process of installing Ubuntu, do not encrypt the Home directory.
# import the GPG key used to sign the packages wget -q -O- https://ssl.kolabsys.com/community.asc | apt-key add -
# make sure the apt preferences pin the obs.kolabsys.com origin as a preferred source echo' Package: * Pin: origin obs.kolabsys.com Pin-Priority: 501 ' > /etc/apt/preferences.d/kolab
# Install kolab to the system apt update && apt install kolab
Setup Kolab
setup-kolab
During the installation, set the administrative credentials through several prompts.
Use Nginx on the Seafile server as a proxy server for the Kolab web service.
In the Seafile server terminal, run the following command:
sudo su touch /etc/nginx/sites-available/kolab.conf ln -s /etc/nginx/sites-available/kolab.conf /etc/nginx/sites-enabled/kolab.conf
Assuming below properties:
Kolab server FQDN: mail.example.com
Kolab server IP address: 192.168.1.21
path to cert file: /etc/ssl/certs/example.com.pem
path to private key file: /etc/ssl/private/example.com.key
path to ssl_dhparam file: /etc/nginx/dhparam.pem ( created in enabling Https for Seafile )
Write the following configuration to the kolab.conf file.
server { listen 80; server_name mail.example.com; rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https
# Enables or disables emitting nginx version on error pages and in the "Server" response header field. server_tokens off; }
server { listen 443; ssl on; ssl_certificate /etc/ssl/certs/example.com.pem; # path to your cacert.pem ssl_certificate_key /etc/ssl/private/example.com.key; # path to your privkey.pem server_name mail.example.com; ssl_session_timeout 5m; ssl_session_cache shared:SSL:5m;
# Diffie-Hellman parameter for DHE ciphersuites, recommended 2048 bits ssl_dhparam /etc/nginx/dhparam.pem;
# secure settings (A+ at SSL Labs ssltest at time of writing) # see https://wiki.mozilla.org/Security/Server_Side_TLS#Nginx ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-CAMELLIA256-SHA:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-SEED-SHA:DHE-RSA-CAMELLIA128-SHA:HIGH:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS'; ssl_prefer_server_ciphers on;