server.cfg 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. ##############################################################
  2. # SERVER SETTINGS
  3. # IP Address to bind to (empty for ANY)
  4. # Set to ::1 or 127.0.0.1 if connections should only come from localhost
  5. # and through the webserver proxy
  6. #server_bind =
  7. # Accept normal TCP connections (not recommended to disable)
  8. server_tcp_enabled = yes
  9. # Port to bind to
  10. server_tcp_port = 236
  11. # Accept Unix pipe connections (not recommended to disable)
  12. server_pipe_enabled = yes
  13. # Unix socket location
  14. server_pipe_name = /var/run/kopano/server.sock
  15. # Priority Unix socket location
  16. server_pipe_priority = /var/run/kopano/prio.sock
  17. # Name for identifying the server in a multi-server environment
  18. server_name = Kopano
  19. # Override the hostname of this server, used by Kerberos SSO if enabled
  20. server_hostname =
  21. # Database engine (mysql)
  22. database_engine = mysql
  23. # Allow connections from normal users through the Unix socket
  24. allow_local_users = yes
  25. # local admin users who can connect to any store (use this for the kopano-dagent)
  26. # field is SPACE separated
  27. # eg: local_admin_users = root vmail
  28. local_admin_users = root kopano
  29. # The user has full rights on a folder by default, uncomment the following line to disable this.
  30. # owner_auto_full_access = false
  31. owner_auto_full_access = true
  32. # e-mail address of the Kopano System user
  33. system_email_address = postmaster@localhost
  34. # drop privileges and run the process as this user
  35. #run_as_user = kopano
  36. # drop privileges and run the process as this group
  37. #run_as_group = kopano
  38. # create a pid file for stopping the service via the init.d scripts
  39. #pid_file = /var/run/kopano/server.pid
  40. # run server in this path (when not using the -F switch)
  41. #running_path = /var/lib/kopano
  42. # Use given allocator library. Values like libtcmalloc.so.4,
  43. # libtcmalloc_minimal.so.4 and libjemalloc.so.2 would work.
  44. #allocator_library = default
  45. # create memory coredumps upon crash in the running_path directory
  46. coredump_enabled = yes
  47. # session timeout for clients. Values lower than 300 will be upped to 300
  48. # automatically. If the server hears nothing from a client in session_timeout
  49. # seconds, then the session is killed.
  50. session_timeout = 300
  51. # for temporary files
  52. # consider mounting a `tmpfs' underneath this path (wherever you
  53. # point it to)
  54. tmp_path = /tmp
  55. ##############################################################
  56. # LOG SETTINGS
  57. # Logging method (syslog, file), syslog facility is 'mail'
  58. log_method = file
  59. # Logfile (for log_method = file, '-' for stderr)
  60. log_file = /var/log/kopano/server.log
  61. # Loglevel (0(none), 1(crit), 2(err), 3(warn), 4(notice), 5(info), 6(debug))
  62. #log_level = 3
  63. # Log timestamp - prefix each log line with timestamp in 'file' logging mode
  64. log_timestamp = 1
  65. # Buffer logging in what sized blocks. 0 for line-buffered (syslog-style).
  66. #log_buffer_size = 0
  67. ##############################################################
  68. # AUDIT LOG SETTINGS
  69. # Audit logging is by default not enabled
  70. audit_log_enabled = no
  71. # Audit logging method (syslog, file), syslog facility is 'authpriv'
  72. audit_log_method = syslog
  73. # Audit logfile (for log_method = file, '-' for stderr)
  74. audit_log_file = /var/log/kopano/audit.log
  75. # Audit loglevel (0=no logging, 1=full logging)
  76. audit_log_level = 1
  77. # Audit log timestamp - prefix each log line with timestamp in 'file' logging mode
  78. audit_log_timestamp = 1
  79. ##############################################################
  80. # MYSQL SETTINGS (for database_engine = mysql)
  81. # MySQL hostname to connect to for database access
  82. mysql_host = localhost
  83. # MySQL port to connect with (usually 3306)
  84. mysql_port = 3306
  85. # The user under which we connect with MySQL
  86. mysql_user = root
  87. # The password for the user (leave empty for no password)
  88. mysql_password =
  89. # Override the default MySQL socket to access mysql locally
  90. # Works only if the mysql_host value is empty or 'localhost'
  91. mysql_socket =
  92. # Database to connect to
  93. mysql_database = kopano
  94. # Where to place attachments. Value can be 'database', 'files' or 's3'
  95. attachment_storage = files
  96. # Enable fsync as method to make sure attachments are stored on disk where
  97. # supported and will not be buffered by OS and/or filesystem. Please note
  98. # this setting will lower attachment write performance depending on your
  99. # environment but enhances data safety with disaster recovery.
  100. # Only affects 'files' attachment storage backend.
  101. attachment_files_fsync = yes
  102. # When attachment_storage is 'files', use this path to store the files
  103. # When attachment_storage is 's3', use this path to set a prefix to all
  104. # attachment data of a certain cluster, for example 'attach'
  105. attachment_path = /var/lib/kopano/attachments
  106. # Compression level for attachments when attachment_storage is 'files'.
  107. # Set compression level for attachments disabled=0, max=9
  108. attachment_compression = 6
  109. ##############################################################
  110. # S3 STORAGE SETTINGS (for attachment_storage = s3)
  111. # The hostname of the entry point to the S3 cloud where the bucket is located
  112. # If you are using miniio or an other S3 compatible implementation that
  113. # is using another port, you can specify the port with hostname:port.
  114. #attachment_s3_hostname = s3-eu-west-1.amazonaws.com
  115. # The region where the bucket is located
  116. #attachment_s3_region = eu-west-1
  117. # The protocol that should be used to connect to S3, 'http' or 'https' (preferred)
  118. #attachment_s3_protocol = https
  119. # The URL style of the bucket, "virtualhost" or "path"
  120. #attachment_s3_uristyle = virtualhost
  121. # The access key id of your S3 account
  122. #attachment_s3_accesskeyid =
  123. # The secret access key of your S3 account
  124. #attachment_s3_secretaccesskey =
  125. # The bucket name in which the files will be stored
  126. #attachment_s3_bucketname =
  127. ##############################################################
  128. # SSL SETTINGS
  129. # enable SSL support in server
  130. server_ssl_enabled = no
  131. # Listen for SSL connections on this port
  132. server_ssl_port = 237
  133. # Required Server certificate, contains the certificate and the private key parts
  134. server_ssl_key_file = /etc/kopano/ssl/server.pem
  135. # Password of Server certificate
  136. server_ssl_key_pass = replace-with-server-cert-password
  137. # Required Certificate Authority of server
  138. server_ssl_ca_file = /etc/kopano/ssl/cacert.pem
  139. # Path with CA certificates, e.g. /etc/ssl/certs
  140. server_ssl_ca_path =
  141. # SSL protocols to use, space-separated list of protocols
  142. # (SSLv3 TLSv1 TLSv1.1 TLSv1.2); prefix with ! to lock out a protocol.
  143. #server_ssl_protocols =
  144. # SSL ciphers to use, set to 'ALL' for backward compatibility
  145. server_ssl_ciphers = ALL:!LOW:!SSLv2:!EXP:!aNULL
  146. # Prefer the server's order of SSL ciphers over client's
  147. server_ssl_prefer_server_ciphers = no
  148. # Path of SSL Public keys of clients
  149. sslkeys_path = /etc/kopano/sslkeys
  150. ##############################################################
  151. # THREAD SETTINGS
  152. # Number of server threads
  153. # default: 8
  154. threads = 8
  155. # Watchdog frequency. The number of watchdog checks per second.
  156. # default: 1
  157. watchdog_frequency = 1
  158. # Watchdog max age. The maximum age in ms of a task before a
  159. # new thread is started.
  160. # default: 500
  161. watchdog_max_age = 500
  162. # Maximum SOAP keep_alive value
  163. # default: 100
  164. server_max_keep_alive_requests = 100
  165. # SOAP recv timeout value (time between requests)
  166. # default: 5
  167. server_recv_timeout = 5
  168. # SOAP read timeout value (time during requests)
  169. # default: 60
  170. server_read_timeout = 60
  171. # SOAP send timeout value
  172. # default: 60
  173. server_send_timeout = 60
  174. ##############################################################
  175. # OTHER SETTINGS
  176. # Softdelete clean cycle (in days) 0=never running
  177. softdelete_lifetime = 30
  178. # Sync lifetime, removes all changes remembered for a client after x days of inactivity
  179. sync_lifetime = 90
  180. # Set to 'yes' if you have Kerberos or NTLM correctly configured for single sign-on
  181. enable_sso = no
  182. # Set to 'yes' if you want to show the GAB to your users
  183. enable_gab = yes
  184. # Authentication can be through plugin (default, recommended), pam or kerberos
  185. auth_method = plugin
  186. # If auth_method is set to pam, you should provide the pam service name
  187. pam_service = passwd
  188. #############################################################
  189. # CACHE SETTINGS
  190. #
  191. # To see the live cache usage, use 'kopano-stats --system'.
  192. # Size in bytes of the 'cell' cache (should be set as high as you can afford to set it)
  193. cache_cell_size = 256M
  194. # Size in bytes of the 'object' cache
  195. #cache_object_size = 16M
  196. # Size in bytes of the 'indexed object' cache
  197. #cache_indexedobject_size = 32M
  198. # Size in bytes of the userquota details
  199. cache_quota_size = 1M
  200. # Lifetime for userquota details
  201. cache_quota_lifetime = 1
  202. # Size in bytes of the acl cache
  203. cache_acl_size = 1M
  204. # Size in bytes of the store id/guid cache
  205. cache_store_size = 1M
  206. # Size in bytes of the 'user id' cache (this is allocated twice)
  207. cache_user_size = 1M
  208. # Size in bytes of the 'user details' cache
  209. cache_userdetails_size = 25M
  210. # Lifetime for user details
  211. cache_userdetails_lifetime = 0
  212. # Size in bytes of the server details (multiserver setups only)
  213. cache_server_size = 1M
  214. # Lifetime for server details (multiserver setups only)
  215. cache_server_lifetime = 30
  216. ##############################################################
  217. # QUOTA SETTINGS
  218. # The default Warning Quota Level. Set to 0 to disable this level.
  219. # The user will receive an email when this level is reached. Value is in Mb. Default value is 0.
  220. quota_warn = 0
  221. # The default Soft Quota Level. Set to 0 to disable this level.
  222. # The user will still receive mail, but sending new mail is prohibited, until objects are removed from the store.
  223. # VALUE is in Mb. Default value is 0.
  224. quota_soft = 0
  225. # The default Hard Quota Level. Set to 0 to disable this level.
  226. # The user can not receive and send mail, until objects are removed from the store.
  227. # Value is in Mb. Default value is 0.
  228. quota_hard = 0
  229. # The default Warning Quota Level for multitenant public stores. Set to 0 to disable this level.
  230. # The tenant administrator will receive an email when this level is reached. Value is in Mb. Default value is 0.
  231. companyquota_warn = 0
  232. ##############################################################
  233. # USER PLUGIN SETTINGS
  234. # Name of the plugin that handles users
  235. # Required, default = db
  236. # Values: ldap, unix, db, ldapms
  237. user_plugin = db
  238. # configuration file of the user plugin, examples can be found in /usr/share/doc/kopano/example-config
  239. user_plugin_config = /etc/kopano/ldap.cfg
  240. # location of the kopano plugins
  241. # if you have a 64-bit distribution, this probably should be changed to /usr/lib64/kopano
  242. plugin_path = /usr/lib/kopano
  243. # scripts which create stores for users from an external source
  244. # used for ldap and unix plugins only
  245. createuser_script = /etc/kopano/userscripts/createuser
  246. deleteuser_script = /etc/kopano/userscripts/deleteuser
  247. creategroup_script = /etc/kopano/userscripts/creategroup
  248. deletegroup_script = /etc/kopano/userscripts/deletegroup
  249. createcompany_script = /etc/kopano/userscripts/createcompany
  250. deletecompany_script = /etc/kopano/userscripts/deletecompany
  251. # Set this option to 'yes' to skip the creation and deletion of new users
  252. # The action will be logged, so you can see if your changes to the plugin
  253. # configuration are correct.
  254. user_safe_mode = no
  255. ##############################################################
  256. # MISC SETTINGS
  257. # Thread size in KB, default is 512
  258. # WARNING: Do not set too small, your server WILL crash
  259. thread_stacksize = 512
  260. # Enable multi-tenancy environment
  261. # When set to true it is possible to create tenants within the
  262. # kopano instance and assign all users and groups to particular
  263. # tenants.
  264. # When set to false, the normal single-tenancy environment is created.
  265. enable_hosted_kopano = false
  266. # Enable multi-server environment
  267. # When set to true it is possible to place users and tenants on
  268. # specific servers.
  269. # When set to false, the normal single-server environment is created.
  270. enable_distributed_kopano = false
  271. # Display format of store name
  272. # Allowed variables:
  273. # %u Username
  274. # %f Fullname
  275. # %c Teantname
  276. # default: %f
  277. storename_format = %f
  278. # Loginname format (for Multi-tenancy installations)
  279. # When the user does not login through a system-wide unique
  280. # username (like the email address) a unique name is created
  281. # by combining the username and the tenantname.
  282. # With this configuration option you can set how the
  283. # loginname should be built up.
  284. #
  285. # Note: Do not use the = character in the format.
  286. #
  287. # Allowed variables:
  288. # %u Username
  289. # %c Teantname
  290. #
  291. # default: %u
  292. loginname_format = %u
  293. # Set to yes for Windows clients to be able to download the latest
  294. # Kopano Outlook client from the storage server
  295. client_update_enabled = false
  296. # Place the correct Kopano Outlook Client in this directory for
  297. # Windows clients to download through the storage server
  298. client_update_path = /var/lib/kopano/client
  299. # Recieve update information from the client (0 = disabled, 1 = only on error, 2 = log always)
  300. client_update_log_level = 1
  301. # Log location for the client auto update files
  302. client_update_log_path = /var/log/kopano/autoupdate
  303. # Everyone is a special internal group, which contains every user and group
  304. # You may want to disable this group from the Global Addressbook by setting
  305. # this option to 'yes'. Administrators will still be able to see the group.
  306. hide_everyone = no
  307. # System is a special internal user, which has super-admin privileges
  308. # You may want to disable this user from the Global Addressbook by setting
  309. # this option to 'yes'. Administrators will still be able to see the user.
  310. hide_system = yes
  311. # Use Indexing service for faster searching.
  312. # Enabling this option requires the kopano-search service to
  313. # be running.
  314. search_enabled = yes
  315. # Path to the kopano-search service, this option is only required
  316. # if the server is going to make use of the indexing service.
  317. search_socket = file:///var/run/kopano/search.sock
  318. # Time (in seconds) to wait for a connection to the kopano-search service
  319. # before terminating the indexed search request.
  320. search_timeout = 10
  321. # Allow enhanced ICS operations to speedup synchronization with cached profiles.
  322. # default: yes
  323. enable_enhanced_ics = yes
  324. # SQL Procedures allow for some optimized queries when streaming with enhanced ICS.
  325. # This is default disabled because you must set 'thread_stack = 256k' in your
  326. # MySQL server config under the [mysqld] tag and restart your MySQL server.
  327. enable_sql_procedures = no
  328. # Synchronize GAB users on every open of the GAB (otherwise, only on
  329. # kopano-admin --sync)
  330. sync_gab_realtime = yes
  331. # Disable features for users. This list is space separated.
  332. # Currently valid values: imap pop3 mobile outlook
  333. disabled_features = imap pop3
  334. # Maximum number of deferred records in total
  335. max_deferred_records = 0
  336. # Maximum number of deferred records per folder
  337. max_deferred_records_folder = 20
  338. # Restrict the permissions that admins receive to folder permissions only. Please
  339. # read the server.cfg manpage before enabling this option so you really understand
  340. # the implications
  341. restrict_admin_permissions = no
  342. # The maximum level of attachment recursion; Defines the number of
  343. # attachment-in-attachment in-attachment levels are allowed when saving and
  344. # replicating objects in the database. If you really want a higher level of
  345. # recursion than about 20, you probably have to increase MySQL's stack_size
  346. # to allow replication to work properly.
  347. embedded_attachment_limit = 20
  348. # Header to detect whether a connection has been received through a proxy. The
  349. # value of the header is not inspected. If the header exists then the connection
  350. # is taken to be received via a proxy. An empty value disables proxy detection
  351. # and the value of '*' is used to indicate that all connections are proxied
  352. proxy_header =