Changes between Version 12 and Version 13 of MaiaInstall


Ignore:
Timestamp:
Oct 6, 2004, 10:24:40 AM (16 years ago)
Author:
dnauck
Comment:
  1. Load your SpamAssassin Rules

Legend:

Unmodified
Added
Removed
Modified
  • MaiaInstall

    v12 v13  
    1616 * 6. Configure SpamAssassin 3.x
    1717 * 7. Load your SpamAssassin Rules
     18 * 8. Install and configure amavisd-new
    1819
    1920----
     
    289290== 7. Load your SpamAssassin Rules ==
    290291
    291 ----
     292Maia Mailguard needs to index all of the SpamAssassin rules you have installed on your system, so that these rules, their descriptions and scores can be loaded into a database table. To do this, use one of the scripts in the scripts subdirectory called '''load-sa-rules.pl'''.
     293
     294Before you run this script, edit it to make sure that the SpamAssassin rule directories are set properly, e.g.:
     295{{{
     296# CONFIGURE THIS: SpamAssassin directories to search for rules files (*.cf and user_prefs)
     297my $local_cf_dir = "/etc/mail/spamassassin";
     298my $system_rules_dir = "/usr/local/share/spamassassin";
     299my $user_rules_dir = "/var/amavisd/.spamassassin";
     300}}}
     301
     302'''$local_cf_dir''' should be set to the directory that contains your site's local.cf file.[[BR]]
     303'''$system_rules_dir''' should be set to the directory that contains SpamAssassin's own *.cf files.[[BR]]
     304'''$user_rules_dir''' should be set to the amavis user's SpamAssassin directory, where its (optional) user_prefs file may be found.
     305
     306Run it without arguments, e.g.
     307{{{
     308[root]# /var/amavisd/maia/scripts/load-sa-rules.pl
     309}}}
     310If all goes well, this script will scan the three specified subdirectories for *.cf and user_prefs files, reading any rule names, descriptions and scores it finds and storing them in the Maia Mailguard database
     311
     312You can safely run this script anytime you add new SpamAssassin rules or update your SpamAssassin rule files with new scores. The script will not add the same rule twice, but it will update the score value of a rule that it has seen before. If you use a scheduled job to fetch updated versions of popular SpamAssassin rule sets, for example, add this script to the end of your update job to make sure the changes are picked up by Maia Mailguard.
     313
     314'''Note:''' if your using a rules updatescript make sure to run '''load-sa-rules.pl''' after it makes any rule changes.
     315
     316----
     317
     318== 8. Install and configure amavisd-new ==
     319
     320----