Blocked filename attachments

Julian Field MailScanner at ecs.soton.ac.uk
Wed Sep 14 09:06:47 IST 2005


-----BEGIN PGP SIGNED MESSAGE-----

<plug type="blatant">
It is also well documented in the Book.
</plug>

On 14 Sep 2005, at 04:00, Michael Mansour wrote:

> Many thanks to the excellent replies and references.
> I've implemented it and it seems to be working fine.
>
> Regards,
>
> Michael.
>
> --- Donovan Jones <d.jones at FX.NET.NZ> wrote:
>
>
>> On Wed, 2005-09-14 at 08:32 +1000, Michael Mansour
>> wrote:
>>
>>> Hi,
>>>
>>> Currently I have my system blocking the following
>>> filetypes in the filetypes.rules.conf file:
>>>
>>> deny    MPEG            No MPEG movies          No
>>> MPEG movies allowed
>>> deny    AVI             No AVI movies           No
>>>
>> AVI
>>
>>> movies allowed
>>>
>>> I want to allow them through for a particular
>>>
>> domain
>>
>>> _only_, while keeping the default behaviour for
>>>
>> every
>>
>>> other domain, but I don't quite understand how to
>>>
>> do
>>
>>> this from the explanation given in the
>>> MailScanner.conf file:
>>>
>>> # Set where to find the attachment filetype
>>>
>> ruleset.
>>
>>> # The structure of this file is explained
>>>
>> elsewhere,
>>
>>> but it is used to
>>> # accept or reject file attachments based on their
>>> content as determined
>>> # by the "file" command, regardless of whether
>>>
>> they
>>
>>> are infected or not.
>>> #
>>> # This can also point to a ruleset, but the
>>>
>> ruleset
>>
>>> filename must end in
>>> # ".rules" so that MailScanner can determine if
>>>
>> the
>>
>>> filename given is
>>> # a ruleset or not!
>>> #
>>> # To disable this feature, set this to just
>>>
>> "Filetype
>>
>>> Rules =" or set
>>> # the location of the file command to a blank
>>>
>> string.
>>
>>> Filetype Rules = %etc-dir%/filetype.rules.conf
>>>
>>
>>
>> in /etc/MailScanner/MailScanner.conf
>>
>> you need to point to a file like this:
>>
>> ---cut here---
>> Filetype Rules = %rules-dir%/filetype.rules
>> ---cut here---
>>
>> then in this file (ie
>> /etc/MailScanner/rules/filetype.rules) you need:
>>
>> ---cut here---
>> To:     otherdomain.com
>> %etc-dir%/otherdomain.filetype.rules.conf
>> FromTo: default
>> %etc-dir%/filetype.rules.conf
>> ---cut here---
>>
>> The default ruleset has the defaults the otherdomain
>> ruleset can have
>> whatever you want for the domain concerned
>>
>> you can do the same thing with filename rules.
>>
>> Regards
>> Don Jones
>>
>> ------------------------ 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!
>>
>>
>
>
> Send instant messages to your online friends http:// 
> au.messenger.yahoo.com
>
> ------------------------ 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!
>

- -- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2425)

iQEVAwUBQyfaGvw32o+k+q+hAQEQjwgAn/8cjkJ4b4+Fm85W+/7/GXn1ZaTBgC3R
+/BW6Gxka2Mv52WwAvIojzW9/XyVYUsLMcRiN85OhED25mdod6E+YLDcGJR9MA6E
57PEV5aoy8K3H071N3Z/74rQpdunDUF2MLo/Hdjn0+th+sioR8Ona1iZIsZLGkr4
734zJowosEehT1kXKqjmTCmyobGuX+qjSt0lw7k34D0e3rzgLhvAitnCJpO5mEMD
P1m4hGgmE06I7riRxa5E7utFCA1kzuh1n+95ocfa3UmubTEvhxBKh+xJUYzkPLIO
0ZubF9DHe4zN2BFETV/G37zdkYRTo0kzZDMVYYen2nJ+4XN5UQqdNA==
=iR4O
-----END PGP SIGNATURE-----

------------------------ 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