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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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/ |