summaryrefslogtreecommitdiffstats
path: root/postfix/make_list.sh
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-06-15 17:43:00 -0400
committerMalfurious <m@lfurio.us>2024-06-15 17:43:00 -0400
commit2e2e06f47683d484e4852c2978fd787660ad730e (patch)
treeb1f25e6b9fe681144c82b361527965a535a535d6 /postfix/make_list.sh
parent2ee344e9c7ab8182efde6a18e50d4b4e7d148e71 (diff)
parent57d0c93851d72789c2adda1ed1e8b671bcd3f884 (diff)
downloadmailnode-2e2e06f47683d484e4852c2978fd787660ad730e.tar.gz
mailnode-2e2e06f47683d484e4852c2978fd787660ad730e.zip
Merge branch 'mailing-lists'
* mailing-lists: mlmmj: Add maintenance service mlmmj: Don't mention FAQ address mlmmj: Use simpler message prologue mlmmj: Add user configuration directories mlmmj: Integration with postfix mlmmj: Setup mailing list package
Diffstat (limited to '')
-rwxr-xr-xpostfix/make_list.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/postfix/make_list.sh b/postfix/make_list.sh
new file mode 100755
index 0000000..45a198e
--- /dev/null
+++ b/postfix/make_list.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+mkdir -p "/var/spool/mlmmj/$1"
+cd "/var/spool/mlmmj/$1"
+
+mkdir -p incoming queue queue/discarded archive subconf unsubconf bounce \
+ moderation subscribers.d digesters.d requeue nomailsubs.d
+
+touch index
+ln -s "/etc/userconfig/lists/$1" control
+ln -s /etc/userconfig/listtext text
+
+printf 'Created list directory: %s\n' "$(pwd)"