Filter filetype not working

Julian Field mailscanner at ecs.soton.ac.uk
Tue Jan 27 09:37:16 GMT 2004


The filetype checking is disabled by default. Look for the line that
defines the File command and you will probably find a "#" in it starting a
comment.

Also, check that when you locally send these test messages you are actually
sending them through MailScanner. And don't forget that just calling a file
foobar.exe doesn't make it an executable as far as the filetype checking is
concerned. It needs to contain executable code :-)

At 02:55 27/01/2004, you wrote:
>I have recently installed MailScanner on a RedHat machine running Sendmail.
>My  main purpose was to use it for spam filtering with SpamAssasian. That is
>working great. However, I have been asked to filter out executables.It
>appears the default config files are set up to do this - but it is not
>working. I have just sent my account on the machine running MailScanner a
>e-mail with a .exe file and it didn't get filtered. I also sent a file wit
>the name happy99.exe which is specifically filtered in the configuration
>files and that got past as well. I have not edited filename.rules.conf or
>filetype.rules.conf at all.
>
>I am running MailScanner version:
>
>   $Id: MailScanner.pm,v 1.5.2.1 2003/11/27 14:45:56 jkf Exp $
>
>In my MailScanner.conf I have the following two lines:
>
>Filename Rules = %etc-dir%/filename.rules.conf
>Filetype Rules = %etc-dir%/filetype.rules.conf
>
>I have seen people asking similar questions in the list archives, but I
>haven't found any suggestions that have worked for me. Does anyone have any
>idea what I should be looking for to fix this problem?
>
>Ed C.

--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654



More information about the MailScanner mailing list