Re: [AMaViS-user] banned_filename_re rules

2005-11-07 Thread Mark Martinec
Nicklas, > I'd like to allow certain file extensions sent in a known .zip file. > e.g. Base rules tells amavisd to block .exe files. Exceptions to this > rule should apply if a .zip file named "safe.zip" is found. Order a list like this: block whatever is disallowed unconditionally, [ qr'^sa

Re: [AMaViS-user] banned_filename_re rules

2005-11-05 Thread Tony Earnshaw
lau den 05.11.2005 Klokka 08:22 (-0700) skreiv Gary V: > [ qr'.\.(doc|ppt|xls|pdf)$'i => 0 ], # allow these before we ban any > # more stuff (notably archives) > qr'.\.(zip|rar)$'i, # more banned file

Re: [AMaViS-user] banned_filename_re rules

2005-11-05 Thread Gary V
Nicklas wrote: > Base rules tells amavisd to block .exe files. Exceptions to this rule should > apply if a .zip file named "safe.zip" is found. As Mark said: >> Sure, just place a rule which permits a specific name before >> rules that would block it, e.g.: >> >> $banned_filename_re = new_RE( >>

RE: [AMaViS-user] banned_filename_re rules

2005-11-05 Thread Nicklas Bondesson
> Gary wrote: > > > [ qr'.\.(doc|ppt|xls|pdf)$'i => 0 ], # allow these before > we ban any > > # more stuff (notably > archives) > > > qr'.\.(zip|rar)$'i, # more banned file > names go here > > I ha

Re: [AMaViS-user] banned_filename_re rules

2005-11-05 Thread Gary V
Gary wrote: > [ qr'.\.(doc|ppt|xls|pdf)$'i => 0 ], # allow these before we ban any > # more stuff (notably archives) > qr'.\.(zip|rar)$'i, # more banned file names go here I have so far arrived at (doc

Re: [AMaViS-user] banned_filename_re rules

2005-11-05 Thread Gary V
Nicklas wrote: >> Nicklas, >> >> > Is there a somehow "simple" way to let a file pass through >> the rules. >> > I'd like a known filename to to simply pass these checks. >> >> Sure, just place a rule which permits a specific name before >> rules that would block it, e.g.: >> >> $banned_file

RE: [AMaViS-user] banned_filename_re rules

2005-11-05 Thread Nicklas Bondesson
> Nicklas, > > > Is there a somehow "simple" way to let a file pass through > the rules. > > I'd like a known filename to to simply pass these checks. > > Sure, just place a rule which permits a specific name before > rules that would block it, e.g.: > > $banned_filename_re = new_RE( > [ qr

Re: [AMaViS-user] banned_filename_re rules

2005-11-04 Thread Mark Martinec
Nicklas, > Is there a somehow "simple" way to let a file pass through the rules. I'd > like a known filename to to simply pass these checks. Sure, just place a rule which permits a specific name before rules that would block it, e.g.: $banned_filename_re = new_RE( [ qr'^secret\.exe$' => 0 ],

[AMaViS-user] banned_filename_re rules

2005-11-04 Thread Nicklas Bondesson
Is there a somehow "simple" way to let a file pass through the rules. I'd like a known filename to to simply pass these checks. Thanks, Nicklas B --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App S