#!/usr/bin/bash
echo "$1" >> /etc/mail/local-host-names
echo "@$1 ictcore" >> /etc/mail/virtusertable
/etc/mail/make
if [ -f /usr/bin/systemctl ]; then
  /usr/bin/systemctl restart sendmail.service
else
  /sbin/service sendmail restart
fi
