Wartungsmail an alle Service-Accounts und alle Webmaster verschicken:

Text in 'body'
subject='Virtuelle Webserver - Umstellung auf SNI'

apache2cfg -a | sed 's/[[:space:]].*/@sysmail.kit.edu/' >/tmp/a
awk '$1=="ServerAdmin"{print$2}' /var/www/*/conf/identity.conf | sort -u >/tmp/w
echo andy@akk.org | while read addr; do
echo andreas.ley@kit.edu | while read addr; do
sort -u /tmp/a /tmp/w | while read addr; do
	echo "*** ${addr} ***"
	(echo "From: KIT-Webmaster <webmaster@kit.edu>"
	echo "To: ${addr}"
	echo "Subject: ${subject}"
	echo "MIME-Version: 1.0"
	echo "Content-Type: text/plain; charset=utf-8"
	echo "Content-Transfer-Encoding: quoted-printable"
	echo "X-Clacks-Overhead: GNU Terry Pratchett"
	echo
	recode data..qp <body) | \
	rmail "${addr}"
	sleep 1
done
