Filedesign Informatik | Holeeholzweg 69 | CH-4102 Binningen
Tel : +41 61 422 00 00 | Fax : +41 61 422 22 00

Clamav Spamd in Mailcleaner einbinden

apt-get install curl

mkdir /sanesecurity/sanesecurity/cache
cd /tmp
wget http://pkgs.fedoraproject.org/repo/pkgs/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.1.tar.gz/c00f38cd0ff51672e3cbb638aec8d124/clamav-unofficial-sigs-3.7.1.tar.gz
tar xvf clamav-unofficial-sigs.tar.gz
mv clamav-unofficial-sigs-3.7.1/* /sanesecurity/
chmod 755 /sanesecurity/clamav-unofficial-sigs.sh
cp /sanesecurity/clamav-unofficial-sigs.conf /etc/
nano /etc/clamav-unofficial-sigs.conf

Anschliessend passen wir folgende Zeilen an:

PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/clamav/bin"
clam_dbs="/var/mailcleaner/spool/clamspam"
clamd_pid="/var/mailcleaner/run/clamav/clamd.pid"
user_configuration_complete="yes"

Speichern der Settings

cd /sanesecurity
./clamav-unofficial-sigs.sh

Anschliessend auf Fehler überprüfen. Danach definieren wir das crontab für die Signaturen:

nano /etc/crontab
30 * * * * root /sanesecurity/clamav-unofficial-sigs.sh >& /dev/null