SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
Global Group
Credits
Various bits of code, scripts, and procedures were put together with information from John Simpson's qmail.jms1.net website. It's an excellent resource on managing and setting up a Qmail server.
Create the global group for new accounts to use until they have trained enough of their own spam:
echo "defaultGroup:classification:*globaluser@example.com" > /var/dspam/group
chown simscan:simscan /var/dspam/group
Run the following command so that dspam_clean
doesn't purge your global definitions because the data is old
dspam_admin add pref globaluser@example.com trainingMode TOE
In order to provide a base of spam and ham for a global group, we'll use SpamAssassin's public corpus files. First, download them:
mkdir /tmp/corpus
cd /tmp/corpus
wget http://spamassassin.apache.org/publiccorpus/20030228_easy_ham.tar.bz2
wget http://spamassassin.apache.org/publiccorpus/20030228_easy_ham_2.tar.bz2
wget http://spamassassin.apache.org/publiccorpus/20030228_spam.tar.bz2
wget http://spamassassin.apache.org/publiccorpus/20050311_spam_2.tar.bz2
Then run dspam_train
on the first set, 2500 non-spam and 500 spam:
cd /tmp/corpus
tar jxf 20030228_easy_ham.tar.bz2
tar jxf 20030228_spam.tar.bz2
/usr/local/bin/dspam_train globaluser@example.com spam easy_ham
Repeat with the second corpus set, 1400 non-spam and 1397 spam:
cd /tmp/corpus
tar jxf 20030228_easy_ham_2.tar.bz2
tar jxf 20050311_spam_2.tar.bz2
/usr/local/bin/dspam_train globaluser@example.com spam_2 easy_ham_2
- Log in to post comments