On 23/03/2012 01:40, Michael Scheidell wrote:
On 3/22/12 7:15 PM, Eliezer Croitoru wrote:
Hello there,

i wanted to try some rules but it seems like my spamassassin is
ignoring my score rules.
so i wanted to test it from command line using this tool
http://wiki.apache.org/spamassassin/DumpTextPlugin
but every time i'm running the command as described in the web site
i'm getting error:
[quote]
/usr/bin/spamassassin -L -t -c dumptext < spammail > /dev/null
config: no rules were found! Do you need to run 'sa-update'? at
/usr/bin/spamassassin line 403.
first, run sa-update.

second, make sure you don't have two copies of spamassassin installed.

third, since you are running amavisd-new, you should run as the amavisd
user

su - vscan -c 'spamassassin -L -t -c dumptext < spammail ' > /dev/null

?

forth, amavisd-new adds,subtracts points, so this won't really be a
valid test.

first thanks Michael

i'v found out what my problem was... the -c thing is changing the config file loaded.
i tried to scan it manually using:
spamassassin -D -t <message.file.msg
and it got a score of 7.9 but not as my config files.

the debug shows spamassassin is loading the files
Mar 23 02:03:13.623 [20357] dbg: config: fixed relative path: /var/lib/spamassassin/3.003001/custom_rules/local.cf Mar 23 02:03:13.623 [20357] dbg: config: using "/var/lib/spamassassin/3.003001/custom_rules/local.cf" for included file Mar 23 02:03:13.624 [20357] dbg: config: read file /var/lib/spamassassin/3.003001/custom_rules/local.cf

[...]
Content analysis details:   (7.9 points, 5.0 required)
[...]

my local.cf file is with these lines:
body LOCAL_DEMONSTRATION_RULE   /p---s/
score LOCAL_DEMONSTRATION_RULE 10
describe LOCAL_DEMONSTRATION_RULE       simple p---s lookup with high score.

i have another issue with amavisd-new that alters the scores.
but for this i will bother at the amavis list.

thanks
Eliezer



and the score is working and marking spam as spam but not as my configurations.
is there any maximum spam score?






--
Eliezer Croitoru
https://www1.ngtech.co.il
IT consulting for Nonprofit organizations
elilezer <at> ngtech.co.il

Reply via email to