NB: The "(Unknown command: "sendmail=")" error at the end appears to be some reference to the part of the script that installs the dummy MTA during installation, shown below:
Code:
echo
apt-get -y install mailx
if [ "$?" -ne "0" ]
then
install_fail mailx
fi
echo
echo "Writing config file "/etc/mail.rc""
echo "set sendmail=$ZM_HOME"postfix/sbin/sendmail"" >> /etc/mail.rc
else
echo "This script would like to send you a mail or two... so please install a dummy mta for your Distro"
echo I'm not sure why that should be invoked in the runtime portion of the script.. it's a bit odd.