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.

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

Recent Updates

  • 1 month 2 weeks ago
    1.27.2 update
  • 1 month 4 weeks ago
    Drupal 10/11 config
  • 1 month 4 weeks ago
  • PHP
    1 month 4 weeks ago
    PHP 8.3.11 and AlmaLinux
  • 2 months 6 hours ago
    New version of Pound