Custom SPAM rule for BODY not working [message #105514] |
Thu, 15 August 2013 06:01  |
0ByteSolutions
Messages: 5 Registered: January 2013 Location: Naples, FL
|
|
|
|
I am trying to create a custom SPAM rule (to look for the word "error") that checks the message body...
I have created the same rule, checking the "subject" header, and it works fine.
Any time I try to use any word or combination of words under the "Mail body" the rule is never triggered.
Is this function "broken"??
((BTW, Kerio Connect v8.1.2 (1523)))
[Updated on: Thu, 15 August 2013 06:02] Report message to a moderator
|
|
|
|
Re: Custom SPAM rule for BODY not working [message #105533 is a reply to message #105529] |
Thu, 15 August 2013 19:12   |
0ByteSolutions
Messages: 5 Registered: January 2013 Location: Naples, FL
|
|
|
|
Quote:This works for me. For testing have you checked that the rule is on top, so it gets checked first. Also, look in the header of the incoming mail to see if the rule has triggered.
It is the ONLY rule I have in my Custom Rules.
I am decreasing the spam score (-0.1).
|
|
|
|
|
|
Re: Custom SPAM rule for BODY not working [message #105570 is a reply to message #105514] |
Fri, 16 August 2013 14:42   |
0ByteSolutions
Messages: 5 Registered: January 2013 Location: Naples, FL
|
|
|
|
Quote:So it seems to work as you have
CUSTOM_BODY_RULE_NUMBER_1: -0.1
What is the problem then?
*I* don't get that... I watch the "Debug" log.
When I set the rule to "Mail Header", select "Subject" & "contains substring" & in the "Content" box type in "error" - when I email myself a test message (from my gmail account) I get the following line in the log:
{spam} Spam Filter: Custom spam rules check finished, adding score -0.10
If I set the rule to "Mail body" & in the "Contains:" I type "error" when an email comes in with the word error in the body (like, when I send a test from my gmail account) I get:
{spam} Spam Filter: Custom spam rules check finished, adding score 0.00
|
|
|
|
Re: Custom SPAM rule for BODY not working [message #105588 is a reply to message #105514] |
Fri, 16 August 2013 22:57   |
0ByteSolutions
Messages: 5 Registered: January 2013 Location: Naples, FL
|
|
|
|
Quote:So while the header check appears in the logs as "Custom Spam Rule", the body check does not.
It nevertheless triggers and works. You can easily prove that by creating a body search rule with a fancy string like bliblablu. Set the rule to reject the message. Then send a mail to yourself (from an external account) that contains bliblablu. The mail will be rejected.
Remove the rule and send the same mail again. It should get through.
NOPE. I used the word "FlabberFlub", as you suggested, setting the rule to REJECT the message yet it still showed up in my inbox.
|
|
|
|
Re: Custom SPAM rule for BODY not working [message #105619 is a reply to message #105614] |
Mon, 19 August 2013 13:51   |
0ByteSolutions
Messages: 5 Registered: January 2013 Location: Naples, FL
|
|
|
|
Quote:Have you switched "Spam Filter" on in the Debug log? I have done this and get in the Debug log:
Regardless of the debug log settings, the message still arrived in my inbox (and should not have). I will, however, check the settings anyway.
(BTW - where would I change that setting? Does such a setting exist?)
UPDATE:
I "upgraded" to the latest 8.1.3 (1711) and now the custom body rule (while set to reject is working). I'll check the "decrease score" setting now, again, as well.
[Updated on: Mon, 19 August 2013 14:00] Report message to a moderator
|
|
|
|