List Info

Thread: Re: New modules in SpamAssassin 3.2.0-pre2




Re: New modules in SpamAssassin 3.2.0-pre2
country flaguser name
Canada
2007-03-08 13:48:21
On Wed, 7 Mar 2007, Mark Martinec wrote:

> I decided to give it a try with SA 3.2.0-pre2 to see
how
> it cooperates with amavisd-new. Not much trouble
there,
> even plugins like FuzzyOcr, Botnet, ImageCheck and
ImageInfo
> seem to still work, along with SQL-based bayes and
AWL.
>
> One thing I noticed is an extended list of Perl
modules
> that are not brought-in automatically during SA
initialization,
> but only later during their first use. For chrooted
setups
> these _must_ be preloaded before chooting takes place;
> for normal setup missing modules mean slower execution
> because they must be compiled at every new child
process fork.
>
> To get a list of missing modules search the log (at log
level 2
> or above), looking for:
>
>  extra modules loaded: ...
>
> These modules may either be listed in additional_perl_modules
> (in file amavisd.conf), or the patch below can be
applied
> to 2.4.5 or 2.5.0-pre2, which achieves the same.
>

I am still stuck at amavisd-new 2.3.3, no additional_perl_modules 
available, after looking at 2.4.5, I added following patch
to 2.3.3, seems 
working. I need to put the absolute path to the extra
modules in 
additional_perl_modules config, right?


--- amavisd-2.3.3       2007-03-08 11:25:21.774159120 -0800
+++ amavisd-2.3.3-patch 2007-03-08 11:24:43.224019632 -0800
 -240,7
+240,7 
      )],
      'confvars' => [qw(
        $myproduct_name $myversion_id $myversion_id_numeric
$myversion_date
-      $myversion $myhostname
+      $myversion $myhostname additional_perl_modules
        $MYHOME $TEMPBASE $QUARANTINEDIR
$quarantine_subdir_levels
        $daemonize $pid_file $lock_file $db_home
        $enable_db $enable_global_cache
 -8652,6
+8652,7 
        unicore::To::Lower.pl unicore::To::Upper.pl
      ));
    }
+  push (modules, additional_perl_modules);
    if ($extra_code_antispam) {
      push(modules, qw(
        Mail::SpamAssassin::Locker::Flock


--- amavisd.conf-2.3.3  2007-03-08 11:44:53.629010104 -0800
+++ amavisd.conf-2.3.3.patch    2007-03-08
11:32:13.129623584 -0800
 -203,6
+203,12 
  #   perhaps combined with Postfix: mydestination = 
/var/amavis/local_domains
  # for debugging purposes:
dump_hash($local_domains_maps[0]);
  #
+
+additional_perl_modules = qw(
+ /etc/mail/spamassassin/P0f.pm
+);
+
  # Section II - MTA specific (defaults should be ok)
  #


Vincent Li
Blog		http://bl0g.blogdns.com

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: New modules in SpamAssassin 3.2.0-pre2
country flaguser name
Slovenia
2007-03-19 14:14:46
Vincent,

> > These modules may either be listed in additional_perl_modules
> > (in file amavisd.conf), or the patch below can be
applied
> > to 2.4.5 or 2.5.0-pre2, which achieves the same.
>
> I am still stuck at amavisd-new 2.3.3, no additional_perl_modules
> available, after looking at 2.4.5, I added following
patch to 2.3.3,
> seems working. I need to put the absolute path to the
extra modules
> in additional_perl_modules config, right?

Absolute path is fine, or a module name (like Image::Info)
if the module is in the Perl's module path (INC).
Basically, anything that a 'require' accepts as an
argument.

  Mark

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )