#!/bin/sh
#
# /etc/mail/updateconfig - sendmail configuration file generator
#

if [ "`id -u`" != "0" ]; then
    echo "Only root can update the sendmail configuration."
    exit 1
fi

m4 /etc/mail/cf/m4/cf.m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

echo "/etc/mail/sendmail.cf updated"

# End of file
