* Quanah Gibson-Mount <qua...@zimbra.com>: > I thought I had noted this to the list a few years ago, but I couldn't find > a record of it. I swear at least one other person said they'd find this > useful. ;)
Quanah, ain't that the same as this: - 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. It's in the pre-?? RELEASE_NOTES. The patch is based on Alexander Wirt's work. p@rick > > We patch our amavisd with the following: > > --- //depot/zimbra/main/ThirdParty/amavisd/amavisd-new-2.7.0-pre14/amavisd > 2011-02-18 22:28:40.000000000 -0800 > +++ /home/quanah/p4/main/ThirdParty/amavisd/amavisd-new-2.7.0-pre14/amavisd > 2011-02-18 22:28:40.000000000 -0800 > > @@ -398,7 +398,7 @@ > $spamcontrol_obj > $helpers_home $sa_configpath $sa_siteconfigpath > $sa_local_tests_only $sa_timeout $sa_debug > - $dspam $sa_spawned > + $dspam $sa_spawned $sa_userprefs_file > )], > 'platform' => [qw( > $can_truncate $unicode_aware $my_pid > @@ -24332,6 +24335,7 @@ > home_dir_for_helpers => $helpers_home, > rules_filename => $sa_configpath, > site_rules_filename => $sa_siteconfigpath, > + userprefs_filename => $sa_userprefs_file, > # LOCAL_STATE_DIR => '/var/lib', > # PREFIX => '/usr/local', > # DEF_RULES_DIR => '/usr/local/share/spamassassin', > > > And then add the following to our amavisd.conf file: > > # $sa_debug = 1; > $sa_configpath = '/opt/zimbra/conf/spamassassin'; > $sa_siteconfigpath = '/opt/zimbra/conf/salocal.cf'; > $sa_userprefs_file = '/opt/zimbra/conf/sauser.cf'; > > > This allows the end admin to do some additional customization of SA. > Anyhow, since 2.7.0 is being worked on, didn't know if you'd like to > include it if it is indeed useful to others. > > --Quanah > > -- > > Quanah Gibson-Mount > Sr. Member of Technical Staff > Zimbra, Inc > A Division of VMware, Inc. > -------------------- > Zimbra :: the leader in open source messaging and collaboration > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > AMaViS-user mailing list > AMaViS-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/amavis-user > Please visit http://www.ijs.si/software/amavisd/ regularly > For administrativa requests please send email to rainer at openantivirus dot > org -- All technical questions asked privately will be automatically answered on the list and archived for public access unless privacy is explicitely required and justified. saslfinger (debugging SMTP AUTH): <http://postfix.state-of-mind.de/patrick.koetter/saslfinger/> ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user Please visit http://www.ijs.si/software/amavisd/ regularly For administrativa requests please send email to rainer at openantivirus dot org