Allowing BMP files through for a particular domain

James Gray james at
Fri Aug 25 08:18:01 IST 2006

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
> "" 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:     *  /path/to/ /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: 
(or if that wraps)



Version: GnuPG v1.4.3 (Darwin)


More information about the MailScanner mailing list