source: mailjam/docs/src/_build/html/_sources/configuration.txt@ 35:dccf85c165a8

Last change on this file since 35:dccf85c165a8 was 27:b1d527287347, checked in by Borja Lopez <borja@…>, 13 years ago

Added more information to the README file

Updated the architecture scheme so it fits the renaming of the project
to mailjam

Fixed the search path for configuration files. Now it searches on /etc
first, /usr/local/etc then.

Added more docs regarding the installation, configuration and running
of each component

File size: 15.2 KB
Line 
1Configuration
2=============
3
4Mailjam has separate configuration files for the different apps (the daemon and
5the variety of different clients available). Check below to read more about the
6configuration file you need to modify depending on what you want to do.
7
8.. contents::
9
10.. _configuration_daemon:
11
12Mailjam daemon configuration file - mailjam.conf
13------------------------------------------------
14
15All the configurations that can be applied to the :ref:`overview_mailjam_daemon`
16are registered in the **mailjam.conf** file. That file contains ini-style [1]_
17configuration parameters, separated in different *categories*.
18
19.. note::
20
21 The mailjam.conf file will be installed in different locations depending on
22 your setup. The usual locations are:
23
24 - */etc/mailjam/mailjam.conf* - In most Linux systems (like archlinux,
25 gentoo, fedora, debian, ubuntu, etc)
26
27 - */usr/local/etc/mailjam/mailjam.conf* - In most BSD systems (like FreeBSD,
28 OpenBSD, NetBSD, etc)
29
30 There is a copy of the configuration file in the *conf/* directory, within
31 the sources.
32
33.. _configuration_daemon_xmlrpc:
34
35xmlrpc_server
36+++++++++++++
37
38This section contains the configuration parameters that modify the behaviour of
39the daemon when serving content through XMLRPC [2]_.
40
41These are all the available parameters in this section:
42
43.. _configuration_daemon_xmlrpc_address:
44
45address
46*******
47
48Default: ``localhost``
49
50The address where the daemon will be listening for XMLRPC requests. Use ``*``
51to listen an all available addresses, or any specific ``hostname`` or
52``ip address`` value.
53
54.. _configuration_daemon_xmlrpc_port:
55
56port
57****
58
59Default: ``9876``
60
61The port where the daemon will be listening por XMLRPC requests.
62
63.. _configuration_daemon_xmlrpc_ssl:
64
65ssl
66***
67
68Default: ``false`` (because ssl support hasn't been added yet)
69
70Enables/disables SSL [3]_ support in the daemon. If ``false`` all the traffic
71to/from the server will travel unencrypted. If ``true`` all the traffic will
72travel encrypted.
73
74.. _configuration_daemon_xmlrpc_ssl_key:
75
76ssl_key
77*******
78
79Default: ``/usr/local/etc/mailjam/ssl/mailjam.key``
80
81Path to the ssl key used for encrypted SSL sessions.
82
83.. warning::
84
85 This parameter is not used right now, as ssl support hasn't been added yet)
86
87.. _configuration_daemon_xmlrpc_ssl_crt:
88
89ssl_crt
90*******
91
92Default: ``/usr/local/etc/mailjam/ssl/mailjam.crt``
93
94Path to the ssl certificate used for encrypted SSL sessions.
95
96.. warning::
97
98 This parameter is not used right now, as ssl support hasn't been added yet)
99
100.. _configuration_daemon_xmlrpc_logfile:
101
102logfile
103*******
104
105Default: ``/var/log/mailjam/xmlrpc_server.log``
106
107Path to the file where log messages will be saved
108
109.. _configuration_daemon_storage:
110
111storage
112+++++++
113
114This section contains the configuration parameters that modify the way the
115daemon saves data to disk, using one of the storage backends.
116
117These are all the available parameters in this section:
118
119.. _configuration_daemon_storage_backend:
120
121backend
122*******
123
124Default: ``json``
125
126Sets the type of backend the daemon is going to use. Right now the only backend
127available is ``json``.
128
129.. _configuration_daemon_xmlrpc_path:
130
131path
132****
133
134Default: ``/usr/local/mailjam/storage``
135
136Path to the directory where the backend will save data.
137
138.. _configuration_daemon_storage_lists_db:
139
140lists_db
141********
142
143Default: ``/usr/local/mailjam/storage/mailings.json``
144
145Path to the file where the identifiers of existing mailing lists will be saved.
146
147.. note::
148
149 The default configuration file contains a dynamic setting for this
150 parameter::
151
152 lists_db = %(path)s/mailings.%(backend)s
153
154 That means that the parameter will inherit the values of the base path and
155 the extension of the file from the *storage.path* and *storage.backend*
156 settings.
157
158.. seealso::
159
160 More information about this (and other tricks) here:
161
162 http://docs.python.org/library/configparser.html
163
164 http://www.doughellmann.com/PyMOTW/ConfigParser
165
166.. _configuration_daemon_xmlrpc_members_db:
167
168members_db
169**********
170
171Default: ``/usr/local/mailjam/storage/members.json``
172
173Path to the file where the identifiers of existing members will be saved.
174
175.. note::
176
177 The same notes as for the *lists_db* parameter apply to this configuration
178 parameter.
179
180.. _configuration_daemon_archive:
181
182archive
183+++++++
184
185This section contains the configuration parameters that modify the way the
186daemon saves data to disk, using one of the storage backends.
187
188These are all the available parameters in this section:
189
190.. _configuration_daemon_archive_enabled:
191
192enabled
193*******
194
195Default: ``true``
196
197Enables/disables the *archives* feature. When enabled, Mailjam saves copies of
198email address into an *archive*, so they can be read later, through a web
199interface.
200
201To disable that feature, set this to ``false``.
202
203.. warning::
204
205 This feature is not ready yet, so it doesn't matter if you set this to true
206 or false
207
208.. _configuration_daemon_archive_backend:
209
210backend
211*******
212
213Default: ``json``
214
215Sets the type of backend used to store messages into the archive.
216
217.. warning::
218
219 This feature is not ready yet.
220
221.. _configuration_daemon_archive_path:
222
223path
224****
225
226Default: ``/usr/local/mailjam/archives``
227
228Path to the directory where the archives will be saved.
229
230.. warning::
231
232 This feature is not ready yet.
233
234.. _configuration_daemon_mailing_lists:
235
236mailing_lists
237+++++++++++++
238
239This section contains the configuration parameters that set the default
240behaviour for mailing lists.
241
242.. warning::
243
244 This parameters are not currently used in mailjam, we are still working
245 on per-mailing-list configuration parameters.
246
247These are all the available parameters in this section:
248
249.. _configuration_daemon_mailing_lists_private:
250
251private
252*******
253
254Default: ``true``
255
256Sets if a given mailing list is *private* (only registered members can send
257messages to the list) or not (anyone can send messages to the list).
258
259If ``false``, by default all new lists will not be private.
260
261.. _configuration_daemon_members:
262
263members
264+++++++
265
266This section contains the configuration parameters that set the default
267behaviour for members.
268
269.. warning::
270
271 This parameters are not currently used in mailjam, we are still working
272 on per-member configuration parameters.
273
274These are all the available parameters in this section:
275
276.. _configuration_daemon_members_auto_signup:
277
278auto_signup
279***********
280
281Default: ``false``
282
283Enables/disables auto-registration of members to mailing lists through a public
284web application. If ``true``, users can register themselves into mailing lists
285using a public web interface. If ``false``, only mailing lists administrators
286will be able to add new members to the list.
287
288.. _configuration_daemon_members_allow_chpasswd:
289
290allow_chpasswd
291**************
292
293Default: ``false``
294
295Enables/disables the option to update passwords by the members themselves.
296
297If ``true``, members of a mailing list will be able to update their passwords
298using a public web interface. If ``false``, only mailing lists administrators
299will be able to reset those passwords.
300
301.. _configuration_mta_client:
302
303Mailjam MTA client configuration file - mailjam-mta.conf
304--------------------------------------------------------
305
306This file contains all the parameters to configure the
307:ref:`overview_mailjam_mta_client` properly. It contains ini-style [1]_
308configuration parameters, separated in different *categories*.
309
310.. note::
311
312 The mailjam-mta.conf file will be installed in different locations
313 depending on your setup. The usual locations are:
314
315 - */etc/mailjam/mailjam-mta.conf* - In most Linux systems (like archlinux,
316 gentoo, fedora, debian, ubuntu, etc)
317
318 - */usr/local/etc/mailjam/mailjam-mta.conf* - In most BSD systems (like
319 FreeBSD, OpenBSD, NetBSD, etc)
320
321 There is a copy of the configuration file in the *conf/* directory, within
322 the sources.
323
324.. _configuration_mta_client_server:
325
326server
327++++++
328
329This section contains the configuration parameters that tell the MTA client
330where to connect when trying to interact with the
331:ref:`overview_mailjam_daemon`.
332
333These are all the available parameters in this section:
334
335.. _configuration_mta_client_server_address:
336
337address
338*******
339
340Default: ``localhost``
341
342The address where the daemon is listening for XMLRPC requests. This is
343the address to where the client will try to connect to.
344
345.. _configuration_mta_client_server_port:
346
347port
348****
349
350Default: ``9876``
351
352The port where the daemon accepts incoming XMLRPC requests. This is the
353port to where the client will try to connect to.
354
355.. _configuration_mta_client_server_uri:
356
357uri
358***
359
360Default: http://localhost:9876
361
362This is the URI [4]_ to where the client will connect to. It is constructed
363based on the values of the :ref:`configuration_mta_client_server_address`
364and :ref:`configuration_mta_client_server_port` parameters.
365
366.. note::
367
368 The default configuration file contains a dynamic setting for this
369 parameter::
370
371 uri = http://%(address)s:%(port)s
372
373 That means that the parameter will inherit the values from the
374 :ref:`configuration_mta_client_server_address`
375 and :ref:`configuration_mta_client_server_port` parameters.
376
377.. seealso::
378
379 More information about this (and other tricks) here:
380
381 http://docs.python.org/library/configparser.html
382
383 http://www.doughellmann.com/PyMOTW/ConfigParser
384
385.. warning::
386
387 You can replace this with any URI you would like, **this is the parameter
388 that is really used for establishing new connections** so be aware that if
389 you remove the references to the
390 :ref:`configuration_mta_client_server_address` and
391 :ref:`configuration_mta_client_server_port` parameters, the values you have
392 provided for those parameters will be ignored.
393
394.. _configuration_mta_client_server_ssl:
395
396ssl
397***
398
399Default: ``false`` (because ssl support hasn't been added yet)
400
401Enables/disables SSL [3]_ connections to the daemon. If ``false`` all the
402traffic to/from the server will travel unencrypted. If ``true`` all the traffic
403will travel encrypted.
404
405.. warning::
406
407 In order to enable SSL support in the client, you have to be sure the
408 :ref:`overview_mailjam_daemon` supports SSL too (check the
409 :ref:`configuration_daemon_xmlrpc_ssl` parameter in the
410 :ref:`configuration_daemon_xmlrpc` section of the
411 :ref:`daemon configuration file <configuration_daemon>`)
412
413.. _configuration_mta_client_archive:
414
415archive
416+++++++
417
418This section contains the configuration parameters that set where the files
419generated by the client will be stored/saved.
420
421.. seealso::
422
423 For more information about the kind of files the client does generate,
424 take a look at the
425 :ref:`MTA client documentation <overview_mailjam_mta_client>`.
426
427These are all the available parameters in this section:
428
429.. _configurtion_mta_client_archive_persistent:
430
431persistent
432**********
433
434Default: ``true``
435
436Enables/disables the local archive for the client. If ``true``, the client
437will save a copy of every email sent to the list in an internal archive,
438that could be checked/queried later. If ``false``, the emails will not be
439kept on disk after being processed.
440
441.. warning::
442
443 This feature is not ready yet.
444
445
446.. _configuration_mta_client_archive_path:
447
448path
449****
450
451Default: ``/usr/local/mailjam/archive-mta``
452
453Path to the directory where the archives will be saved.
454
455.. warning::
456
457 This feature is not ready yet.
458
459
460.. _configuration_cli_client:
461
462Mailjam CLI client configuration file - mailjam-cli.conf
463--------------------------------------------------------
464
465This file contains all the parameters to configure the
466:ref:`overview_mailjam_cli_client` properly. It contains ini-style [1]_
467configuration parameters, separated in different *categories*.
468
469.. note::
470
471 The mailjam-cli.conf file will be installed in different locations
472 depending on your setup. The usual locations are:
473
474 - */etc/mailjam/mailjam-cli.conf* - In most Linux systems (like archlinux,
475 gentoo, fedora, debian, ubuntu, etc)
476
477 - */usr/local/etc/mailjam/mailjam-cli.conf* - In most BSD systems (like
478 FreeBSD, OpenBSD, NetBSD, etc)
479
480 There is a copy of the configuration file in the *conf/* directory, within
481 the sources.
482
483.. _configuration_cli_client_server:
484
485server
486++++++
487
488This section contains the configuration parameters that tell the cli client
489where to connect when trying to interact with the
490:ref:`overview_mailjam_daemon`.
491
492These are all the available parameters in this section:
493
494.. _configuration_cli_client_server_address:
495
496address
497*******
498
499Default: ``localhost``
500
501The address where the daemon is listening for XMLRPC requests. This is
502the address to where the client will try to connect to.
503
504.. _configuration_cli_client_server_port:
505
506port
507****
508
509Default: ``9876``
510
511The port where the daemon accepts incoming XMLRPC requests. This is the
512port to where the client will try to connect to.
513
514.. _configuration_cli_client_server_uri:
515
516uri
517***
518
519Default: http://localhost:9876
520
521This is the URI [4]_ to where the client will connect to. It is constructed
522based on the values of the :ref:`configuration_cli_client_server_address`
523and :ref:`configuration_cli_client_server_port` parameters.
524
525.. note::
526
527 The default configuration file contains a dynamic setting for this
528 parameter::
529
530 uri = http://%(address)s:%(port)s
531
532 That means that the parameter will inherit the values from the
533 :ref:`configuration_cli_client_server_address`
534 and :ref:`configuration_cli_client_server_port` parameters.
535
536.. seealso::
537
538 More information about this (and other tricks) here:
539
540 http://docs.python.org/library/configparser.html
541
542 http://www.doughellmann.com/PyMOTW/ConfigParser
543
544.. warning::
545
546 You can replace this with any URI you would like, **this is the parameter
547 that is really used for establishing new connections** so be aware that if
548 you remove the references to the
549 :ref:`configuration_cli_client_server_address` and
550 :ref:`configuration_cli_client_server_port` parameters, the values you have
551 provided for those parameters will be ignored.
552
553.. _configuration_cli_client_server_ssl:
554
555ssl
556***
557
558Default: ``false`` (because ssl support hasn't been added yet)
559
560Enables/disables SSL [3]_ connections to the daemon. If ``false`` all the
561traffic to/from the server will travel unencrypted. If ``true`` all the traffic
562will travel encrypted.
563
564.. warning::
565
566 In order to enable SSL support in the client, you have to be sure the
567 :ref:`overview_mailjam_daemon` supports SSL too (check the
568 :ref:`configuration_daemon_xmlrpc_ssl` parameter in the
569 :ref:`configuration_daemon_xmlrpc` section of the
570 :ref:`daemon configuration file <configuration_daemon>`)
571
572.. _configuration_cli_client_history:
573
574history
575+++++++
576
577This section contains the configuration parameters that set the behaviour
578of the client feature that allows it to save a history of commands provided
579by the user.
580
581These are all the available parameters in this section:
582
583.. _configurtion_cli_client_archive_enabled:
584
585enabled
586*******
587
588Default: ``true``
589
590Enables/disables history support in the client. If ``true`` all commands
591provided by an user will be saved to disk. If ``false`` nothing will be
592written to disk.
593
594.. _configuration_cli_client_history_path:
595
596path
597****
598
599Default: ``~/.mailjam/cli/history``
600
601Path to the file where the list of executed commands will be saved.
602
603
604.. [1] http://en.wikipedia.org/wiki/INI_file
605.. [2] http://en.wikipedia.org/wiki/XML-RPC
606.. [3] http://en.wikipedia.org/wiki/Secure_Socket_Layer
607.. [4] http://en.wikipedia.org/wiki/Uniform_resource_identifier
Note: See TracBrowser for help on using the repository browser.