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; Maurizio, > now, another question: can be this applied to a single mail account or > domain, or it is ...


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-16-2005
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] whitelisting some file type

Maurizio,

> now, another question: can be this applied to a single mail account or
> domain, or it is sistem wide only?


It can be per-recipient since 2.3.0. See 2.3.0 release notes under
NEW FEATURES. (but one should be using 2.3.3 nevertheless)

> > $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 :)


I must admit I haven't tried the above, and I expect there might be
unexpected interactions between MIME type, file name and short file types,
as each node in a MIME tree can have each one of these three attributes,
but need not have them. The program does work according to specs,
it's just the usability of this approach which needs to be tried out.

If it would turn out you need more complex rules, there is always a
choice of using the more complex $banned_namepath_re instead of
the easier to comprehend but less expressive $banned_filename_re.

Mark


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

vB 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 12:44 AM.


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