Re: [AMaViS-user] Strange problem with .snp files

This is a discussion on Re: [AMaViS-user] Strange problem with .snp files within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; nick wrote: > Gary V wrote: >>>The first 8 bytes of the file are are exactly the ...


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 05-17-2006
Gary V
 
Posts: n/a
Default Re: [AMaViS-user] Strange problem with .snp files

nick wrote:

> Gary V wrote:
>>>The first 8 bytes of the file are are exactly the same as a cab file
>>>(MSCF^@^@^@^@ shows on my vim screen) so I would think file(1) being
>>>able to differentiate it from a .cab file may not look promising.

>>
>>
>> Since it really is a cab file, I guess it should not be
>> differentiated:
>>
>> ~# cabextract need_xcars.snp
>> Extracting cabinet: need_xcars.snp
>> extracting _AccRpt_.snp
>>
>> All done, no errors.
>>
>> ~# cabextract RUNHELP.CAB
>> Extracting cabinet: RUNHELP.CAB
>> extracting runhelp.inf
>>
>> All done, no errors.
>>
>> Gary V



>>

> Where does this leave me exactly?


> Will amavis be able to tell the difference between an snp and a cab, or
> will I have to allow cabs to allow snps?


This sample (same as before but only showing cab/snp) will allow files
with a name that ends in .snp no matter what type of file it really is
under the hood. If a cab file is named anything else, it will be blocked.

# allow files whose name ends in this extension:
[ qr'.\.(snp)$'i => 0 ],

# block - file type determined by file(1) utility:
qr'^\.(cab)$',

);

Gary V



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
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 03:24 PM.


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