Re: [AMaViS-user] whitelisting some file type

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 ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-15-2005
Maurizio Marini
 
Posts: n/a
Default Re: [AMaViS-user] whitelisting some file type

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/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0