#!/bin/sh
MAIL=/etc/mail
cd ${MAIL}/cf/cf
echo 'Generiere neue sendmail.cf ....'
if [ -f ${MAIL}/$1.cf ]; then
	mv ${MAIL}/$1.cf ${MAIL}/$1.cf.bak
fi
/usr/bin/m4 $1.mc >${MAIL}/$1.cf
cd $MAIL
rm sendmail.cf
ln -s $1.cf sendmail.cf
echo 'Es ist vollbracht !!!'
