On 3/22/2012 8:08 PM, Eliezer Croitoru wrote: > > 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.
First, run this: spamassassin --lint There should be no output. If there is any output, then you need to fix whatever it complains about. Second, make sure that your message will actually match your pattern. In this case, the body must contain the string 'p---s' after being decoded. If this still doesn't fix the problem, then post your test message to a pastebin so we can test it ourselves. > and the score is working and marking spam as spam but not as my > configurations. > is there any maximum spam score? No, there is no maximum spam score in SA. I'm not entirely sure about Amavis, but I don't believe there is a maximum there either. -- Bowie