From 5eb4f64c86a963c33b5958092b33924a43749e99 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Fri, 14 Jun 2024 23:18:56 -0400 Subject: mlmmj: Setup mailing list package Signed-off-by: Malfurious --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index ec181bd..55e2c07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,12 +18,20 @@ RUN useradd \ --home-dir /var/spool/postfix \ postfix +RUN useradd \ + --uid 2002 --system \ + --shell /usr/sbin/nologin \ + --home-dir /var/spool/mlmmj \ + --skel /dev/null --create-home \ + mlmmj + # Install packages RUN apt update \ && apt full-upgrade --yes \ && apt install --yes \ dovecot-core \ dovecot-imapd \ + mlmmj \ postfix \ postfix-pcre \ && apt clean -- cgit v1.2.3 From 7d2158a75b6ff294146444a6e1b51170d3f43010 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Fri, 14 Jun 2024 23:21:59 -0400 Subject: mlmmj: Integration with postfix Incoming mail for an mlmmj list is caught by a virtual mapping and directed via virtual transport to the mlmmj system for processing. Outgoing mail is implicitly allowed since it originates from the localhost. The postfix entrypoint script now dynamically generates these mailing list mappings on startup from data in the mlmmj spool directory, so user configuration is minimal. In addition, the script will now sync the user's mailing list parameters into the spool directory, thus automatically creating new lists and deleting old ones. The list creation logic is implemented in a new script `make_list.sh`. This is made necessary as the mlmmj built in tooling for this must be run interactively, so we duplicate the logic. This is separate from `entrypoint.sh` mainly because we need to drop privileges to the mlmmj user while creating files. Signed-off-by: Malfurious --- Dockerfile | 1 + 1 file changed, 1 insertion(+) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 55e2c07..55b4e01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,7 @@ RUN apt update \ mlmmj \ postfix \ postfix-pcre \ + sudo \ && apt clean # Install files -- cgit v1.2.3