rules no longer working

Discuss the ConfigServer MailScanner Front-End script
keat63
Junior Member
Posts: 114
Joined: 17 Dec 2014, 14:50

Re: rules no longer working

Post by keat63 »

Filename.rules and filetype.rules look slightly different when you open them
Anyhow I added

deny \.xls$
deny \.zip$
to filetype.rules, too early to tell if this is working just yet.
Sarah
Moderator
Posts: 878
Joined: 09 Dec 2006, 22:49

Re: rules no longer working

Post by Sarah »

That is not going to work, you need to do what I suggested and check what the "file" command says about the file you want to block.
keat63
Junior Member
Posts: 114
Joined: 17 Dec 2014, 14:50

Re: rules no longer working

Post by keat63 »

I've no ide what i'd be doing, and generally I would experiment and see what I get.
However, I'm not sure that I dare run the file command in this instant, the files in question are virus infected files.

so Instead I created an empt xls and then zipped this.
Running the file command gave:

Book1.xls: Composite Document File V2 Document, Little Endian, Os: Windows, Version 6.2, Code page: 1252, Author: Windows User, Last Saved By: Windows User, Name of Creating Application: Microsoft Excel, Create Time/Date: Tue Jun 14 08:48:53 2022, Last Saved Time/Date: Tue Jun 14 08:49:02 2022, Security: 0

Book1.zip: Zip archive data, at least v2.0 to extract

but means nothing to me.
Sarah
Moderator
Posts: 878
Joined: 09 Dec 2006, 22:49

Re: rules no longer working

Post by Sarah »

I wouldn't do the file command on the zip file but on the xls file. MailScanner will scan within zip archives. Otherwise you'll just block all zip files. Unfortunately I can't really help any further on how to use the results of the file command, you'll need to find this information elsewhere. Maybe someone else on this forum will be able to help.
Post Reply