Welcome to Mailman Web’s documentation!

Mailman 3 web is an umbrella Django project that combines all the web components of Mailman 3 into a single project that can be installed with a single command mailman-web instead of different Django commands.


To install mailman-web using pip run the following command:

$ pip install mailman-web


Mailman Web can be customized using a configuration file at /etc/mailman3/settings.py. You can change the path to configuration path by changing MAILMAN_WEB_CONFIG environment variable.

You can start with a simple configuration file:

# Mailman Web configuration file.
# /etc/mailman3/settings.py

from mailman_web.settings.base import *  # noqa: F403
from mailman_web.settings.mailman import *  # noqa: F403

#: Default list of admins who receive the emails from error logging.
    ('Mailman Suite Admin', 'root@localhost'),

# Postgresql database setup.
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'mailmanweb',
        'USER': '<db_username>',
        'PASSWORD': '<password>',
        'HOST': 'localhost',
        'PORT': '5432',

# 'collectstatic' command will copy all the static files here.
# Alias this location from your webserver to `/static`
STATIC_ROOT = '/opt/mailman/web/static'

# Make sure that this directory is created or Django will fail on start.
LOGGING['handlers']['file']['filename'] = '/opt/mailman/web/logs/mailmanweb.log'  # noqa: F405,E501

#: See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
    "localhost",  # Archiving API from Mailman, keep it.
    # "lists.your-domain.org",
    # Add here all production domains you have.

#: Current Django Site being served. This is used to customize the web host
#: being used to serve the current website. For more details about Django
#: site, see: https://docs.djangoproject.com/en/dev/ref/contrib/sites/

SECRET_KEY = 'MyVerrySecretKey'

You can see a list of all the default configurations supported:


To run Django’s development server, you can try:

$ mailman-web migrate
$ mailman-web runserver