On 11/5/2012 11:39 AM, Sandro Tosi wrote:
we're running an authenticated outgoing SMTP and we'd like to give each (virtual) user a different spam threshold.

Currently the threshold y,y is set in local.cf and read by spamd, and so it's static, and the only solution we can think of is to run

spamc -c < mail

and parse the x.x/y.y output, get x.x and compare it to a value we read from the database.

wouldn't it be nicer to call

spamc -c --spam-threshold k.k < mail

and have spamc return 1 if x.x >= k.k (with k.k variable per user and != y.y)?

Is this a feature request you'd like to accept? Any other solution to the problem at hand?
The userprefs DB can store per user thresholds that you specify with the -u parameter.

Otherwise, I guess an option to pass parameters (not just a specific spam threshold would be good) "inline" instead of via an actual file might be good.

Similar to the spamc --cf='config line' Additional line of configuration

Not sure if that works though as I've always used the SQL version.


Reply via email to