CRM114 Training via SquirrelMail
(Personal)

Steve Pellegrin
January 22, 2009

Is This Solution Right for You?

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

What You will Experience

When you read 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 Script

  • Copy the training and helper scripts to a suitable directory such as your home directory
  • Set owner of the scripts to yourself and make them executable
  • Edit the training script and set the configuration parameters as appropriate
  • Add the training script to your 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/trainUser.crm114 --spam; /usr/local/bin/trainUser.crm114 --nonspam

Set up Your Account to Use Spam Filtering

  • 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 your 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 the training folders upon first use.

Valid HTML 4.01 Transitional

Powered by Apache