Skip to content

Commit 359c61e

Browse files
committed
Create mailhelo.conf if it doesnt exist to prevent a error during grep.
This issue fixed hestiacp#938
1 parent 4c5ffc7 commit 359c61e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
### Features
66

77
### Bugfixes
8-
8+
- Create mailhelo.conf if it doesnt exist to prevent a error message during grep.
99

1010
## [1.2.1] - Service Release 1 (beta)
1111
### Features

bin/v-add-mail-domain

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
101101
echo "$local_ip" > $HOMEDIR/$user/conf/mail/$domain/ip
102102
fi
103103

104+
# Touch mailhelo.conf if it doesnt exist
105+
if [ ! -f "/etc/exim4/mailhelo.conf" }; then
106+
touch /etc/exim4/mailhelo.conf
107+
fi
108+
104109
# Setting HELO for mail domain
105110
if [ ! -z "$local_ip" ]; then
106111
IP_RDNS=$(is_ip_rdns_valid "$local_ip")

0 commit comments

Comments
 (0)