From 286af7399573ac81c890a8c9c01b44b8e23083e6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 1 Oct 2014 13:15:37 +0100 Subject: [PATCH] Subscribe the user to the public mailing list --- install-freedombone.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index 4700ded8..5e66530d 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -1705,8 +1705,12 @@ function create_public_mailing_list { apt-get -y --force-yes install mlmmj adduser --system mlmmj + echo '' + echo "Creating the $PUBLIC_MAILING_LIST mailing list" + echo '' + # create the list - mlmmj-make-ml -a -L "$PUBLIC_MAILING_LIST" -c mlmmj -z + mlmmj-make-ml -a -L "$PUBLIC_MAILING_LIST" -c mlmmj echo 'mlmmj_router:' > /etc/exim4/conf.d/router/750_exim4-config_mlmmj echo ' driver = accept' >> /etc/exim4/conf.d/router/750_exim4-config_mlmmj @@ -1747,6 +1751,9 @@ function create_public_mailing_list { service exim4 restart newaliases + # subscribe the user to the list + mlmmj-sub -L /var/spool/mlmmj/$PUBLIC_MAILING_LIST -a $MY_USERNAME@$DOMAIN_NAME + mailinglistrule $MY_USERNAME "$PUBLIC_MAILING_LIST" "$PUBLIC_MAILING_LIST" echo 'create_public_mailing_list' >> $COMPLETION_FILE