summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBarry Warsaw2017-01-08 18:17:45 +0000
committerBarry Warsaw2017-01-08 18:17:45 +0000
commit609739ee390447a8feb99bb52d13c6e3f0bf3caa (patch)
tree8e67453c1629e61182a6941c21fea74ccc5cc534 /src
parent4b3fc1792a62b8c49f0c8cb5cd44c2ef9ce7ebd2 (diff)
parent1e4b216b2472b10c6279f68f66b077e2b896de6a (diff)
downloadmailman-609739ee390447a8feb99bb52d13c6e3f0bf3caa.tar.gz
mailman-609739ee390447a8feb99bb52d13c6e3f0bf3caa.tar.zst
mailman-609739ee390447a8feb99bb52d13c6e3f0bf3caa.zip
Diffstat (limited to 'src')
-rw-r--r--src/mailman/config/docs/config.rst53
1 files changed, 53 insertions, 0 deletions
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.