Global Group

Global groups allows DSPAM to provide a "SpamAssassin type out-of-the-box filtering" for all new users until they have built their own useful dictionaries.

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

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.

Recent Updates

  • 2 years 3 days ago
  • 2 years 3 days ago
  • 2 years 5 days ago
    php 8.x
  • 2 years 6 days ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff