Disabling SpamAssassin on Deb12

This commit is contained in:
myvesta 2023-09-24 16:58:29 +02:00 committed by GitHub
commit 1709e9ae3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,8 +241,13 @@ do
if [ "$answer" = 'dis spam' ] || [ "$answer" = 'DIS SPAM' ]; then if [ "$answer" = 'dis spam' ] || [ "$answer" = 'DIS SPAM' ]; then
echo "=============================" echo "============================="
echo "== disabling SpamAssassin" echo "== disabling SpamAssassin"
if [ "$release" -lt 12 ]; then
systemctl stop spamassassin.service systemctl stop spamassassin.service
systemctl disable spamassassin.service systemctl disable spamassassin.service
else
systemctl stop spamd.service
systemctl disable spamd.service
fi
sed -i "s/^SPAMASSASSIN =/#SPAMASSASSIN =/g" /etc/exim4/exim4.conf.template sed -i "s/^SPAMASSASSIN =/#SPAMASSASSIN =/g" /etc/exim4/exim4.conf.template
sed -i "s/^SPAM_SCORE =/#SPAM_SCORE =/g" /etc/exim4/exim4.conf.template sed -i "s/^SPAM_SCORE =/#SPAM_SCORE =/g" /etc/exim4/exim4.conf.template