Set mailname at the beginning

This commit is contained in:
Bob Mottram 2016-10-23 16:20:34 +01:00
parent 20be3d4175
commit 4406b117ea
1 changed files with 3 additions and 2 deletions

View File

@ -670,6 +670,9 @@ function install_email {
if [[ $(is_completed $FUNCNAME) == "1" ]]; then if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return return
fi fi
echo "$DEFAULT_DOMAIN_NAME" > /etc/mailname
apt-get -y remove postfix apt-get -y remove postfix
apt-get -y install exim4 sasl2-bin swaks libnet-ssleay-perl procmail xinetd apt-get -y install exim4 sasl2-bin swaks libnet-ssleay-perl procmail xinetd
@ -896,8 +899,6 @@ function install_email {
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Maildir chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Maildir
fi fi
echo "$DEFAULT_DOMAIN_NAME" > /etc/mailname
function_check configure_firewall_for_email function_check configure_firewall_for_email
configure_firewall_for_email configure_firewall_for_email
dpkg-reconfigure --frontend noninteractive exim4-config dpkg-reconfigure --frontend noninteractive exim4-config