Mark Martinec schrieb am Donnerstag, den 04. Februar 2010: Hi,
> > Unfortunatly that options weren't implemented as I suggested in my patch [1] > > in 2008. The patch would allow to apply the rulefiles per policybank in one > > instance. I have the patch productive since years (for example for > > lists.debian.org). Marc: are there any chances the patch will applied to > > amavisd-new? > > > At last. This will be in the next release. Thanks for a suggestion! > > - added a configuration variable $sa_user_config_file, also member of > policy banks. It can be set to a full file name of a 'user preferences' > configuration file. Setting of $sa_user_config_file is normally done > through a policy bank, not globally. SpamAssassin will be requested to load > this configuration file through its read_scoreonly_config() method, which > otherwise (in spamd) serves to load user's .spamassassin/user_prefs file > when switching users. When $sa_user_config_file changes (through exiting > a policy bank or loading another policy bank), an initial SpamAssassin > configuration is restored through SpamAssassin's copy_config() method. > > Note that saving an original SpamAssassin configuration, loading a user > configuration file, and restoring to the original configuration does not > come cheap: it can take 200 ms for a load and restore, and 370 ms for the > initial saving of the configuration (saving is only done once per child > process, and only if needed). Saved configuration can occupy additional > 2 MB of virtual memory, so use the feature sparingly. No penalty occurs > until a child process does its first loading of a user config file, so > rarely activated or inactive policy banks using this feature come cheap. > > According to SpamAssassin documentation, a user preferences file can > include scoring options, scores, whitelists and blacklists, etc. > If 'allow_user_rules' is enabled (local.cf), then a user preferences > file can also include rule definitions and privileged settings - but > not the administrator settings. > > The feature is only available with SpamAssassin 3.3.0 (or later). This are really great news! Thanks that means my amavis is down to zero patches ;). But.. hmm? what did you used that is SA 3.3.0 specific? (I didn't had a look on the new features of the API yet). Thanks for your great work Alex ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ 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/