Dne ne 24. prosince 2006 1:46 Mark Martinec napsal(a): > Ondrej, > > > I tried both -- *.cf (or user_prefs) and *.pre -- works OK under right > > command-line user amavis, but with amavisd-new it really runs only once > > -- on message with "I need to make this message body somewhat long so > > TextCat preloads" and to all other messages just put same score. > > I'm not sure which difference is affecting you - comparing SA logs could > tell.
Problem was, that the debug output was almost same. > Here are two guesses: > [...] > Plugins may also be affected by the fact that SA is initialized only > once in the master process, and each child process then continues with > already initialized SA. This is exactly the same as with spamc/spamd, > but differs from command line invocations of spamassassin. This is almost it -- CRM114 plugin needs two changes, add child handeling after proccess exits and above all rewrite condition !exists($self->{crm114_score}, which is there because check_crm() is called more than one for each message, but with using Mail::SpamAssassin (amavisd-new, spamd) this means it's called only once at all for initialization message. It is a pity I noticed it after plugin rewrite. :) > > It works just fine, but if it helps, i can try new version as well. > > It probably does not affect your immediate problem, but lots of > improvements and new experience went into the product in three years > time (and into SA since 3.0.3 to 3.1.7). Some details have changed > and collective memory about details on versions you run are gradually > fading, so help is scarcer. Developing new plugins for an old version > makes you unable to use newly developed mechanisms (API etc), and/or > that you re-do your work to make it useful for others running current > versions. And a general issue: you wouldn't run a month-old version > of a virus checker, so what makes one think that spam and other expoit > techniques are not changing as fast as virus scanning engines. Thanks for hints, but I believe that for my purpuses I should rather prefer stabe software athough support is granted "only" by linux vendor (Debian). I think dynamic message characteristics and other dynamic rules are quite enough. -- Ondřej Čečák ------------------------------------------------------------------------- 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-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/