Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Directions for having .pm's in /etc/spamassassin/

...

Please add links to third-party SA plugins to the bottom of this page. Note that only SpamAssassin 3.0.0 or later can use these. To use these, just place the file(s) in your SpamAssassin plugin directory, which may be /usr/share/perl5/Mail/SpamAssassin/Plugin/ (if you use spamd, be sure to restart); SpamAssassin will need at least 1 rule file (ending in .cf) to load the plugin, and that will typically use a loadplugin line to load a .pm file containing the plugin's perl code.

You can also keep the plugin's .pm file in your /etc/mail/spamassassin/ or /etc/spamassassin/ directory, but you need to specify the plugin's file name as the second argument to loadplugin. For example, a plugin named Mail::SpamAssassin::Plugin::MyPlugin with a filename of myplugin.pm:
loadplugin Mail::SpamAssassin::Plugin::MyPlugin myplugin.pm

Table of Contents

Before running these plugins please do the following:

...