How-To use the Malware Block List on SpamAssassin
To use the Malware Block List on a SpamAssassin to block e-mail messages containing URLs that point to Malware you need to perform the following simple steps:
- Download the block list to the directory where your .cf files are located:
wget --http-user=_your_email_address_ --http-passwd=_your_passwd_ -O - _URL_of_the_SpamAssassin_list_ > /usr/share/spamassassin/10_MBL.cf
To have an up-to-date block list, create a cron job to run every 4 hours, pointing to a script like this:
#!/bin/sh
/usr/bin/wget -O - "http://www.malware.com.br/cgi/submit?action=list_sa" > /usr/share/spamassassin/10_MBL.cf
/bin/killall spamd
/usr/bin/spamd -d -u nobody