SA Bugzilla – Bug 367
spamc/spamd command-line option to set required_hits value
Last modified: 2002-06-06 12:59:34 UTC
Our mailhub runs spamassassin but it has no users. We can configure the MTA to lookup users and read a value from a file. This value could be used as the users requested 'required_hits' value, and a command-line value would override any system-wide value we set. At the present *all* users (i.e. all mail received for our users) have to use the system-wide value. E.g. something like 'spamc -l 8' to set a required_hits value of 8 for the users message the mta is currently processing. The problem is some users will accept our system-wide value, others will want it higher or lower. The option should be passed on to spamd. More ambitious maybe is to use something like 'spamc -o required_hits=8', where multiple -o options could be used to specify the various configuration options. It may only be applicable to those options having a single value - numerical or boolean. Thanks John.
Created attachment 148 [details] Patch to spamc.c
Created attachment 149 [details] Patch to spamd
I don't think this is the right way of doing this -- better would be to use the SQL capabilities already in SA. Nice to have the patch here though in case anyone else wants to do something similar.