Blocked filename attachments
d.jones at FX.NET.NZ
Tue Sep 13 23:44:04 IST 2005
On Wed, 2005-09-14 at 08:32 +1000, Michael Mansour wrote:
> 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
you need to point to a file like this:
Filetype Rules = %rules-dir%/filetype.rules
then in this file (ie /etc/MailScanner/rules/filetype.rules) you need:
To: otherdomain.com %etc-dir%/otherdomain.filetype.rules.conf
FromTo: default %etc-dir%/filetype.rules.conf
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.
------------------------ 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