filename.rules.conf

Maarten mailinglists at feedmebits.nl
Fri Nov 4 14:53:00 UTC 2016


Yes using tabs:

deny	SCAN_2016_.*\.zip$	TEST	TEST"
deny	Incasso\.zip	TEST	TEST


The normal filename blocks seem to be work(one of the default listed 
ones), cuz when I sent a test email with an attachment named test.bat it 
gets filtered out.
deny	\.reg$		Possible Windows registry attack						Windows registry 
entries are very dangerous in email



On 2016-11-04 15:42, Shawn Iverson wrote:
> Yes, that is correct.   I should have said it the other way around.
> 
> On Fri, Nov 4, 2016 at 10:40 AM, Maarten <mailinglists at feedmebits.nl>
> wrote:
> 
>> I was using tabs since at the top it of the config file it says:
>> 
>> # NOTE: Fields are separated by TAB characters --- Important!
>> 
>> Using spaces now, still the filenames aren't getting blocked:
>> 
>> deny SCAN_2016_.*\.zip$ "TEST "TEST"
>> deny Incasso\.zip "TEST" "TEST
>> 
>> On 2016-11-04 15:24, Shawn Iverson wrote:
>> Are you using tabs instead of spaces?  That's a tricky thing about
>> MailScanner.
>> 
>> On Fri, Nov 4, 2016 at 9:17 AM, Maarten <mailinglists at feedmebits.nl>
>> wrote:
>> 
>> Hello,
>> 
>> I'm running mailscanner-4.85.2-3, and I've added two custom rules to
>> filename.rules.conf. However it seems to files don't get blocked.
>> Here are two examples of rules I"ve added:
>> 
>> deny    SCAN_2016_.*\.zip$      TEST    TEST
>> deny    Incasso\.zip$   TEST    TEST
>> 
>> I'm not seeing any syntax errors in my logs referring to
>> filename.rules.conf, when I had the syntax wrong before I say errors
>> complaining about it. Am I missing something?
>> 
>> --
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/mailman/listinfo/mailscanner [1] [1]
>> 
>> --
>> 
>> Shawn Iverson
>> Director of Technology
>> Rush County Schools
>> 765-932-3901 x271 [2]
>> iversons at rushville.k12.in.us
>> 
>> Links:
>> ------
>> [1] http://lists.mailscanner.info/mailman/listinfo/mailscanner [1]
> 
> --
> 
> Shawn Iverson
> Director of Technology
> Rush County Schools
> 765-932-3901 x271
> iversons at rushville.k12.in.us
> 
> 
> 
> Links:
> ------
> [1] http://lists.mailscanner.info/mailman/listinfo/mailscanner
> [2] tel:765-932-3901%20x271


More information about the MailScanner mailing list