diff options
| -rw-r--r-- | README.rst | 1 | ||||
| -rw-r--r-- | src/mailman/config/docs/config.rst | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/README.rst b/README.rst index 2573ae253..3d412fa1b 100644 --- a/README.rst +++ b/README.rst @@ -47,6 +47,7 @@ Table of Contents src/mailman/docs/INTRODUCTION src/mailman/docs/RELEASENOTES + src/mailman/config/docs/config src/mailman/docs/DATABASE src/mailman/docs/MTA src/mailman/docs/WebUIin5 diff --git a/src/mailman/config/docs/config.rst b/src/mailman/config/docs/config.rst new file mode 100644 index 000000000..af9b35061 --- /dev/null +++ b/src/mailman/config/docs/config.rst @@ -0,0 +1,53 @@ +======================= + Mailman Configuration +======================= + +This is Mailman's default configuration, directly included from the source +code. The format is standard "ini"-style. + +You can override these in your configuration to modify the behavior of Mailman +Core. To override these settings, these file system paths are search in +order: + +* The file system path specified by the environment variable + ``$MAILMAN_CONFIG_FILE``; +* ``mailman.cfg`` in the current working directory; +* ``var/etc/mailman.cfg`` relative to the current working directory; +* ``$HOME/.mailman.cfg`` +* ``/etc/mailman.cfg`` +* ``../../etc/mailman.cfg`` relative to the working directory of ``argv[0]`` + +You only need to include the settings you want to override. They must be +specified inside the appropriate section. For example, to override the "no +reply address" only, put this in your ``mailman.cfg`` file:: + + [mailman] + noreply_address: ignore@example.com + +You will need to restart Mailman for any changes to take effect. + + +schema.cfg +========== + +``schema.cfg`` includes templates for several configuration options that are +instantiated inside of ``mailman.cfg``. Sections that are named with a suffix +of ``.master`` or ``.template`` (e.g. ``paths.master``) are "template" +sections which require an instantiation in ``mailman.cfg`` [#]_. + +.. literalinclude:: ../schema.cfg + + +mailman.cfg +=========== + +Configuration options provided in the source code's ``mailman.cfg`` override +those provided in ``schema.cfg``. Your own ``mailman.cfg`` file overrides +these. + +.. literalinclude:: ../mailman.cfg + + +.. [#] The technical differences are described in the `lazr.config + <http://pythonhosted.org/lazr.config/>`_ package, upon which Mailman's + configuration system is based. |
