Richard, > We have a problem that some attachments are being blocked as banned by > our amavis. The extension that is in the zip file is : .mexw32 > This is a file that matlab uses. (don't know the details) > Amavisd and linux see this file as a dll. dll is being blocked, so that > is correct. > file1.mexw32: PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit
> Is there a way to allow this specific file ? (maybe just on extension > name ?) If matching by extension is acceptable, this is probably the easiest. > [ qr'^\.(rpm|cpio|tar|mexw32)$' => 0 ], # allow any in unix-type archives > > But does not work . Mime type has bigger priority ? It does not work because the rule requires the filename for filetype to be exactly '.mexw32', i.e. should start with a dot. The rule is geared towards matching file types, not names. What you want is avoid anchoring a dot to the beginning (^) of a name: [ qr'\.mexw32$' => 0 ], Mark ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/