kopano-dagent.cfg.5 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. '\" t
  2. .\" Title: kopano-dagent.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\-DAGENT\&.CFG" "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-dagent.cfg \- The Kopano dagent configuration file
  32. .SH "SYNOPSIS"
  33. .PP
  34. \fBdagent\&.cfg\fR
  35. .SH "DESCRIPTION"
  36. .PP
  37. The
  38. dagent\&.cfg
  39. is a configuration file for the Kopano Dagent\&.
  40. dagent\&.cfg
  41. contains instructions for the software to set up the logging system and LMTP settings\&.
  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_bind\fR
  71. .RS 4
  72. Bind to a particular IP address\&. Leave empty to bind to all addresses\&.
  73. .sp
  74. Default: (empty)
  75. .RE
  76. .PP
  77. \fBserver_socket\fR
  78. .RS 4
  79. Unix socket to find the connection to the Kopano server\&.
  80. .sp
  81. Default:
  82. \fIfile:///var/run/kopano/server\&.sock\fR
  83. .RE
  84. .PP
  85. \fBrun_as_user\fR
  86. .RS 4
  87. After correctly starting, the dagent process will become this user, dropping root privileges\&. Note that the log file needs to be writeable by this user, and the directory too to create new logfiles after logrotation\&. This can also be achieved by setting the correct group and permissions\&.
  88. .sp
  89. Default value is empty, not changing the user after starting\&.
  90. .RE
  91. .PP
  92. \fBrun_as_group\fR
  93. .RS 4
  94. After correctly starting, the dagent process will become this group, dropping root privileges\&.
  95. .sp
  96. Default value is empty, not changing the group after starting\&.
  97. .RE
  98. .PP
  99. \fBpid_file\fR
  100. .RS 4
  101. Write the process ID number to this file\&. This is used by the init\&.d script to correctly stop/restart the service\&.
  102. .sp
  103. Default:
  104. \fI/var/run/kopano/dagent\&.pid\fR
  105. .RE
  106. .PP
  107. \fBsslkey_file\fR
  108. .RS 4
  109. 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
  110. \fBkopano-server\fR(8)
  111. manual page on how to setup SSL keys\&.
  112. .sp
  113. Default: value not set\&.
  114. .RE
  115. .PP
  116. \fBsslkey_pass\fR
  117. .RS 4
  118. The password of the SSL key file that is set in sslkey_file\&.
  119. .sp
  120. Default: value not set\&.
  121. .RE
  122. .PP
  123. \fBlmtp_port\fR
  124. .RS 4
  125. Port to listen to for LMTP requests
  126. .sp
  127. Default:
  128. \fI2003\fR
  129. .RE
  130. .PP
  131. \fBlmtp_max_threads\fR
  132. .RS 4
  133. The maximum number of LMTP threads that can be running simultaneously\&. This is also limited by your SMTP server\&. (20 is the postfix default concurrency limit)
  134. .sp
  135. Default:
  136. \fI20\fR
  137. .RE
  138. .PP
  139. \fBspam_header_name\fR
  140. .RS 4
  141. To detect if the receiving mail is spam, the DAgent can check this header for a value that is in there\&. This name is case insensitive\&. If this option is empty, the detection method will be turned off\&. You can also force a delivery to the Junk Mail folder using the
  142. \fI\-j\fR
  143. commandline option\&.
  144. .sp
  145. Default:
  146. \fIX\-Spam\-Status\fR
  147. .RE
  148. .PP
  149. \fBspam_header_value\fR
  150. .RS 4
  151. When this value is found in the
  152. \fIspam_header_name\fR, the mail will be considered spam, and will be delivered in the user\*(Aqs Junk Mail folder\&. The value can be anywhere in the header, not just the start\&. The value is case insensitive\&.
  153. .sp
  154. Default:
  155. \fIYes,\fR
  156. .RE
  157. .PP
  158. \fBlog_method\fR
  159. .RS 4
  160. The method which should be used for logging\&. Valid values are:
  161. .PP
  162. \fIsyslog\fR
  163. .RS 4
  164. Use the Linux system log\&. All messages will be written to the mail facility\&. See also
  165. \fBsyslog.conf\fR(5)\&.
  166. .RE
  167. .PP
  168. \fIfile\fR
  169. .RS 4
  170. Log to a file\&. The filename will be specified in
  171. \fBlog_file\fR\&.
  172. .RE
  173. .sp
  174. Default:
  175. \fIfile\fR
  176. .RE
  177. .PP
  178. \fBlog_file\fR
  179. .RS 4
  180. When logging to a file, specify the filename in this parameter\&. Use
  181. \fI\-\fR
  182. (minus sign) for stderr output\&.
  183. .sp
  184. Default:
  185. \fI/var/log/kopano/dagent\&.log\fR
  186. .RE
  187. .PP
  188. \fBlog_timestamp\fR
  189. .RS 4
  190. Specify whether to prefix each log line with a timestamp in \*(Aqfile\*(Aq logging mode\&.
  191. .sp
  192. Default:
  193. \fI1\fR
  194. .RE
  195. .PP
  196. \fBlog_buffer_size\fR
  197. .RS 4
  198. Buffer logging in what sized blocks\&. The special value 0 selects line buffering\&.
  199. .sp
  200. Default:
  201. \fI0\fR
  202. .RE
  203. .PP
  204. \fBlog_level\fR
  205. .RS 4
  206. The level of output for logging in the range from 0 to 5\&. 0 means no logging, 5 means full logging\&.
  207. .sp
  208. Default:
  209. \fI2\fR
  210. .RE
  211. .PP
  212. \fBlog_raw_message\fR
  213. .RS 4
  214. Log the raw message to a file\&. The file is saved to the location specified in
  215. \fBlog_raw_message_path\fR\&.
  216. .sp
  217. Default:
  218. \fIno\fR
  219. .RE
  220. .PP
  221. \fBlog_raw_message_path\fR
  222. .RS 4
  223. Path to save the raw message\&.
  224. .sp
  225. Default:
  226. \fI/tmp\fR
  227. .RE
  228. .PP
  229. \fBarchive_on_delivery\fR
  230. .RS 4
  231. Archive incoming message on delivery\&. If an archive is attached to the target mailbox, the message will immediately be archived upon delivery\&.
  232. .sp
  233. Rules will be processed before the message is archived, so when a rule moves the message to an alternate location, the archived message will be placed in the correct location in the archive\&. When the incoming message is copied by a rule, only the original message is archived\&.
  234. .sp
  235. Default:
  236. \fIno\fR
  237. .RE
  238. .PP
  239. \fBmr_autoaccepter\fR
  240. .RS 4
  241. Kopano\-dagent can auto\-accept meeting requests if the mr\-accept option is enabled for a user\&. When this option is enabled and a meeting request or meeting cancellation is received, this script is started with the following parameters: /usr/sbin/kopano\-mr\-accept <username> </path/to/dagent\&.cfg> [<ENTRYID>]\&.
  242. .sp
  243. If the script is successful (exitcode is 0), then no other actions are performed (eg rules or vacation messages) and the message is not delivered in the inbox\&. If the script exits with a non\-zero exit code, rules and vacation messages are run as usual, and the message is delivered in the inbox (or other folder, depending on rules or options)\&.
  244. .sp
  245. Default:
  246. \fI/usr/sbin/kopano\-mr\-accept\fR
  247. .RE
  248. .PP
  249. \fBmr_autoprocessor\fR
  250. .RS 4
  251. Kopano\-dagent can auto\-process meeting requests\&. When this is enabled and a meeting request, response or meeting cancellation is received, this script is started with the following parameters: /usr/bin/kopano\-mr\-process <username> </path/to/dagent\&.cfg> [<ENTRYID>]\&.
  252. .sp
  253. Default:
  254. \fI/usr/bin/kopano\-mr\-process\fR
  255. .RE
  256. .PP
  257. \fBplugin_enabled\fR
  258. .RS 4
  259. Enable or disable the dagent plugin framework\&.
  260. .sp
  261. Default:
  262. \fIyes\fR
  263. .RE
  264. .PP
  265. \fBplugin_manager_path\fR
  266. .RS 4
  267. The path to the dagent plugin manager\&.
  268. .sp
  269. Default:
  270. \fI/usr/share/kopano\-dagent/python\fR
  271. .RE
  272. .PP
  273. \fBplugin_path\fR
  274. .RS 4
  275. Path to the activated dagent plugins\&. This folder contains symlinks to the kopano plugins and custom scripts\&. The plugins are installed in
  276. \fI/usr/share/kopano\-dagent/python/plugins\fR\&. To activate a plugin create a symbolic link in the
  277. \fIplugin_path\fR
  278. directory\&.
  279. .sp
  280. Example:
  281. .sp
  282. \fBln\fR
  283. \fB\-s\fR
  284. \fI/usr/share/kopano\-dagent/python/plugins/BMP2PNG\&.py\fR
  285. \fI/var/lib/kopano/dagent/plugins/BMP2PNG\&.py\fR
  286. .sp
  287. Default:
  288. \fI/var/lib/kopano/dagent/plugins\fR
  289. .RE
  290. .PP
  291. \fBdefault_charset\fR
  292. .RS 4
  293. Some emails do not contain any charset information or specify us\-ascii even though it isn\*(Aqt\&. In both cases, dagent will assume the following charset is used\&. Note that this implies that the given charset should be a superset of us\-ascii (most charsets are)\&.
  294. .sp
  295. Default:
  296. \fIiso\-8859\-15\fR
  297. .RE
  298. .PP
  299. \fBset_rule_headers\fR
  300. .RS 4
  301. Enable the addition of X\-Kopano\-Rule\-Action headers on messages that have been forwarded or replied by a rule\&.
  302. .sp
  303. Default:
  304. \fIyes\fR
  305. .RE
  306. .PP
  307. \fBno_double_forward\fR
  308. .RS 4
  309. Enable this option to prevent rules to cause a loop\&. An e\-mail can only be forwarded once\&. When this option is enabled, the set_rule_headers option must also be enabled\&.
  310. .sp
  311. Default:
  312. \fIno\fR
  313. .RE
  314. .PP
  315. \fBforward_whitelist_domains\fR
  316. .RS 4
  317. A list of space\-separated domains to which forwarding via a rule is allowed\&. The "*" matches zero or more characters (including dots, i\&.e\&. subdomains at multiple levels)\&. Do not use "*kopano.com" to permit both "@kopano.com" and "@sub.kopano.com", as that would also allow "@notkopano.com"\&.
  318. .sp
  319. Default:
  320. \fI*\fR
  321. .RE
  322. .SH "RELOADING"
  323. .PP
  324. The following options are reloadable by sending the kopano\-dagent process a HUP signal:
  325. .PP
  326. log_level
  327. .RS 4
  328. .RE
  329. .PP
  330. archive_on_delivery
  331. .RS 4
  332. .RE
  333. .PP
  334. mr_autoaccepter
  335. .RS 4
  336. .RE
  337. .SH "FILES"
  338. .PP
  339. /etc/kopano/dagent\&.cfg
  340. .RS 4
  341. The Kopano dagent configuration file\&.
  342. .RE
  343. .SH "AUTHOR"
  344. .PP
  345. Written by Kopano\&.
  346. .SH "SEE ALSO"
  347. .PP
  348. \fBkopano-dagent\fR(8)