spamfilter20090215 Changelog

Close this window to continue.

12 DEC 2010
I am using an updated /etc/init.d/amavis init script now. It's not required that you replace it, but if you would like to then:
cd
cp /etc/init.d/amavis amavis.init.script.old
cd /etc/init.d
wget http://verchick.com/mecham/public_html/debian/amavis.init.lenny.txt
mv amavis.init.lenny.txt amavis
chmod +x amavis


You might want to restart amavis to make sure the script does not crash:
/etc/init.d/amavis restart

06 JUN 2010
Bill Landry's clamav-unofficial-sigs has been updated to version 3.7.1. It is suggested to update. It may also be required to start with a fresh database.
apt-get update
rm -r /var/lib/clamav/*
apt-get install clamav clamav-daemon clamav-freshclam
freshclam

cd /etc
wget http://verchick.com/mecham/public_html/spam/clamav-unofficial-sigs.conf.txt
mv clamav-unofficial-sigs.conf clamav-unofficial-sigs.conf.old
mv clamav-unofficial-sigs.conf.txt clamav-unofficial-sigs.conf
cd /usr/sbin
wget http://verchick.com/mecham/public_html/spam/clamav-unofficial-sigs.sh.txt
mv clamav-unofficial-sigs.sh clamav-unofficial-sigs.sh.old
mv clamav-unofficial-sigs.sh.txt clamav-unofficial-sigs.sh
chmod +x clamav-unofficial-sigs.sh
clamav-unofficial-sigs.sh


26 MAR 2010
Amavisd-new breaks messages down into components before virus scanning. Also enable virus scanners to scan the message as a whole:
sed -i "s|# qr'^MAIL$'| qr'^MAIL$'|" /etc/amavis/amavisd.conf
amavisd-new reload


05 DEC 2009
You should run:
pyzor discover
+ su amavis -c 'pyzor discover'


I updated the Sanesecurity download script - now we use version 3.2 of the script.

If you would like to upgrade from amavisd-new 2.6.2 to 2.6.4, there are some changes that need to be made to amavisd.conf, and a newer version of libcompress-zlib-perl must be installed from backports.org (assuming you want to keep your system at the 'stable' release). First, patch amavisd.conf in order to make changes to the virus scanners section. Note that my patch may not patch exactly, but the sed statements afterwards should repair the clamd and clamscan sections. The patch assumes you are using clamd.
cd /etc/amavis/
wget http://verchick.com/mecham/public_html/spam/amavisd.conf.264.patch.txt
cp amavisd.conf amavisd.conf.262
patch amavisd.conf <amavisd.conf.264.patch.txt
sed -i 's|OK$\/,|OK$\/m,|' /etc/amavis/amavisd.conf
sed -i 's|FOUND$\/,|FOUND$\/m,|' /etc/amavis/amavisd.conf


Now, from backports.org, update libcompress-zlib-perl to version 2.015 (or possibly newer):
if ! grep -q backports /etc/apt/sources.list; then echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" >> /etc/apt/sources.list; fi
wget -O - http://backports.org/debian/archive.key | apt-key add -
apt-get update
apt-get -t lenny-backports install libcompress-zlib-perl

apt-cache policy libcompress-zlib-perl


Make sure we are at version 2.015 or newer, then install amavisd-new 2.6.4:
cd /usr/local/src
wget http://www.ijs.si/software/amavisd/amavisd-new-2.6.4.tar.gz
tar xzf amavisd-new-2.6.4.tar.gz
cd amavisd-new-2.6.4
/etc/init.d/amavis stop
cp /usr/sbin/amavisd-new /usr/sbin/amavisd-new-2.6.2
cp amavisd /usr/sbin/amavisd-new
/etc/init.d/amavis start
amavisd-new -V


You should tail -f /var/log/mail.log and insure mail is flowing. If it's not, simply:
/etc/init.d/amavis stop
cp /usr/sbin/amavisd-new-2.6.2 /usr/sbin/amavisd-new
/etc/init.d/amavis start


15 AUG 2009
Somehow missed installing openntpd. Run:
apt-get install openntpd

03 APR 2009
Another patch to amavisd 2.6.2 came up:
cd /usr/local/src/amavisd-new-2.6.2
wget http://verchick.com/mecham/public_html/spam/amavisd.2.6.2.patch6.txt
patch -p0 < amavisd.2.6.2.patch6.txt
cp amavisd amavisd-new
cp amavisd-new /usr/sbin/amavisd-new
/etc/init.d/amavis restart


27 MAR 2009
Added a fourth patch to amavisd-new 2.6.2. If you installed your system prior to 27 MAR 2009:
cd /usr/local/src/amavisd-new-2.6.2
wget http://verchick.com/mecham/public_html/spam/amavisd.2.6.2.patch4.txt
patch -p0 < amavisd.2.6.2.patch4.txt
cp amavisd amavisd-new
cp amavisd /usr/sbin/amavisd-new
/etc/init.d/amavis restart

Please:
apt-get install pax
/etc/init.d/amavis restart


17 MAR 2009
Corrected the quotes around this:
echo '^\w{3} [ :0-9]{11} [._[:alnum:]-]+ rsyslogd: \[origin software="rsyslogd" swVersion=.*x-pid=.*x-info="http://www.rsyslog.com"\] restart' >>/etc/logcheck/ignore.d.server/syslogd

Added >/dev/null to:
11 11 * * * /etc/init.d/hwclock.sh reload >/dev/null

14 MAR 2009
Added this entry to crontab:
11 11 * * * /etc/init.d/hwclock.sh reload

01 MAR 2009
Original document created.

http://verchick.com/mecham/public_html/spam/spamfilter20090215.html