Allowing BMP files through for a particular domain

James Gray james at grayonline.id.au
Fri Aug 25 08:18:01 IST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 25/08/2006, at 2:24 PM, Michael Mansour wrote:

> Hi,
>
> I have one domain which requires BMP files to be let
> through for their domain.
>
> I added the following two lines to my
> "domainname.com.filetype.rules.conf" file:
>
> allow   \.bmp$          Yes BMP files           BMP
> graphics files allowed
> allow   BMP             Yes BMP files           BMP
> graphics files allowed
>
> but MailScanner keeps blocking the BMP's.
>
> Is there something I'm missing?

Hi Michael,

I assume you already have a rule set for the filetype actions in  
MailScanner.conf, let's call it "filetype.user.rules".
Filetype Rules = %rules-dir%/filetype.user.rules

In filetype.user.rules you'll need this (watch the wrap - each of  
these is on a single line):
From:     *@domainame.com  /path/to/ 
domainname.com.filetype.rules.conf /path/to/default/filetype.rules.conf
FromOrTo: default /path/to/default/filetype.rules.conf

Keep in mind file names and file types behave in unison to block if  
either block and only allow if both allow.  If the attachment is  
allowed by filetypes, but blocked under file names, the attachment  
will blocked.  It will only be allowed is there is no rule to handle  
it either file names or file types, OR it is explicitly "allowed" in  
BOTH file names AND file types.

Filename |  Filetype | Result
- -------------------------------
allowed  |  allowed  | allowed
allowed  |  denied   | blocked
denied 	 |  allowed  | blocked
denied   |  denied   | blocked
N/A      |  N/A      | allowed
denied   |  N/A      | blocked
N/A      |  denied   | blocked
allowed  |  N/A      | allowed
N/A      |  allowed  | allowed

N/A = no explicit rule to allow or deny in the rule file.

You may need to look at complimenting your file type rules with a  
customised set of file NAME rules.

Have a look at:
http://wiki.mailscanner.info/doku.php? 
id=documentation:configuration:rulesets:overloading&s=rules
(or http://tinyurl.com/hua4e if that wraps)

Cheers,

James


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFE7qQtwBHpdJO7b9ERAlvsAJ4zOUk2CiIQpwFHRljrnBB6NpUKewCfUvAl
7gSHOrMOLNhRowinsFwEEfk=
=JHp5
-----END PGP SIGNATURE-----


More information about the MailScanner mailing list