Jo,

> > and pollutes the log with entries like:
> > amavis[44356]: (44356) extra modules loaded:
> >   Mail/SpamAssassin/CompiledRegexps/body_0.pm
> > Other than that, it works just fine in a non-chrooted setup.

> So in a non-chroot setup these lines aren't necessary?

Right.

> Also, if we don't use these lines are the rules loaded just once or
> each time it parses a message (just trying to understand the issue)

Yes, only once by a master process, not even once by a child process.

The following patch to 2.5.2 avoids the unwarranted and repeated
log lines about module loading:

--- amavisd~    Wed Jun 27 12:43:00 2007
+++ amavisd     Thu Sep 27 00:39:06 2007
@@ -7953,4 +7953,10 @@
     }
     Amavis::SpamControl::init_pre_fork()  if $extra_code_antispam;
+    my(@modules_extra) = grep {!exists $modules_basic{$_}} keys %INC;
+    if (@modules_extra) {
+      do_log(1, "extra modules loaded after daemonizing: %s",
+        join(", ", sort @modules_extra));
+      %modules_basic = %INC;
+    }
     1;
   } or do {


Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
[email protected]
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