Skip to content

Commit 9c2f1ee

Browse files
authored
Check if antivirus / antispam is installed (hestiacp#3099)
If not set to no on default
1 parent f0f6f5a commit 9c2f1ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/v-add-mail-domain

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ fi
9494
# Generating timestamp
9595
new_timestamp
9696

97+
if [ -z "$ANTISPAM_SYSTEM" ]; then
98+
antispam="no"
99+
reject="no"
100+
fi
101+
if [ -z "$ANTIVIRUS_SYSTEM" ]; then
102+
antivirus="no"
103+
fi
104+
97105
# Adding domain to mail.conf
98106
s="DOMAIN='$domain' ANTIVIRUS='$antivirus' ANTISPAM='$antispam' REJECT='$reject' DKIM='$dkim' WEBMAIL=''"
99107
s="$s SSL='no' LETSENCRYPT='no' CATCHALL='' ACCOUNTS='0' RATE_LIMIT='$RATE_LIMIT' U_DISK='0' SUSPENDED='no' TIME='$time'"

0 commit comments

Comments
 (0)