Skip to content

Commit da9be94

Browse files
Update current exim config for pre 1.6 installs (hestiacp#2687)
* Update current exim config for pre 1.6 installs * Add few extra spaces for alignment * Typo Co-authored-by: Raphael <rs@scit.ch>
1 parent d5fd3f4 commit da9be94

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

install/upgrade/versions/1.6.1.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,11 @@ if [ "$MAIL_SYSTEM" = "exim4" ]; then
2828
echo "[ * ] Fixed an issue with rate limits and alias mail addresses"
2929
sed -i 's/${extract{1}{:}{${lookup{$sender_address_local_part@$sender_address_domain}/${extract{1}{:}{${lookup{$authenticated_id}/' /etc/exim4/exim4.conf.template
3030
fi
31+
spamscore=$(cat /etc/exim4/exim4.conf.template | grep 'SPAM_REJECT_SCORE =')
32+
if [ -z "$spamscore" ]; then
33+
echo "[ * ] Fixed an issue reject spam not working properly."
34+
sed -i '/SPAM_SCORE = .*/a SPAM_REJECT_SCORE = 100' /etc/exim4/exim4.conf.template
35+
sed -i '/ set acl_m1 = yes/a warn condition = ${if exists {/etc/exim4/domains/$domain/reject_spam}{yes}{no}}\n set acl_m3 = yes' /etc/exim4/exim4.conf.template
36+
fi
37+
3138
fi

0 commit comments

Comments
 (0)