filetype rules

Peter Bonivart peter at UCGBOOK.COM
Sat Feb 5 18:47:33 GMT 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. ]

Dave Filchak wrote:
> Hi,
>
> I have searched the archives and cannot find specific reference to my
> issue. I have the book but it is not with me at the moment. I need to
> set up specific file type rules for a single domain. I do not want to
> just allow all file types but specific ones like .zip, .wmv etc. I tried
> to add a new file called filetype.rules2.conf and change the MailScanner
> entry to point to this file. In this file I put
>
> FromOrTo:   *@domain.com   yes
> FromOrTo:   default   %etc-dir%/filetype.rules.conf
>
> This did not work as it gave me syntax errors in the logs. So I then
> renamed filetype.rules2.conf to filetype.rules and moved it into the
> rules directory. However, this would allow all file types to this domain
> and this is not what I am looking for. Can I use the same type of
> language in this file that is used in the filetype.rules.conf file? Or,
> if not, how would I approach this problem.

MailScanner.conf:
Filetype Rules = %rules-dir%/filetype.rules

filetype.rules:
FromOrTo:   *@domain.com   %etc-dir%/filetype.rules2.conf
FromOrTo:   default   %etc-dir%/filetype.rules.conf

Then you make the changes you need in filetype.rules2.conf.

--
/Peter Bonivart

--Unix lovers do it in the Sun

------------------------ 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 MAQ (http://www.mailscanner.biz/maq/) 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