$OpenBSD: patch-installer_linux_gateway_cfg,v 1.16 2016/04/01 18:08:10 robert Exp $
--- installer/linux/gateway.cfg.orig	Wed Mar 23 12:14:33 2016
+++ installer/linux/gateway.cfg	Fri Apr  1 13:20:17 2016
@@ -14,16 +14,16 @@ server_hostname = 
 server_hostname_greeting = no
 
 # drop privileges and run the process as this user
-#run_as_user = zarafa
+run_as_user = _zarafa
 
 # drop privileges and run the process as this group
-#run_as_group = zarafa
+run_as_group = _zarafa
 
-# create a pid file for stopping the service via the init.d scripts
-#pid_file = /var/run/zarafad/gateway.pid
+# write the process ID number to this file
+pid_file = /var/run/zarafad/gateway.pid
 
 # run server in this path (when not using the -F switch)
-#running_path = /var/lib/zarafa
+running_path = /var/empty
 
 # create memory coredumps upon crash in the running_path directory
 coredump_enabled = no
@@ -72,10 +72,10 @@ imap_max_fail_commands = 10
 disable_plaintext_auth = no
 
 # File with RSA key for SSL
-ssl_private_key_file	=	/etc/zarafa/gateway/privkey.pem
+ssl_private_key_file	=	${SYSCONFDIR}/zarafa/gateway/privkey.pem
 
 #File with certificate for SSL
-ssl_certificate_file	=	/etc/zarafa/gateway/cert.pem
+ssl_certificate_file	=	${SYSCONFDIR}/zarafa/gateway/cert.pem
 
 # Verify client certificate
 ssl_verify_client	=	no
@@ -95,7 +95,7 @@ ssl_prefer_server_ciphers = no
 
 # Process model, using pthreads (thread) or processes (fork)
 # Processes are potentially safer from a security point of view.
-process_model = fork
+process_model = thread
 
 # For temporary files.
 # consider mounting a `tmpfs' underneath this path (wherever you
