[MAILSCANNER] Problem with new MCP rules?
Scott Silva
ssilva at SGVWATER.COM
Tue Sep 20 20:44:08 IST 2005
[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
Julian Field spake the following on 9/20/2005 12:27 PM:
> Scott Silva wrote:
>
>> Johnny Stork spake the following on 9/20/2005 10:27 AM:
>>
>>
>>> After going through the instructions for coniguring MCP, I had no
>>> problem getting MailScanner to identify subject or body text
>>> contained in the default example rule file 10_example.cf. So I
>>> created a new file with the extension *cf, with the contents below,
>>> and resstared MailScanner. Going to the MailWatch interface, Tools,
>>> and "Update MCP Rules Descriptions" and it correctly showed the new
>>> rules listed below, But sending an email with only the word
>>> "password" in the subject line got through just fine? What am I missing?
>>>
>>> Thanks
>>>
>>>
>>>
>>> # Rules for PBCO Message Content Protection
>>> #
>>>
>>> header PASSWORD-SUBJECT-RULE Subject =~ /password/i
>>> describe PASSWORD-SUBJECT-RULE Banned Subject
>>> score PASSWORD-SUBJECT-RULE 5
>>>
>>> body PASSWORD-BODY-RULE /password/i
>>> describe PASSWORD-BODY-RULE Banned body text
>>> score PASSWORD-BODY-RULE 5
>>>
>>>
>>
>> I don't see any rules with "-" dashes, they all have '_' underscores.
>> Maybe this isn't an allowed character in a rule name.
>>
>>
> SpamAssassin generates a Perl function for each rule, so only the
> characters allowed in Perl function names are allowed in SpamAssassin
> rule names. So "-" is certainly not allowed, as it is the arithmetic
> "minus" operator.
>
I just have to sit down and try learning perl!
--
/-----------------------\ |~~\_____/~~\__ |
| MailScanner; The best |___________ \N1____====== )-+
| protection on the net!| ~~~|/~~ |
\-----------------------/ ()
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list