| 1 | Configuration
|
|---|
| 2 | =============
|
|---|
| 3 |
|
|---|
| 4 | Mailjam has separate configuration files for the different apps (the daemon and
|
|---|
| 5 | the variety of different clients available). Check below to read more about the
|
|---|
| 6 | configuration file you need to modify depending on what you want to do.
|
|---|
| 7 |
|
|---|
| 8 | .. contents::
|
|---|
| 9 |
|
|---|
| 10 | .. _configuration_daemon:
|
|---|
| 11 |
|
|---|
| 12 | Mailjam daemon configuration file - mailjam.conf
|
|---|
| 13 | ------------------------------------------------
|
|---|
| 14 |
|
|---|
| 15 | All the configurations that can be applied to the :ref:`overview_mailjam_daemon`
|
|---|
| 16 | are registered in the **mailjam.conf** file. That file contains ini-style [1]_
|
|---|
| 17 | configuration 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 |
|
|---|
| 35 | xmlrpc_server
|
|---|
| 36 | +++++++++++++
|
|---|
| 37 |
|
|---|
| 38 | This section contains the configuration parameters that modify the behaviour of
|
|---|
| 39 | the daemon when serving content through XMLRPC [2]_.
|
|---|
| 40 |
|
|---|
| 41 | These are all the available parameters in this section:
|
|---|
| 42 |
|
|---|
| 43 | .. _configuration_daemon_xmlrpc_address:
|
|---|
| 44 |
|
|---|
| 45 | address
|
|---|
| 46 | *******
|
|---|
| 47 |
|
|---|
| 48 | Default: ``localhost``
|
|---|
| 49 |
|
|---|
| 50 | The address where the daemon will be listening for XMLRPC requests. Use ``*``
|
|---|
| 51 | to listen an all available addresses, or any specific ``hostname`` or
|
|---|
| 52 | ``ip address`` value.
|
|---|
| 53 |
|
|---|
| 54 | .. _configuration_daemon_xmlrpc_port:
|
|---|
| 55 |
|
|---|
| 56 | port
|
|---|
| 57 | ****
|
|---|
| 58 |
|
|---|
| 59 | Default: ``9876``
|
|---|
| 60 |
|
|---|
| 61 | The port where the daemon will be listening por XMLRPC requests.
|
|---|
| 62 |
|
|---|
| 63 | .. _configuration_daemon_xmlrpc_ssl:
|
|---|
| 64 |
|
|---|
| 65 | ssl
|
|---|
| 66 | ***
|
|---|
| 67 |
|
|---|
| 68 | Default: ``false`` (because ssl support hasn't been added yet)
|
|---|
| 69 |
|
|---|
| 70 | Enables/disables SSL [3]_ support in the daemon. If ``false`` all the traffic
|
|---|
| 71 | to/from the server will travel unencrypted. If ``true`` all the traffic will
|
|---|
| 72 | travel encrypted.
|
|---|
| 73 |
|
|---|
| 74 | .. _configuration_daemon_xmlrpc_ssl_key:
|
|---|
| 75 |
|
|---|
| 76 | ssl_key
|
|---|
| 77 | *******
|
|---|
| 78 |
|
|---|
| 79 | Default: ``/usr/local/etc/mailjam/ssl/mailjam.key``
|
|---|
| 80 |
|
|---|
| 81 | Path 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 |
|
|---|
| 89 | ssl_crt
|
|---|
| 90 | *******
|
|---|
| 91 |
|
|---|
| 92 | Default: ``/usr/local/etc/mailjam/ssl/mailjam.crt``
|
|---|
| 93 |
|
|---|
| 94 | Path 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 |
|
|---|
| 102 | logfile
|
|---|
| 103 | *******
|
|---|
| 104 |
|
|---|
| 105 | Default: ``/var/log/mailjam/xmlrpc_server.log``
|
|---|
| 106 |
|
|---|
| 107 | Path to the file where log messages will be saved
|
|---|
| 108 |
|
|---|
| 109 | .. _configuration_daemon_storage:
|
|---|
| 110 |
|
|---|
| 111 | storage
|
|---|
| 112 | +++++++
|
|---|
| 113 |
|
|---|
| 114 | This section contains the configuration parameters that modify the way the
|
|---|
| 115 | daemon saves data to disk, using one of the storage backends.
|
|---|
| 116 |
|
|---|
| 117 | These are all the available parameters in this section:
|
|---|
| 118 |
|
|---|
| 119 | .. _configuration_daemon_storage_backend:
|
|---|
| 120 |
|
|---|
| 121 | backend
|
|---|
| 122 | *******
|
|---|
| 123 |
|
|---|
| 124 | Default: ``json``
|
|---|
| 125 |
|
|---|
| 126 | Sets the type of backend the daemon is going to use. Right now the only backend
|
|---|
| 127 | available is ``json``.
|
|---|
| 128 |
|
|---|
| 129 | .. _configuration_daemon_xmlrpc_path:
|
|---|
| 130 |
|
|---|
| 131 | path
|
|---|
| 132 | ****
|
|---|
| 133 |
|
|---|
| 134 | Default: ``/usr/local/mailjam/storage``
|
|---|
| 135 |
|
|---|
| 136 | Path to the directory where the backend will save data.
|
|---|
| 137 |
|
|---|
| 138 | .. _configuration_daemon_storage_lists_db:
|
|---|
| 139 |
|
|---|
| 140 | lists_db
|
|---|
| 141 | ********
|
|---|
| 142 |
|
|---|
| 143 | Default: ``/usr/local/mailjam/storage/mailings.json``
|
|---|
| 144 |
|
|---|
| 145 | Path 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 |
|
|---|
| 168 | members_db
|
|---|
| 169 | **********
|
|---|
| 170 |
|
|---|
| 171 | Default: ``/usr/local/mailjam/storage/members.json``
|
|---|
| 172 |
|
|---|
| 173 | Path 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 |
|
|---|
| 182 | archive
|
|---|
| 183 | +++++++
|
|---|
| 184 |
|
|---|
| 185 | This section contains the configuration parameters that modify the way the
|
|---|
| 186 | daemon saves data to disk, using one of the storage backends.
|
|---|
| 187 |
|
|---|
| 188 | These are all the available parameters in this section:
|
|---|
| 189 |
|
|---|
| 190 | .. _configuration_daemon_archive_enabled:
|
|---|
| 191 |
|
|---|
| 192 | enabled
|
|---|
| 193 | *******
|
|---|
| 194 |
|
|---|
| 195 | Default: ``true``
|
|---|
| 196 |
|
|---|
| 197 | Enables/disables the *archives* feature. When enabled, Mailjam saves copies of
|
|---|
| 198 | email address into an *archive*, so they can be read later, through a web
|
|---|
| 199 | interface.
|
|---|
| 200 |
|
|---|
| 201 | To 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 |
|
|---|
| 210 | backend
|
|---|
| 211 | *******
|
|---|
| 212 |
|
|---|
| 213 | Default: ``json``
|
|---|
| 214 |
|
|---|
| 215 | Sets 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 |
|
|---|
| 223 | path
|
|---|
| 224 | ****
|
|---|
| 225 |
|
|---|
| 226 | Default: ``/usr/local/mailjam/archives``
|
|---|
| 227 |
|
|---|
| 228 | Path 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 |
|
|---|
| 236 | mailing_lists
|
|---|
| 237 | +++++++++++++
|
|---|
| 238 |
|
|---|
| 239 | This section contains the configuration parameters that set the default
|
|---|
| 240 | behaviour 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 |
|
|---|
| 247 | These are all the available parameters in this section:
|
|---|
| 248 |
|
|---|
| 249 | .. _configuration_daemon_mailing_lists_private:
|
|---|
| 250 |
|
|---|
| 251 | private
|
|---|
| 252 | *******
|
|---|
| 253 |
|
|---|
| 254 | Default: ``true``
|
|---|
| 255 |
|
|---|
| 256 | Sets if a given mailing list is *private* (only registered members can send
|
|---|
| 257 | messages to the list) or not (anyone can send messages to the list).
|
|---|
| 258 |
|
|---|
| 259 | If ``false``, by default all new lists will not be private.
|
|---|
| 260 |
|
|---|
| 261 | .. _configuration_daemon_members:
|
|---|
| 262 |
|
|---|
| 263 | members
|
|---|
| 264 | +++++++
|
|---|
| 265 |
|
|---|
| 266 | This section contains the configuration parameters that set the default
|
|---|
| 267 | behaviour 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 |
|
|---|
| 274 | These are all the available parameters in this section:
|
|---|
| 275 |
|
|---|
| 276 | .. _configuration_daemon_members_auto_signup:
|
|---|
| 277 |
|
|---|
| 278 | auto_signup
|
|---|
| 279 | ***********
|
|---|
| 280 |
|
|---|
| 281 | Default: ``false``
|
|---|
| 282 |
|
|---|
| 283 | Enables/disables auto-registration of members to mailing lists through a public
|
|---|
| 284 | web application. If ``true``, users can register themselves into mailing lists
|
|---|
| 285 | using a public web interface. If ``false``, only mailing lists administrators
|
|---|
| 286 | will be able to add new members to the list.
|
|---|
| 287 |
|
|---|
| 288 | .. _configuration_daemon_members_allow_chpasswd:
|
|---|
| 289 |
|
|---|
| 290 | allow_chpasswd
|
|---|
| 291 | **************
|
|---|
| 292 |
|
|---|
| 293 | Default: ``false``
|
|---|
| 294 |
|
|---|
| 295 | Enables/disables the option to update passwords by the members themselves.
|
|---|
| 296 |
|
|---|
| 297 | If ``true``, members of a mailing list will be able to update their passwords
|
|---|
| 298 | using a public web interface. If ``false``, only mailing lists administrators
|
|---|
| 299 | will be able to reset those passwords.
|
|---|
| 300 |
|
|---|
| 301 | .. _configuration_mta_client:
|
|---|
| 302 |
|
|---|
| 303 | Mailjam MTA client configuration file - mailjam-mta.conf
|
|---|
| 304 | --------------------------------------------------------
|
|---|
| 305 |
|
|---|
| 306 | This file contains all the parameters to configure the
|
|---|
| 307 | :ref:`overview_mailjam_mta_client` properly. It contains ini-style [1]_
|
|---|
| 308 | configuration 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 |
|
|---|
| 326 | server
|
|---|
| 327 | ++++++
|
|---|
| 328 |
|
|---|
| 329 | This section contains the configuration parameters that tell the MTA client
|
|---|
| 330 | where to connect when trying to interact with the
|
|---|
| 331 | :ref:`overview_mailjam_daemon`.
|
|---|
| 332 |
|
|---|
| 333 | These are all the available parameters in this section:
|
|---|
| 334 |
|
|---|
| 335 | .. _configuration_mta_client_server_address:
|
|---|
| 336 |
|
|---|
| 337 | address
|
|---|
| 338 | *******
|
|---|
| 339 |
|
|---|
| 340 | Default: ``localhost``
|
|---|
| 341 |
|
|---|
| 342 | The address where the daemon is listening for XMLRPC requests. This is
|
|---|
| 343 | the address to where the client will try to connect to.
|
|---|
| 344 |
|
|---|
| 345 | .. _configuration_mta_client_server_port:
|
|---|
| 346 |
|
|---|
| 347 | port
|
|---|
| 348 | ****
|
|---|
| 349 |
|
|---|
| 350 | Default: ``9876``
|
|---|
| 351 |
|
|---|
| 352 | The port where the daemon accepts incoming XMLRPC requests. This is the
|
|---|
| 353 | port to where the client will try to connect to.
|
|---|
| 354 |
|
|---|
| 355 | .. _configuration_mta_client_server_uri:
|
|---|
| 356 |
|
|---|
| 357 | uri
|
|---|
| 358 | ***
|
|---|
| 359 |
|
|---|
| 360 | Default: http://localhost:9876
|
|---|
| 361 |
|
|---|
| 362 | This is the URI [4]_ to where the client will connect to. It is constructed
|
|---|
| 363 | based on the values of the :ref:`configuration_mta_client_server_address`
|
|---|
| 364 | and :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 |
|
|---|
| 396 | ssl
|
|---|
| 397 | ***
|
|---|
| 398 |
|
|---|
| 399 | Default: ``false`` (because ssl support hasn't been added yet)
|
|---|
| 400 |
|
|---|
| 401 | Enables/disables SSL [3]_ connections to the daemon. If ``false`` all the
|
|---|
| 402 | traffic to/from the server will travel unencrypted. If ``true`` all the traffic
|
|---|
| 403 | will 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 |
|
|---|
| 415 | archive
|
|---|
| 416 | +++++++
|
|---|
| 417 |
|
|---|
| 418 | This section contains the configuration parameters that set where the files
|
|---|
| 419 | generated 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 |
|
|---|
| 427 | These are all the available parameters in this section:
|
|---|
| 428 |
|
|---|
| 429 | .. _configurtion_mta_client_archive_persistent:
|
|---|
| 430 |
|
|---|
| 431 | persistent
|
|---|
| 432 | **********
|
|---|
| 433 |
|
|---|
| 434 | Default: ``true``
|
|---|
| 435 |
|
|---|
| 436 | Enables/disables the local archive for the client. If ``true``, the client
|
|---|
| 437 | will save a copy of every email sent to the list in an internal archive,
|
|---|
| 438 | that could be checked/queried later. If ``false``, the emails will not be
|
|---|
| 439 | kept 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 |
|
|---|
| 448 | path
|
|---|
| 449 | ****
|
|---|
| 450 |
|
|---|
| 451 | Default: ``/usr/local/mailjam/archive-mta``
|
|---|
| 452 |
|
|---|
| 453 | Path 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 |
|
|---|
| 462 | Mailjam CLI client configuration file - mailjam-cli.conf
|
|---|
| 463 | --------------------------------------------------------
|
|---|
| 464 |
|
|---|
| 465 | This file contains all the parameters to configure the
|
|---|
| 466 | :ref:`overview_mailjam_cli_client` properly. It contains ini-style [1]_
|
|---|
| 467 | configuration 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 |
|
|---|
| 485 | server
|
|---|
| 486 | ++++++
|
|---|
| 487 |
|
|---|
| 488 | This section contains the configuration parameters that tell the cli client
|
|---|
| 489 | where to connect when trying to interact with the
|
|---|
| 490 | :ref:`overview_mailjam_daemon`.
|
|---|
| 491 |
|
|---|
| 492 | These are all the available parameters in this section:
|
|---|
| 493 |
|
|---|
| 494 | .. _configuration_cli_client_server_address:
|
|---|
| 495 |
|
|---|
| 496 | address
|
|---|
| 497 | *******
|
|---|
| 498 |
|
|---|
| 499 | Default: ``localhost``
|
|---|
| 500 |
|
|---|
| 501 | The address where the daemon is listening for XMLRPC requests. This is
|
|---|
| 502 | the address to where the client will try to connect to.
|
|---|
| 503 |
|
|---|
| 504 | .. _configuration_cli_client_server_port:
|
|---|
| 505 |
|
|---|
| 506 | port
|
|---|
| 507 | ****
|
|---|
| 508 |
|
|---|
| 509 | Default: ``9876``
|
|---|
| 510 |
|
|---|
| 511 | The port where the daemon accepts incoming XMLRPC requests. This is the
|
|---|
| 512 | port to where the client will try to connect to.
|
|---|
| 513 |
|
|---|
| 514 | .. _configuration_cli_client_server_uri:
|
|---|
| 515 |
|
|---|
| 516 | uri
|
|---|
| 517 | ***
|
|---|
| 518 |
|
|---|
| 519 | Default: http://localhost:9876
|
|---|
| 520 |
|
|---|
| 521 | This is the URI [4]_ to where the client will connect to. It is constructed
|
|---|
| 522 | based on the values of the :ref:`configuration_cli_client_server_address`
|
|---|
| 523 | and :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 |
|
|---|
| 555 | ssl
|
|---|
| 556 | ***
|
|---|
| 557 |
|
|---|
| 558 | Default: ``false`` (because ssl support hasn't been added yet)
|
|---|
| 559 |
|
|---|
| 560 | Enables/disables SSL [3]_ connections to the daemon. If ``false`` all the
|
|---|
| 561 | traffic to/from the server will travel unencrypted. If ``true`` all the traffic
|
|---|
| 562 | will 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 |
|
|---|
| 574 | history
|
|---|
| 575 | +++++++
|
|---|
| 576 |
|
|---|
| 577 | This section contains the configuration parameters that set the behaviour
|
|---|
| 578 | of the client feature that allows it to save a history of commands provided
|
|---|
| 579 | by the user.
|
|---|
| 580 |
|
|---|
| 581 | These are all the available parameters in this section:
|
|---|
| 582 |
|
|---|
| 583 | .. _configurtion_cli_client_archive_enabled:
|
|---|
| 584 |
|
|---|
| 585 | enabled
|
|---|
| 586 | *******
|
|---|
| 587 |
|
|---|
| 588 | Default: ``true``
|
|---|
| 589 |
|
|---|
| 590 | Enables/disables history support in the client. If ``true`` all commands
|
|---|
| 591 | provided by an user will be saved to disk. If ``false`` nothing will be
|
|---|
| 592 | written to disk.
|
|---|
| 593 |
|
|---|
| 594 | .. _configuration_cli_client_history_path:
|
|---|
| 595 |
|
|---|
| 596 | path
|
|---|
| 597 | ****
|
|---|
| 598 |
|
|---|
| 599 | Default: ``~/.mailjam/cli/history``
|
|---|
| 600 |
|
|---|
| 601 | Path 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
|
|---|