You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Tom Ray <to...@detroitonline.com> on 2006/07/26 21:06:40 UTC

Custom .cf files

I know I asked this before but I believe I asked it wrong.

Is it possible to have each user have their own 10_misc.cf or any of the 
other .cf files? Right now all are stored in /usr/share/spamassassin I'd 
like each user to have their own.

Anyone done this before?

-- 

Tom Ray
Detroit Online

http://www.detroitonline.com
Toll Free: 888-235-6817 x501
Local: 313-887-0805 x501


Re: Custom .cf files

Posted by Theo Van Dinter <fe...@apache.org>.
On Wed, Jul 26, 2006 at 03:13:40PM -0400, Tom Ray wrote:
> >>Is it possible to have each user have their own 10_misc.cf or any of the 
> >>other .cf files? Right now all are stored in /usr/share/spamassassin I'd 
> >>like each user to have their own.
> >This is quite usual actually, that's what user_prefs are for.
> Well I'm still quite new to this. So I can shove that information into 
> user_prefs or do I modify user_prefs to call on a directory?

You may want to read the documentation a bit. :)

But the short version is that (assuming you're not running in a site-wide
configuration) each user can set certain preferences in their
~/.spamassassin/user_prefs file.  If you run "spamassassin --lint -D" you'll
see what files are being read in what order, but the short version is that
there are three places files are read from:

default rules dir, typically /usr/share/spamassassin
site/local rules dir, typically /etc/mail/spamassassin
user preferences file, typically ~/.spamassassin/user_prefs

.pre files are read from the directories first to load plugins, etc.

.cf files are read from the directories and setup the rules and any site-wide
config options you want set.

user_prefs is read and allows the user to override certain options (typically
rule scores, required_score, whitelist/blacklist, etc.)


Hope this helps. :)

-- 
Randomly Generated Tagline:
"I hold it, that a little rebellion, now and then, is a good thing..."
                   - Thomas Jefferson

Re: Custom .cf files

Posted by jdow <jd...@earthlink.net>.
From: "Theo Van Dinter" <fe...@apache.org>

> Um.  No.  If you don't need to turn this option on, don't turn it on.
> For the request that was made, the option isn't needed.

I thought he was specifically asking about rules not scores.
{o.o}



Re: Custom .cf files

Posted by Theo Van Dinter <fe...@apache.org>.
On Wed, Jul 26, 2006 at 04:38:29PM -0700, jdow wrote:
> You also want to add this line to your local.cf to allow user rules.
> allow_user_rules 1

Um.  No.  If you don't need to turn this option on, don't turn it on.  For the
request that was made, the option isn't needed.

-- 
Randomly Generated Tagline:
"I bit my tongue, and stood in line, with not much to believe in.
  I bought into what I was sold, and ended up with nothin'."
                         - Garbage, "Not My Idea"

Re: Custom .cf files

Posted by jdow <jd...@earthlink.net>.
From: "Tom Ray" <to...@detroitonline.com>
> 
> Theo Van Dinter wrote:
>> On Wed, Jul 26, 2006 at 03:06:40PM -0400, Tom Ray wrote:
>>   
>>> Is it possible to have each user have their own 10_misc.cf or any of the 
>>> other .cf files? Right now all are stored in /usr/share/spamassassin I'd 
>>> like each user to have their own.
>>>
>>> Anyone done this before?
>>>     
>>
>> This is quite usual actually, that's what user_prefs are for.
>>
>>   
> Well I'm still quite new to this. So I can shove that information into 
> user_prefs or do I modify user_prefs to call on a directory?

You also want to add this line to your local.cf to allow user rules.
That file usually lives in /etc/mail/spamassassin along with other
site wide rule sets. The /usr/share/spamassassin directory should not
be modified at all. Any modifications WILL get lost with upgrades.

allow_user_rules 1

Then ~/.spamassassin/user_prefs is where the user's custom rules and
scores can live. Of course with per user Bayes the Bayes files live
there, too.

Of course, this all presumes an 'ix machine. And precise locations
may vary with the type and version of 'ix involved.

I can't help with Windows. I do all the filtering on a Linux machine.
{^_^}

Re: Custom .cf files

Posted by Tom Ray <to...@detroitonline.com>.

Theo Van Dinter wrote:
> On Wed, Jul 26, 2006 at 03:06:40PM -0400, Tom Ray wrote:
>   
>> Is it possible to have each user have their own 10_misc.cf or any of the 
>> other .cf files? Right now all are stored in /usr/share/spamassassin I'd 
>> like each user to have their own.
>>
>> Anyone done this before?
>>     
>
> This is quite usual actually, that's what user_prefs are for.
>
>   
Well I'm still quite new to this. So I can shove that information into 
user_prefs or do I modify user_prefs to call on a directory?

-- 

Tom Ray
Detroit Online

http://www.detroitonline.com
Toll Free: 888-235-6817 x501
Local: 313-887-0805 x501


Re: Custom .cf files

Posted by Theo Van Dinter <fe...@apache.org>.
On Wed, Jul 26, 2006 at 03:06:40PM -0400, Tom Ray wrote:
> Is it possible to have each user have their own 10_misc.cf or any of the 
> other .cf files? Right now all are stored in /usr/share/spamassassin I'd 
> like each user to have their own.
> 
> Anyone done this before?

This is quite usual actually, that's what user_prefs are for.

-- 
Randomly Generated Tagline:
"... the difference between contractors and consultants is that
 contractors augment staff while consultants solve problems."    - Unknown