[AMaViS-user] Problems blocking attachments by extension

This is a discussion on [AMaViS-user] Problems blocking attachments by extension within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Hello, I'm trying to block some file extensions and use a code like this: $banned_namepath_re = new_RE( qr'(?# BLOCK COMMON ...


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 04-28-2008
Renato Botelho
 
Posts: n/a
Default [AMaViS-user] Problems blocking attachments by extension

Hello,

I'm trying to block some file extensions and use a code like this:

$banned_namepath_re = new_RE(
qr'(?# BLOCK COMMON NAME EXENSIONS )
^ (.*\t)? N= [^\t\n]* \. (pif|scr|doc) (\t.*)? $'xmi,
);

%banned_rules = (
'DEFAULT' => $banned_namepath_re,
);

But the email containing the .doc file is delivered and Passed CLEAN
without problems. Am i doing anything wrong? I've double checked it
and couldn't find the problem.

Thank you
--
Renato Botelho

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757...un.com/javaone
_______________________________________________
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 02:51 PM.


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