1f475a001e40f1aa2da87c29d321a10994ec0226
[clinton/scripts.git] / listnew
1 #!/bin/sh -e
2 #
3 # Make a new mailing list. Run as root on deleuze.
4 #
5 # Usage: listnew LISTNAME LISTDOMAIN USER RANDOM_PASSWORD
6
7 BIN=/var/lib/mailman/bin
8
9 sudo -u list $BIN/newlist $1@$2 $3@hcoop.net $4 </dev/null
10
11 echo "Updating mailman definitions for Exim ..."
12 /afs/hcoop.net/common/etc/scripts/mailman-update-exim-db
13
14 echo "Sucessfully imported list $1"