Skip to content

Commit efbdb64

Browse files
authored
Merge pull request hestiacp#942 from hestiacp/fix/938_missing-mailhelo.conf
Create mailhelo.conf if it doesnt exist to prevent a error during grep.
2 parents 314f7aa + 12e3da7 commit efbdb64

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)