Daniel wrote:

> In my amavisd.conf file I have:

> @additional_perl_modules =
> qw(/var/lib/spamassassin/compiled/3.002001/Mail/SpamAssassin/CompiledRegexps/body_0.pm
>   
>                         /etc/mail/spamassassin/Botnet.pm
>                         /etc/mail/spamassassin/PDFinfo.pm);

> But CompiledRegexps/body_0.pm doesn't seem to load:

> Jul  5 08:09:14 sa amavis[28179]: (28179-01) extra modules loaded:
> Mail/SpamAssassin/CompiledRegexps/body_0.pm
> Jul  5 08:09:20 sa amavis[27837]: (27837-04) extra modules loaded:
> unicore/lib/gc_sc/Digit.pl, unicore/lib/gc_sc/SpacePer.pl

> Am I using the @additional_perl_modules statement properly?

> Amavisd-new version 2.5.2 on Mandriva Corporate Server 4.0

In RELEASE_NOTES for 2.5.2:

- suggestion: when using SpamAssassin plugin Rule2XSBody
  (available in more recent versions of SA), adding an entry like:
    Mail::SpamAssassin::CompiledRegexps::body_0
  to the @additional_perl_modules list allows preloading of compiled rules.

  Adding the following two lines to amavisd.conf adds the directory name
  containing modules with compiled rules to Perl modules search path and
  allows Perl to find the listed module(s):
    my($sa_instdir) = '/var/db/spamassassin/compiled/3.002001';
    unshift(@INC, $sa_instdir, $sa_instdir.'/auto');


Gary V



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to