File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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
168168fi
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+
169183if [ -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
You can’t perform that action at this time.
0 commit comments