Here is a small step-by-step howto on integrating sanesecurity's clamav signatures to combat PDF spam emails. It also catches many other phishing and spam emails.
Code: Select all
Login to the server via ssh and run the following commands.
mailcleaner:/sanesecurity#apt-get install curl rsync
mailcleaner:/sanesecurity#mv unofficial-sigs.txt ss-msrbl.sh
Make the below given changes.
-> Add "/usr/clamav/bin" in the PATH
Make the changes to the following lines. It should look like this.
mailcleaner:/sanesecurity#chmod 755 ss-msrbl.sh
-> The next command will add the script in hourly cron.
mailcleaner:/# echo "00 * * * * root /sanesecurity/ss-msrbl.sh >& /dev/null" >> /etc/crontab
-> Following command will help you to know if it's really working for you.
mailcleaner:/# cat /var/mailcleaner/log/mailscanner/infolog | grep Sanesecurity