Confusion with Allow Filenames

Julian Field MailScanner at ecs.soton.ac.uk
Fri May 12 23:20:39 IST 2006


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



Max Kipness wrote:
>> On 12 May 2006, at 12:10, Max Kipness wrote:
>>
>>     
>>> I've been trying to find the answers from archived posts, but I'm
>>> still
>>> not sure if the following should work or not. I definitely doesn't
>>> based
>>> on emails with .bmp files attached sent from other mail servers
>>>       
> (that
>   
>>> don't block .bmp on  outbound mail).
>>>
>>> In mailscanner.conf:
>>> Allow Filenames = /etc/MailScanner/rules/allow.filename.conf
>>> Allow Filetypes = /etc/MailScanner/rules/allow.filename.conf
>>>
>>> In /etc/MailScanner/rules/allow.filename.conf:
>>> FromOrTo:       myemailaddress at domain.com        \.bmp
>>> FromOrTo:       default
>>>
>>> There are no errors being produced in the maillog, but the rule is
>>> being
>>> ignored completely.
>>>
>>> I saw another reference to creating the allow.filename.conf back to
>>> individual filename.rule.conf files per domain, but I'd rather not
>>> do it
>>> that way unless necessary.
>>>
>>> Can the above work? Or what am I doing wrong?
>>>       
>> A few months ago I created an alternative way of doing all this which
>> you may find much easier to use when creating simple sets of
>> restrictions for different groups of users. One of the few things you
>> cannot do with this new method is to have rules containing any tabs
>> or spaces. But that's not a problem most of the time.
>>
>> First of all these configuration options are considered. If nothing
>> matched, then the filename.rules.conf file is used as it always has
>> been.
>>
>> There is course a similar set of options for filetypes as well as
>> filenames.
>>
>> Can someone write some documentation for the wiki pointing out this
>> alternative method please?
>>
>>     
>
> I've read the inline docs, and I'm not clear on how you use a ruleset to
> accomplish what I explained above. Does the ruleset have to then point
> to different filename.rules.conf files for each user/domain? Or is there
> some other way of doing it?
>
> Thanks,
> Max
>   
Set
    Allow Filenames = %rules-dir%/allow.filenames.rules
In /etc/MailScanner/allow.filenames.rules
    From: yourmail at address.com \.bmp$
That's it!
Leave your filename.rules.conf file alone.

- -- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.6 (Build 6060)

iQA/AwUBRGUKOBH2WUcUFbZUEQLILACg+TjNN2013wVRQ8TiyY2AZneU288AoJcO
T0A3ROcADgELO8pW7Gx9lkBr
=Re4Y
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



More information about the MailScanner mailing list