mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
deb12 spamassassin temporary fix
This commit is contained in:
parent
58c2793e94
commit
159755e053
1 changed files with 12 additions and 5 deletions
|
@ -966,7 +966,11 @@ if [ "$exim" = 'yes' ]; then
|
||||||
echo "ANTIVIRUS_SYSTEM='clamav-daemon'" >> $VESTA/conf/vesta.conf
|
echo "ANTIVIRUS_SYSTEM='clamav-daemon'" >> $VESTA/conf/vesta.conf
|
||||||
fi
|
fi
|
||||||
if [ "$spamd" = 'yes' ]; then
|
if [ "$spamd" = 'yes' ]; then
|
||||||
echo "ANTISPAM_SYSTEM='spamassassin'" >> $VESTA/conf/vesta.conf
|
if [ "$release" -lt 12 ]; then
|
||||||
|
echo "ANTISPAM_SYSTEM='spamassassin'" >> $VESTA/conf/vesta.conf
|
||||||
|
else
|
||||||
|
echo "ANTISPAM_SYSTEM='spamd'" >> $VESTA/conf/vesta.conf
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$dovecot" = 'yes' ]; then
|
if [ "$dovecot" = 'yes' ]; then
|
||||||
echo "IMAP_SYSTEM='dovecot'" >> $VESTA/conf/vesta.conf
|
echo "IMAP_SYSTEM='dovecot'" >> $VESTA/conf/vesta.conf
|
||||||
|
@ -1514,12 +1518,15 @@ fi
|
||||||
if [ "$spamd" = 'yes' ]; then
|
if [ "$spamd" = 'yes' ]; then
|
||||||
echo "=== Configure SpamAssassin"
|
echo "=== Configure SpamAssassin"
|
||||||
#update-rc.d spamassassin defaults
|
#update-rc.d spamassassin defaults
|
||||||
sed -i "s/ENABLED=0/ENABLED=1/" /etc/default/spamassassin
|
if [ "$release" -lt 12 ]; then
|
||||||
|
sed -i "s/ENABLED=0/ENABLED=1/" /etc/default/spamassassin
|
||||||
|
currentservice='spamassassin'
|
||||||
|
else
|
||||||
|
currentservice='spamd'
|
||||||
|
fi
|
||||||
wget -nv -O /etc/spamassassin/barracuda.cf http://c.myvestacp.com/tools/spamassassin/barracuda.cf
|
wget -nv -O /etc/spamassassin/barracuda.cf http://c.myvestacp.com/tools/spamassassin/barracuda.cf
|
||||||
currentservice='spamassassin'
|
|
||||||
ensure_startup $currentservice
|
ensure_startup $currentservice
|
||||||
# ensure_start $currentservice
|
systemctl restart $currentservice
|
||||||
systemctl restart spamassassin
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue