This is a discussion on Re: [AMaViS-user] whitelisting some file type within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; On Friday 14 October 2005 07:56 pm, Mark Martinec wrote: > Maurizio, > > > can i configure which ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Friday 14 October 2005 07:56 pm, Mark Martinec wrote:
> Maurizio, > > > can i configure which mime type i want allow, not which ones are banned? > > Sure. The regexp lookup table is described in README.lookups, > it applies to $banned_filename_re too. thnx Mark for help :) your contribute is always very apreciated.. now, another question: can be this applied to a single mail account or domain, or it is sistem wide only? > > $banned_filename_re = new_RE( > [ qr'^message/multpart$'i => 0 ], # allow > [ qr'^text/plain$'i => 0 ], # allow > [ qr'^\.(empty|txt|html)$ => 0 ], > [ qr'^\.(doc|jpg)$' => 0 ], > [ qr'^\.(Z|gz|bz2)$ => 0 ], # allow any in Unix-compressed > qr'^', # block everything else > ); ok, it was just what i was searching for :) Maurizio ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |