mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -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
|
||||
fi
|
||||
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
|
||||
if [ "$dovecot" = 'yes' ]; then
|
||||
echo "IMAP_SYSTEM='dovecot'" >> $VESTA/conf/vesta.conf
|
||||
|
@ -1514,12 +1518,15 @@ fi
|
|||
if [ "$spamd" = 'yes' ]; then
|
||||
echo "=== Configure SpamAssassin"
|
||||
#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
|
||||
currentservice='spamassassin'
|
||||
ensure_startup $currentservice
|
||||
# ensure_start $currentservice
|
||||
systemctl restart spamassassin
|
||||
systemctl restart $currentservice
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue