Mike,

> ...It's a chrooted Amavisd-new-2.5.2 installation with SpamAssassin 2.3.2

> SpamControl: initializing Mail::SpamAssassin
> plugin: failed to parse plugin (from @INC):
>   Can't locate Mail/SpamAssassin/Plugin/Check.pm ... 

> I checked my old config and these files were not copied to the chroot jail
> yet that config works. The modules themselves are in
> /usr/local/libdata/perl5/site_perl/Mail/SpamAssassin/Plugin

> I'm stumped. I figure it has to be something I'm missing in my chroot jail,
> but I'm at a loss as to what it might be.

No need to copy these modules into jail, but they need to be pre-loaded,
and a default SpamAssassin initialization doesn't load them all, just
some of them. Something like (in amavisd.conf):

@additional_perl_modules = qw(
  /etc/mail/spamassassin/Botnet.pm
  /etc/mail/spamassassin/FuzzyOcr.pm
  /etc/mail/spamassassin/WebRedirect.pm
  /usr/local/etc/mail/spamassassin/ImageCheck.pm
  /usr/local/etc/mail/spamassassin/PDFInfo.pm
  FuzzyOcr::Config FuzzyOcr::Deanimate FuzzyOcr::Hashing FuzzyOcr::Logging
  FuzzyOcr::Misc FuzzyOcr::Preprocessor FuzzyOcr::Scanset FuzzyOcr::Scoring
  HTTP::Date HTTP::Headers HTTP::Message
  HTTP::Request HTTP::Response HTTP::Status
  LWP LWP::Protocol LWP::Protocol::http LWP::UserAgent
  LWP::MemberMixin LWP::Debug
  MLDBM MLDBM::Serializer::Storable MLDBM::Sync MLDBM::Sync::SDBM_File
  Storable auto::Storable::_freeze auto::Storable::freeze auto::Storable::thaw
  String::Approx Tie::Cache
);


Search RELEASE_NOTES for "@additional_perl_modules".

The only unfortunate moduled that Perl needs to find in jail
(because they can not be pre-loaded, not being proper modules
with code) are some unicode auxilliary files such as:
  unicore/lib/gc_sc/Alnum.pl
  unicore/lib/gc_sc/Alpha.pl
  unicore/lib/gc_sc/SpacePer.pl
(everything in a perl5/*/unicore/lib/gc_sc directory)

  Mark


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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