This image consists of Mailman3's Web UI(Postorius) and Archiver (Hyperkitty). This image is built from latest sources on gitlab. In future, latest and stable releases will be seperate. I am looking forward to the release of Mailman Suite 3.1 before that.
These are the settings that you MUST change before deploying:
-
SERVE_FROM_DOMAIN: The domain name from which Django will be served. To be added toALLOWED_HOSTSin django settings. Default value is not set. This also replaces Django's defaultexample.comSITE and becomes the default SITE (with SITE_ID=1). -
HYPERKITTY_API_KEY: Hyperkitty's API Key, should be set to the same value as set for the mailman-core. -
MAILMAN_ADMIN_USER: The username for the admin user to be created by default. -
MAILMAN_ADMIN_EMAIL: The email for the admin user to be created by default. -
SECRET_KEY: Django's secret key, mainly used for signing cookies and others.
These are the settings that are set to sane default and you do not need to change them unless you know what you want.
-
DATABASE_URL: URL of the typedriver://user:password@hostname:port/databasenamefor the django to use. If not set, the default is set tosqlite:///opt/mailman-web-data/mailmanweb.db. The standard docker-compose.yaml comes with it set to a postgres database. It is not must to change this if you are happy with PostgreSQL. -
MAILMAN_REST_URL: The URL to the Mailman core's REST API server. Defaut value ishttp://mailman-core:8001. -
MAILMAN_REST_USER: Mailman's REST API username. Default value isrestadmin -
MAILMAN_REST_PASSWORD: Mailman's REST API user's password. Default value isrestpass -
MAILMAN_HOSTNAME: IP of the Container from which Mailman will send emails to hyperkitty (django). Set tomailman-coreby default. -
SMTP_HOST: IP Address/hostname from which you will be sending emails. Default value is the container's gateway retrieved from: /sbin/ip route | awk '/default/ { print $3 }' -
SMTP_PORT: Port used for SMTP. Default is25. -
SMTP_HOST_USER: Used for SMTP authentication. Default is an empty string. -
SMTP_HOST_PASSWORD: Default is an empty string. -
SMTP_USE_TLS: Specifies wheather the SMTP connection is encrypted via TLS. Default isFalse. -
DJANGO_LOG_URL: Path to the django's log file. Defaults to/opt/mailman-web-data/logs/mailmanweb.log. -
DJANGO_ALLOWED_HOSTS: Entry to add to ALLOWED_HOSTS in Django configuration. This is a separate configuration fromSERVE_FROM_DOMAINas latter is used for other purposes too. -
POSTORIUS_TEMPLATE_BASE_URL: The base url at which themailman-webcontainer can be reached frommailman-corecontainer. This is set tohttp://mailman-web:8000by default so that Core can fetch templates from Web. -
MAILMAN_WEB_SOCIAL_AUTH: This is a list of Social login providers. It contains a default set of providers. Override it if you want to remove or disable social login entierly. IfINSTALLED_APPSis overriddenMAILMAN_WEB_SOCIAL_AUTHis not used and you must specify any social login provider inINSTALLED_APPSinstead. See settings.py for implementation details. -
DISKCACHE_PATHandDISKCACHE_SIZE: Django Diskcache location path and size respectively. Defaults are/opt/mailman-web-data/diskcacheand 1G.
It is highly recommended that you run this using the docker-compose.yaml provided in the github repo of this project. You will need to proxy the requests the container that you create with this image using an actual web server like Nginx. The github repo provides the setup instructions for Nginx.
Since the setup has USE_SSL set to True in django's settings.py, you may
also want to get a SSL certificate if you don't already have one. Lets
Encrypt provides free SSL certiticates for everyone and there are some
instructions about that also.
After the first run, you can create a superuser for django using the following command:
$ docker exec -it mailman-web python manage.py createsuperuser