kopano-archiver.cfg.5 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. '\" t
  2. .\" Title: kopano-archiver.cfg
  3. .\" Author: [see the "Author" section]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
  5. .\" Date: November 2016
  6. .\" Manual: Kopano Core user reference
  7. .\" Source: Kopano 8
  8. .\" Language: English
  9. .\"
  10. .TH "KOPANO\-ARCHIVER\&.C" "5" "November 2016" "Kopano 8" "Kopano Core user reference"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. kopano-archiver.cfg \- The Kopano archiver configuration file
  32. .SH "SYNOPSIS"
  33. .PP
  34. \fBarchiver\&.cfg\fR
  35. .SH "DESCRIPTION"
  36. .PP
  37. The
  38. archiver\&.cfg
  39. is a configuration file for the Kopano Archiver\&.
  40. archiver\&.cfg
  41. contains instructions for the software to set up the logging system and specific actions the archiver can do\&.
  42. .SH "FILE FORMAT"
  43. .PP
  44. The file consists of one big section, but parameters can be grouped by functionality\&.
  45. .PP
  46. The parameters are written in the form:
  47. .PP
  48. \fBname\fR
  49. =
  50. \fIvalue\fR
  51. .PP
  52. The file is line\-based\&. Each newline\-terminated line represents either a comment, nothing, a parameter or a directive\&. A line beginning with `#\*(Aq is considered a comment, and will be ignored by Kopano\&. Parameter names are case sensitive\&. Lines beginning with `!\*(Aq are directives\&.
  53. .PP
  54. Directives are written in the form:
  55. .PP
  56. !\fBdirective\fR
  57. \fI[argument(s)] \fR
  58. .PP
  59. The following directives exist:
  60. .PP
  61. \fBinclude\fR
  62. .RS 4
  63. Include and process
  64. \fIargument\fR
  65. .sp
  66. Example: !include common\&.cfg
  67. .RE
  68. .SH "EXPLANATION OF EACH PARAMETER"
  69. .PP
  70. \fBserver_socket\fR
  71. .RS 4
  72. Unix socket to find the connection to the Kopano server\&.
  73. .sp
  74. Default:
  75. \fIfile:///var/run/kopano/server\&.sock\fR
  76. .RE
  77. .PP
  78. \fBsslkey_file\fR
  79. .RS 4
  80. Use this file as key to logon to the server\&. This is only used when server_socket is set to an HTTPS transport\&. See the
  81. \fBkopano-server\fR(8)
  82. manual page on how to setup SSL keys\&.
  83. .sp
  84. Default: value not set\&.
  85. .RE
  86. .PP
  87. \fBsslkey_pass\fR
  88. .RS 4
  89. The password of the SSL key file that is set in sslkey_file\&.
  90. .sp
  91. Default: value not set\&.
  92. .RE
  93. .PP
  94. \fBarchive_enable\fR
  95. .RS 4
  96. Specifies if the archive step will be performed\&. The archive step is basically the copy to the archive\&.
  97. .sp
  98. Default:
  99. \fIyes\fR
  100. .RE
  101. .PP
  102. \fBarchive_after\fR
  103. .RS 4
  104. Specifies the age in days of a message before it will be archived\&.
  105. .sp
  106. Default:
  107. \fI30\fR
  108. .RE
  109. .PP
  110. \fBstub_enable\fR
  111. .RS 4
  112. Specifies if the stub step will be performed\&. Stubbing is the process of removing the data from a message and only leaving a reference to one or more archived versions of that message\&. When such a message is opened it will be de\-stubbed on the fly, leaving the user with a normal message to work with\&.
  113. .sp
  114. A message will never be stubbed if it\*(Aqs not yet archived\&.
  115. .sp
  116. Default:
  117. \fIno\fR
  118. .RE
  119. .PP
  120. \fBstub_unread\fR
  121. .RS 4
  122. Specifies if unread messages will be stubbed\&.
  123. .sp
  124. Default:
  125. \fIno\fR
  126. .RE
  127. .PP
  128. \fBstub_after\fR
  129. .RS 4
  130. Specifies the age in days of a message before it will be stubbed\&.
  131. .sp
  132. Default:
  133. \fI0\fR
  134. .RE
  135. .PP
  136. \fBdelete_enable\fR
  137. .RS 4
  138. Specifies if the delete step will be performed\&. The delete step deletes messages from the users store if they\*(Aqre old enough\&. This way even more space is freed\&.
  139. .sp
  140. A message will never be deleted if it\*(Aqs not yet archived\&.
  141. .sp
  142. A message will never be deleted from the archive\&.
  143. .sp
  144. Default:
  145. \fIno\fR
  146. .RE
  147. .PP
  148. \fBdelete_unread\fR
  149. .RS 4
  150. Specifies if unread messages will be deleted\&.
  151. .sp
  152. Default:
  153. \fIno\fR
  154. .RE
  155. .PP
  156. \fBdelete_after\fR
  157. .RS 4
  158. Specifies the age in days of a message before it will be deleted\&.
  159. .sp
  160. Default:
  161. \fI0\fR
  162. .RE
  163. .PP
  164. \fBpurge_enable\fR
  165. .RS 4
  166. Specifies if message will be purged from the archive after a certain amount of time\&.
  167. .sp
  168. Default:
  169. \fIno\fR
  170. .RE
  171. .PP
  172. \fBpurge_after\fR
  173. .RS 4
  174. Specifies the age in days of a message before it will be purged\&. *Note that the age is measured from the time it was originally delivered in the primay store\&.
  175. .sp
  176. Default:
  177. \fI0\fR
  178. .RE
  179. .PP
  180. \fBtrack_history\fR
  181. .RS 4
  182. Specifies the behaviour of the archiver when re\-archiving messages that were changed after they were archived\&. When track_history is set to no, the archived version will be updated to contain the most actual information\&. When track_history is set to yes, a new copy of the message will be created in the archive, and the previous version is linked to it\&. This way the change history can be tracked\&.
  183. .sp
  184. Default:
  185. \fIno\fR
  186. .RE
  187. .PP
  188. \fBcleanup_action\fR
  189. .RS 4
  190. Specify what action should be taken on archive messages whose primary message has been deleted\&. The options are \*(Aqstore\*(Aq and \*(Aqdelete\*(Aq, meaning store the archived message in a special \*(AqDeleted\*(Aq folder or delete the archived messages respectively\&.
  191. .sp
  192. Default:
  193. \fIstore\fR
  194. .RE
  195. .PP
  196. \fBcleanup_follow_purge_after\fR
  197. .RS 4
  198. Specify if items that are cleaned up from the archive are at least the age that is specified in the purge_after setting\&. This is to avoid messages being deleted from the archive when they where deleted from the primary store by a delete operation\&. Note that setting to yes, will cause a cleanup run to seemingly do nothing\&. A rule of thumb is to set this to the same value as delete_enable\&. So when delete_enable is set to yes, make sure cleanup_follow_purge_after is also set to yes\&.
  199. .sp
  200. Default:
  201. \fIno\fR
  202. .RE
  203. .PP
  204. \fBenable_auto_attach\fR
  205. .RS 4
  206. Specify whether on each archive run an auto\-attach run is performed in order to match the attached archives to the requested state as specified in LDAP or ADS\&.
  207. .sp
  208. Default:
  209. \fIno\fR
  210. .RE
  211. .PP
  212. \fBauto_attach_writable\fR
  213. .RS 4
  214. Specify whether an auto attached archive will be granted write permissions for the user it\*(Aqs attached to\&.
  215. .sp
  216. Default:
  217. \fIyes\fR
  218. .RE
  219. .PP
  220. \fBlog_method\fR
  221. .RS 4
  222. The method which should be used for logging\&. Valid values are:
  223. .PP
  224. \fIsyslog\fR
  225. .RS 4
  226. Use the Linux system log\&. All messages will be written to the mail facility\&. See also
  227. \fBsyslog.conf\fR(5)\&.
  228. .RE
  229. .PP
  230. \fIfile\fR
  231. .RS 4
  232. Log to a file\&. The filename will be specified in
  233. \fBlog_file\fR\&.
  234. .RE
  235. .sp
  236. Default:
  237. \fIfile\fR
  238. .RE
  239. .PP
  240. \fBlog_file\fR
  241. .RS 4
  242. When logging to a file, specify the filename in this parameter\&. Use
  243. \fI\-\fR
  244. (minus sign) for stderr output\&.
  245. .sp
  246. Default:
  247. \fI\-\fR
  248. .RE
  249. .PP
  250. \fBlog_timestamp\fR
  251. .RS 4
  252. Specify whether to prefix each log line with a timestamp in \*(Aqfile\*(Aq logging mode\&.
  253. .sp
  254. Default:
  255. \fI1\fR
  256. .RE
  257. .PP
  258. \fBlog_buffer_size\fR
  259. .RS 4
  260. Buffer logging in what sized blocks\&. The special value 0 selects line buffering\&.
  261. .sp
  262. Default:
  263. \fI0\fR
  264. .RE
  265. .PP
  266. \fBlog_level\fR
  267. .RS 4
  268. The level of output for logging in the range from 0 to 5\&. 0 means no logging, 5 means full logging\&.
  269. .sp
  270. Default:
  271. \fI2\fR
  272. .RE
  273. .PP
  274. \fBpid_file\fR
  275. .RS 4
  276. The location of the pid file used to guarantee only one instance of kopano\-archiver is running in non\-administrative mode\&.
  277. .sp
  278. Default:
  279. \fI/var/run/kopano/archiver\&.pid \fR
  280. .RE
  281. .SH "EXPLANATION OF THE MYSQL SETTINGS PARAMETERS"
  282. .PP
  283. \fBmysql_host\fR
  284. .RS 4
  285. The hostname of the MySQL server to use\&.
  286. .sp
  287. Default:
  288. \fIlocalhost\fR
  289. .RE
  290. .PP
  291. \fBmysql_port\fR
  292. .RS 4
  293. The port of the MySQL server to use\&.
  294. .sp
  295. Default:
  296. \fI3306\fR
  297. .RE
  298. .PP
  299. \fBmysql_user\fR
  300. .RS 4
  301. The user under which we connect with MySQL\&.
  302. .sp
  303. Default:
  304. \fIroot\fR
  305. .RE
  306. .PP
  307. \fBmysql_password\fR
  308. .RS 4
  309. The password to use for MySQL\&. Leave empty for no password\&.
  310. .sp
  311. Default:
  312. .RE
  313. .PP
  314. \fBmysql_socket\fR
  315. .RS 4
  316. The socket of the MySQL server to use\&. This option can be used to override the default mysql socket\&. To use the socket, the mysql_host value must be empty or \*(Aqlocalhost\*(Aq
  317. .sp
  318. Default:
  319. .RE
  320. .PP
  321. \fBmysql_database\fR
  322. .RS 4
  323. The MySQL database to connect to\&.
  324. .sp
  325. Default:
  326. \fIkopano\fR
  327. .RE
  328. .SH "FILES"
  329. .PP
  330. /etc/kopano/archiver\&.cfg
  331. .RS 4
  332. The Kopano archiver configuration file\&.
  333. .RE
  334. .SH "AUTHOR"
  335. .PP
  336. Written by Kopano\&.
  337. .SH "SEE ALSO"
  338. .PP
  339. \fBkopano-archiver\fR(8)