Thomas, > if perl module DBD::Pg is not avaiable this message is printed on startup: > > fetch_modules: error loading optional module Mail/SpamAssassin/BayesStore/ > PgSQL.pm: > Can't locate DBD/Pg.pm in @INC (@INC contains: /etc/perl /usr/local/lib/ > perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 / > usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at /usr/ > share/perl5/Mail/SpamAssassin/BayesStore/PgSQL.pm line 52, <DATA> line > 253. > BEGIN failed--compilation aborted at /usr/share/perl5/Mail/SpamAssassin/ > BayesStore/PgSQL.pm line 52, <DATA> line 253. > Compilation failed in require at /usr/sbin/amavisd-new line 197, <DATA> > line 253. > > this message was not printed with 2.6.2. seems not to be a fatal error as > amavisd is started after this message.
Like I said, it is a warning and can be ignored. I'll remove pre-loading of Mail/SpamAssassin/BayesStore/*SQL module with 2.6.3, but keep the test and a warning, which can be useful as it tells what went wrong, instead of saying that some module is not available even when it is (but fails loading). - no longer unconditionally pre-loads the following SpamAssassin modules, as not all sites are using SQL-based bayes database: Mail::SpamAssassin::BayesStore::SQL Mail::SpamAssassin::BayesStore::MySQL Mail::SpamAssassin::BayesStore::PgSQL These modules will be dynamically loaded if needed by SpamAssassin after daemonization (which will be logged as "extra modules loaded after daemonizing/chrooting:"). If running chrooted, these modules may not be available in a jail, so their loading can be forced by including their names in the @additional_perl_modules list (in amavisd.conf), either as absolute file paths or as module names, e.g.: @additional_perl_modules = qw( Mail::SpamAssassin::BayesStore::SQL Mail::SpamAssassin::BayesStore::MySQL ); Mark ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ 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/