Issue resolved. I needed to 'cat /var/log/syslog | grep CSTM' to debug my
rules. I'm getting my packages confused: spamassassin notices are in
/var/log/syslog while sa-exim notices are in exim's mainlog and rejectlog.
SA-Exim only logs the rules an email matches in rejectlog, and that only
happens when the email is rejected. So syslog is where to go to debug
things. Thanks for the help.

-----Original Message-----
From: jdow [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 01, 2006 8:45 PM
To: users@spamassassin.apache.org
Subject: Re: SpamAssassin local rules not executing


1) Are these meant to be global rules or user rules? I presume the
   latter from your phrasing below.
2) Are you putting the rules into "~/.spamassassin/user_prefs"?
3) How are you running SpamAssassin? That can make a serious difference
   regarding whether or not SpamAssassin can access your user directory
   for your email tests. If it cannot you must reconfigure the other
   parts of your email system.

If you are running in a jail you MIGHT get away with creating within
that jail a /home/<users>/.spamassassin/ for each user. Copy the
actual user_prefs file for each user into their respective directories
created above. Then link that user_prefs file back to the user's own
~/.spamassassin/user_prefs for editing. This seems ugly to me. But it
does preserve the jail's integrity.

{^_^}
----- Original Message -----
From: "Chase James" <[EMAIL PROTECTED]>


> Theo,
>
> Well, I took the allow_user_rules line out. Some of my rules are:
>
> #custom rules
> body CSTM_INFINEX_VEN /infinex/
> describe CSTM_INFINEX_VEN Message mentions Infinex Ventures
> score CSTM_INFINEX_VEN 2.0
>
> body CSTM_FONT_SIZE_EQLS_2 /<td><font size\=2>/
> describe CSTM_FONT_SIZE_EQLS_2 Message contains html for small fonts
> score CSTM_FONT_SIZE_EQLS_2 .1
>
> header CSTM_SBJCT_MARKEDSPAM Subject =~ /\bSPAM:\b/i
> describe CSTM_SBJCT_MARKEDSPAM Message has the word SPAM in subject
> score CSTM_SBJCT_MARKEDSPAM 3.0
>
> body CSTM_ORGASM /orgasm/
> describe CSTM_ORGASM Message contains the word orgasm
> score CSTM_ORGASM 2.0
>
> When I grep my rejectlog for mentions of CSTM, nothing comes up. But I'm
> still getting spam with these attributes. Thanks for your help.
>
> - Chase
>
> -----Original Message-----
> From: Theo Van Dinter [mailto:[EMAIL PROTECTED]
>
> On Thu, Jun 29, 2006 at 04:54:13PM -0400, Chase James wrote:
>> The first site rules file loaded is init.pre, the last file loaded,
> though,
>> is:
>>
>> debug: using "/etc/spamassassin" for site rules dir
>> debug: config: read file /etc/spamassassin/local.cf
>>
>> But it seems like its being read. Should I put the rules in init.pre? I
>> enabled allow_user_rules and restarted spamd, but that doesn't seem to
> have
>> worked...
>
> Well, it's not clear what you're trying to do.  allow_user_rules lets
users
> have rules in their ~/.spamassassin/user_prefs file.  If you're not using
> that, don't turn the function on!
>
> *.pre files are mainly for loading plugins which needs to occur before any
> rule processing.  Don't put rules in there.
>
> Can you define "doesn't seem to have worked"?  If the file is read,
> and --lint
> shows no errors, your rules are being used.  Whether or not the match the
> input message is a different question...
>
> --
> Randomly Generated Tagline:
> "A Young Eel is called this."            - Jeopardy Question
> "What is a baby eel Alex."                - Theo's Response

Reply via email to