Skip to content

Commit 68f3161

Browse files
author
Kristan Kenney
committed
Update exim configuration during upgrade
1 parent 7a0c8b4 commit 68f3161

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

install/upgrade/0.9.8-29.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,20 @@ if [ -f /etc/dovecot/conf.d/15-mailboxes.conf ]; then
166166
# Remove mailboxes configuration if it exists
167167
rm -f /etc/dovecot/conf.d/15-mailboxes.conf
168168
fi
169+
170+
# Fix exim configuration
171+
if [ -f /etc/exim4/exim4.conf.template ]; then
172+
echo "(*) Updating exim SMTP server configuration..."
173+
cp -f $HESTIA/install/deb/exim/exim4.conf.template /etc/exim4/exim4.conf.template
174+
# Reconfigure spam filter and virus scanning
175+
if [ ! -z "$ANTISPAM_SYSTEM" ]; then
176+
sed -i "s/#SPAM/SPAM/g" /etc/exim4/exim4.conf.template
177+
fi
178+
if [ ! -z "$ANTIVIRUS_SYSTEM" ]; then
179+
sed -i "s/#CLAMD/CLAMD/g" /etc/exim4/exim4.conf.template
180+
fi
181+
fi
182+
169183
if [ -f /etc/dovecot/dovecot.conf ]; then
170184
# Update dovecot configuration and restart dovecot service
171185
cp -f $HESTIA/install/deb/dovecot/dovecot.conf /etc/dovecot/dovecot.conf

0 commit comments

Comments
 (0)