mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 06:14:19 -07:00
Adding Barracuda RBL to SpamAssassin
This commit is contained in:
parent
93f2a62ee8
commit
c787f2c235
1 changed files with 15 additions and 0 deletions
|
@ -31,6 +31,21 @@ if [ "$release" -eq 11 ]; then
|
||||||
sed -i "s/yescrypt/sha512/g" /etc/pam.d/common-password
|
sed -i "s/yescrypt/sha512/g" /etc/pam.d/common-password
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Adding Barracuda RBL to SpamAssassin
|
||||||
|
if [ ! -f "/usr/local/vesta/data/upgrades/barracuda_rbl" ]; then
|
||||||
|
spamassassin_installed=$(/usr/local/vesta/bin/v-list-sys-services | grep -c 'spamassassin')
|
||||||
|
spamassassin_running=$(/usr/local/vesta/bin/v-list-sys-services | grep 'spamassassin' | grep -c 'running')
|
||||||
|
if [ $spamassassin_installed -eq 1 ]; then
|
||||||
|
echo "== Adding Barracuda RBL to SpamAssassin"
|
||||||
|
wget -nv -O /etc/spamassassin/barracuda.cf http://c.myvestacp.com/tools/spamassassin/barracuda.cf
|
||||||
|
fi
|
||||||
|
if [ $spamassassin_running -eq 1 ]; then
|
||||||
|
echo "== Restarting SpamAssassin"
|
||||||
|
systemctl restart spamassassin
|
||||||
|
fi
|
||||||
|
touch /usr/local/vesta/data/upgrades/barracuda_rbl
|
||||||
|
fi
|
||||||
|
|
||||||
# Checking if FreshClam is started after installation
|
# Checking if FreshClam is started after installation
|
||||||
if [ ! -f "/usr/local/vesta/data/upgrades/freshclam_start" ]; then
|
if [ ! -f "/usr/local/vesta/data/upgrades/freshclam_start" ]; then
|
||||||
clamavup=$(/usr/local/vesta/bin/v-list-sys-services | grep 'clamav-daemon' | grep -c 'running')
|
clamavup=$(/usr/local/vesta/bin/v-list-sys-services | grep 'clamav-daemon' | grep -c 'running')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue