瀏覽代碼

Set mailname at the beginning

Bob Mottram 8 年之前
父節點
當前提交
4406b117ea
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      src/freedombone-base-email

+ 3
- 2
src/freedombone-base-email 查看文件

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