upgrade hostname for spam infos
This commit is contained in:
parent
d2e0d087a0
commit
c9ec9c36af
|
@ -19,24 +19,24 @@ cd /var/tmp
|
||||||
|
|
||||||
sleep $[ $RANDOM / 1024 ]
|
sleep $[ $RANDOM / 1024 ]
|
||||||
|
|
||||||
wget -q -t 3 http://zidane.evolix.net/spam/client.access -O $tmp_file
|
wget -q -t 3 http://antispam00.evolix.net/spam/client.access -O $tmp_file
|
||||||
cp $tmp_file /etc/postfix/client.access
|
cp $tmp_file /etc/postfix/client.access
|
||||||
rm $tmp_file
|
rm $tmp_file
|
||||||
|
|
||||||
wget -q -t 3 http://zidane.evolix.net/spam/sender.access -O $tmp_file
|
wget -q -t 3 http://antispam00.evolix.net/spam/sender.access -O $tmp_file
|
||||||
cp $tmp_file /etc/postfix/sender.access
|
cp $tmp_file /etc/postfix/sender.access
|
||||||
rm $tmp_file
|
rm $tmp_file
|
||||||
|
|
||||||
wget -q -t 3 http://zidane.evolix.net/spam/recipient.access -O $tmp_file
|
wget -q -t 3 http://antispam00.evolix.net/spam/recipient.access -O $tmp_file
|
||||||
cp $tmp_file /etc/postfix/recipient.access
|
cp $tmp_file /etc/postfix/recipient.access
|
||||||
rm $tmp_file
|
rm $tmp_file
|
||||||
|
|
||||||
wget -q -t 3 http://zidane.evolix.net/spam/header_kill -O $tmp_file
|
wget -q -t 3 http://antispam00.evolix.net/spam/header_kill -O $tmp_file
|
||||||
cp $tmp_file /etc/postfix/header_kill
|
cp $tmp_file /etc/postfix/header_kill
|
||||||
rm $tmp_file
|
rm $tmp_file
|
||||||
|
|
||||||
wget -q -t 3 http://zidane.evolix.net/spam/sa-blacklist.access -O sa-blacklist.access
|
wget -q -t 3 http://antispam00.evolix.net/spam/sa-blacklist.access -O sa-blacklist.access
|
||||||
wget -q -t 3 http://zidane.evolix.net/spam/sa-blacklist.access.md5 -O $tmp_file
|
wget -q -t 3 http://antispam00.evolix.net/spam/sa-blacklist.access.md5 -O $tmp_file
|
||||||
if md5sum -c $tmp_file > /dev/null && [ -s sa-blacklist.access ] ; then
|
if md5sum -c $tmp_file > /dev/null && [ -s sa-blacklist.access ] ; then
|
||||||
cp sa-blacklist.access /etc/postfix/sa-blacklist.access
|
cp sa-blacklist.access /etc/postfix/sa-blacklist.access
|
||||||
fi
|
fi
|
||||||
|
@ -48,8 +48,8 @@ rm $tmp_file
|
||||||
/usr/sbin/postmap hash:/etc/postfix/recipient.access
|
/usr/sbin/postmap hash:/etc/postfix/recipient.access
|
||||||
/usr/sbin/postmap -r hash:/etc/postfix/sa-blacklist.access
|
/usr/sbin/postmap -r hash:/etc/postfix/sa-blacklist.access
|
||||||
|
|
||||||
wget -q -t 3 http://zidane.evolix.net/spam/spamd.cidr -O spamd.cidr
|
wget -q -t 3 http://antispam00.evolix.net/spam/spamd.cidr -O spamd.cidr
|
||||||
wget -q -t 3 http://zidane.evolix.net/spam/spamd.cidr.md5 -O $tmp_file
|
wget -q -t 3 http://antispam00.evolix.net/spam/spamd.cidr.md5 -O $tmp_file
|
||||||
if md5sum -c $tmp_file > /dev/null && [ -s spamd.cidr ] ; then
|
if md5sum -c $tmp_file > /dev/null && [ -s spamd.cidr ] ; then
|
||||||
cp spamd.cidr /etc/postfix/spamd.cidr
|
cp spamd.cidr /etc/postfix/spamd.cidr
|
||||||
fi
|
fi
|
||||||
|
@ -74,13 +74,13 @@ cd $tmp
|
||||||
|
|
||||||
# ClamAV
|
# ClamAV
|
||||||
#for file in scam.ndb.gz phish.ndb.gz MSRBL-SPAM.ndb MSRBL-Images.hdb malware.com.br.ndb; do
|
#for file in scam.ndb.gz phish.ndb.gz MSRBL-SPAM.ndb MSRBL-Images.hdb malware.com.br.ndb; do
|
||||||
# getfile http://zidane.evolix.net/spam/$file $file
|
# getfile http://antispam00.evolix.net/spam/$file $file
|
||||||
#done
|
#done
|
||||||
#chown -R clamav:clamav /var/lib/clamav
|
#chown -R clamav:clamav /var/lib/clamav
|
||||||
#/usr/sbin/invoke-rc.d clamav-daemon reload-database > /dev/null
|
#/usr/sbin/invoke-rc.d clamav-daemon reload-database > /dev/null
|
||||||
|
|
||||||
# SpamAssassin
|
# SpamAssassin
|
||||||
wget -q -t 3 http://zidane.evolix.net/spam/evolix_rules.cf -O evolix_rules.cf
|
wget -q -t 3 http://antispam00.evolix.net/spam/evolix_rules.cf -O evolix_rules.cf
|
||||||
cp evolix_rules.cf /etc/spamassassin
|
cp evolix_rules.cf /etc/spamassassin
|
||||||
/etc/init.d/spamassassin reload > /dev/null
|
/etc/init.d/spamassassin reload > /dev/null
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue