CRM114 Training via SquirrelMail
(Site-wide)

Steve Pellegrin
January 6, 2008

Is This Solution Right for You?

Unless you can answer Yes to all of these questions, you should look elsewhere for a solution.

What Users will Experience

When a SquirrelMail user reads a message:

When a training link is clicked, the message is:

Download

Install and Configure the SquirrelMail Plugin

  • Download the plugin to your SquirrelMail plugins directory.
  • tar -xvzf crm_trainer*.gz
  • cd crm_trainer
  • cp config.php.sample config.php
  • Edit config.php if you want to change the names of the mail folders used for training Spam and Nonspam
  • Edit constants.php if you are using OSBF_Lua
  • cd ../../config
  • ./conf.pl
  • Choose Option #8 and add the crm_trainer to the set of installed plugins
  • Save and quit

Install and Configure the Training Scripts

  • Copy the training and helper scripts to a suitable directory such as /usr/local/bin
  • Set owner of the Master training script to root and make executable by owner
  • Set owner of the User training and Helper scripts to root and make executable by any user
  • Edit the scripts and set the configuration parameters as appropriate
  • Add the Master training script to the root crontab. Frequency is up to you. For my small site, I use every two minutes.
    Remember, you have to run the script twice; once to train Spam and once for Nonspam
    /usr/local/bin/trainAll.crm114 --spam; /usr/local/bin/trainAll.crm114 --nonspam

Set up User Accounts

  • Refer to the CRM114 documentation for instructions on setting up a basic Spam filtering system
    I strongly suggest that you turn on the text_cache feature.
  • Make sure that each user account has a "Spam" mail folder (or whatever name you decide to use)
  • Install the included procmail recipe to ensure that incoming messages are trained and delivered to the correct mail folder.
    If you use a name other than "Spam" for the Spam folder, be sure to edit the recipe before deploying it.
  • SquirrelMail will create training folders for each user upon first use.

Valid HTML 4.01 Transitional

Powered by Apache