On 3/6/02 7:42 AM, "Greg Ward" <[EMAIL PROTECTED]> wrote: > [Richard Sonnen] >> It might be useful to set up spamc and spamd so that you could >> specify alternate config files more easily. i.e. >> >> spamc --cf /path/to/system/conf/dir --rf /path/to/user/rules > > [Craig Hughes] >> Which entirely defeats the purpose of spamd -- to pre-compile the >> rules.
> That only invalidates the second option (/path/to/user/rules). It would I think you mean invalidates the first -- the system rules. > still, IMHO, be useful to specify an arbitrary user config file, so > that scores, use_terse_report, etc. can come from somewhere > other than ~user/.spamassassin/user_prefs, for some user listed > in /etc/passwd. > > The reason I'd like to see this: I'm about to setup SA on a system with > ~100 mailing lists, but only a handful of "real" email addresses > (ie. where the localpart == a username from /etc/passwd). It would be > nice to be able to tweak SA's parameters -- particularly scores -- on a > per-list basis. The cleanest and most flexible way I can think of for > this is for me to create a directory full of per-list config files, say > /etc/spamassassin/lists. Then the code that I write to hook my MTA to > SA (which might be a snippet of Exim configuration stuff, or might be a > little Python script that launches spamc) will figure out which config > file to use, and tell spamc. Presumably, spamc will then tell spamc to > use that config file instead of ~user/.spamassassin/user_prefs, which > will be irrelevant most of the time. I think for this setup, where most of the addresses are not mapped in /etc/passwd (and so have no ~ directory), you should look at storing the configurations in a database and use the SQL stuff. If nothing else, it'll make your exim/python/whatever code easier to write, since you can just invoke spamc with the address, and not have to do the address->configlocation lookup in your own code. Another option would be to just create those ~100 users in /etc/passwd and give them home directories, and set their login shells to /bin/false, uid/gid to be the same as user nobody or something, and then just use the standard user_prefs location. C C _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk