Просмотр исходного кода

Create mailhelo.conf if it doesnt exist to prevent a error during grep.
This issue fixed #938

Raphael Schneeberger 5 лет назад
Родитель
Сommit
359c61e6ed
2 измененных файлов с 6 добавлено и 1 удалено
  1. 1 1
      CHANGELOG.md
  2. 5 0
      bin/v-add-mail-domain

+ 1 - 1
CHANGELOG.md

@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
 ### Features
 
 ### Bugfixes
-
+- Create mailhelo.conf if it doesnt exist to prevent a error message during grep.
  
 ## [1.2.1] - Service Release 1 (beta)
 ### Features

+ 5 - 0
bin/v-add-mail-domain

@@ -101,6 +101,11 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
         echo "$local_ip" > $HOMEDIR/$user/conf/mail/$domain/ip
     fi
 
+    # Touch mailhelo.conf if it doesnt exist
+    if [ ! -f "/etc/exim4/mailhelo.conf" }; then
+        touch /etc/exim4/mailhelo.conf
+    fi
+
     # Setting HELO for mail domain
     if [ ! -z "$local_ip" ]; then
         IP_RDNS=$(is_ip_rdns_valid "$local_ip")