Update mailman defs right away in listnew
[clinton/scripts.git] / listnew
... / ...
CommitLineData
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
7BIN=/var/lib/mailman/bin
8
9sudo -u list $BIN/newlist $1@$2 $3@hcoop.net $4 </dev/null
10
11echo "Updating mailman definitions for Exim ..."
12/afs/hcoop.net/common/etc/scripts/mailman-update-exim-db
13
14echo "Sucessfully imported list $1"