[AMaViS-user] discard these?

This is a discussion on [AMaViS-user] discard these? within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; We've had a rule in place (in $banned_namepath_re) to block zip files by name. Trying to do it in ...


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 08-01-2007
Amos
 
Posts: n/a
Default [AMaViS-user] discard these?

We've had a rule in place (in $banned_namepath_re) to block zip files
by name. Trying to do it in amavisd-new (instead of postfix) so that
if it was something legit, we could at least release it from the
quarantine. Because it's generally not a good idea to just /dev/null
folks' email, had banned files do a BOUNCE.

$final_banned_destiny = D_BOUNCE;

Well, then came the stock scams that were zipped. That subsided, but
now it's this strange business of zip files that are really rar. Any
way to just DISCARD these instead?

BANNED: P=p003,L=1,M=multipart/mixed |
P=p002,L=1/2,M=application/octet-stream,T=rar,N=Text.zip

Would it be something like this?

#### stock spam mess.
[ qr'(?# ZIP THAT IS REALLY RAR)
\A (.*\t)? T=rar
\t(.*\t)* N= [^\t\n]* \. zip
(\t.*)? $'xmi => 'DISCARD' ],

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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 10:38 AM.


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