List Info

Thread: Pre-Loading additional modules




Pre-Loading additional modules
user name
2007-07-05 08:20:30
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


-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
Austin Energy
http://www.austinenergy.c
om

------------------------------------------------------------
-------------
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://sourcefor
ge.net/powerbar/db2/
_______________________________________________
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: Pre-Loading additional modules
user name
2007-07-05 09:24:38
Hello Daniel,

If you suid to amavisd user and list
/var/lib/spamassassin/compiled/3.002001/Mail/SpamAssassin/Co
mpiledRegexp
s you will see the file?

Could you paste output of 'amavisd debug-sa' and
'spamassassin -D
--lint' also issued like amavisd user?






Regards,
 
Catalin Miclaus
Senior Network Administrator
Starcomms Ltd.




-----Original Message-----
From: amavis-user-bounceslists.sourceforge.net
[mailto:amavis-user-bounceslists.sourceforge.net] On
Behalf Of Daniel J
McDonald
Sent: Thursday, July 05, 2007 2:21 PM
To: amavis-userlists.sourceforge.net
Subject: [AMaViS-user] Pre-Loading additional modules

In my amavisd.conf file I have:

additional_perl_modules =
qw(/var/lib/spamassassin/compiled/3.002001/Mail/SpamAssassin
/CompiledReg
exps/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


-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
Austin Energy
http://www.austinenergy.c
om

------------------------------------------------------------
------------
-
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://sourcefor
ge.net/powerbar/db2/
_______________________________________________
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/

------------------------------------------------------------
-------------
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://sourcefor
ge.net/powerbar/db2/
_______________________________________________
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: Pre-Loading additional modules
country flaguser name
United States
2007-07-05 09:21:51
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://sourcefor
ge.net/powerbar/db2/
_______________________________________________
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: Pre-Loading additional modules
country flaguser name
United States
2007-07-05 09:24:54
Gary wrote:

> 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');

more typical:

 my($sa_instdir) =
'/var/lib/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://sourcefor
ge.net/powerbar/db2/
_______________________________________________
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-4]

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