Re: [AMaViS-user] What is used to determine if an archive is

This is a discussion on Re: [AMaViS-user] What is used to determine if an archive is within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Jan, > I have the following rule in my amavis config to block undecipherable > archives: > > # # block if ...


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 06-15-2006
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] What is used to determine if an archive is

Jan,

> I have the following rule in my amavis config to block undecipherable
> archives:
>
> # # block if any component can not be decoded (is encrypted or bad archive)
> qr'(?# BLOCK IF UNDECIPHERABLE ) ^ (.*\t)? A=U (\t.*)? \z'xmi,
>
> But when I send a corrupt test zip archive (if you want the attachment,
> please email me) through amavis, it is not blocked. I created the corrupt
> test zip archive by taking a valid zip file, opening it in notepad and
> deleting a couple of lines. When I open the resulting zip in winzip I get
> an error that the zip file is corrupt.
>
> Amavis logs the following debug lines (it gives an io error when
> decompressing the zip):


> So my question is how amavis determines if a file is undecipherable? And
> why was the corrupt zip file not blocked?
>
> I have also tested with an encrypted zip and in that case the file is
> blocked (amavis determines the file is encrypted and undecipherable).


Please see 'sub do_unzip' in file amavisd.

In 2.4.1 it contains the following two commented-out lines:

# $part->attributes_add('U'); # perhaps not, it flags as **UNCHECKED** too
# # many bounces containing chopped-off zip

So what you expect was there, but turned out to be nonproductive
and was disabled.

Mark



_______________________________________________
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:22 PM.


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