3 # Make a new mailing list. Run as root on deleuze.
5 # Usage: listnew LISTNAME LISTDOMAIN LISTURL USER INITIAL_PASSWORD
7 BIN
=/var
/lib
/mailman
/bin
10 echo "Usage: listnew list_name domain list_url user initial_password"
14 echo "Too many arguments"
17 elif test -z "$5"; then
18 echo "Not enough arguments"
29 sudo
-u list
$BIN/newlist
$LIST_NAME@
$LIST_DOMAIN $LIST_USER@hcoop.net \
32 # By default, use our list admin website for the public interface.
33 # This can be changed after the user has set up their mailMan
34 # directive. We do this because the default is
35 # http://lists.hcoop.net, without SSL, which makes list admin not work
37 /afs
/hcoop.net
/common
/etc
/scripts
/change-list-url
$LIST_NAME $LIST_URL
39 echo "Sucessfully created list $LIST_NAME"