How to allow double extension file?

Mike Andrews mikea at mikea.ath.cx
Mon Jul 16 18:17:11 IST 2012


On Mon, Jul 16, 2012 at 09:32:53AM -0700, J Gao wrote:
> Hello,
> 
> We have a client send us email with zipped attachment. It contain files 
> like:
> file1.shp.xml
> file2.kmz.kml
> 
> I added two lines on the bottom of the filename.rules.conf:
> allow   \.shp\.xml$                     -       -
> allow   \.kmz\.kml$                     -       -
> 
> But the MailScanner still detect them as "Bad Filename" and drop them 
> into quarantine:
> 
>   MessageID: 5482680A2.A554E
> Quarantine: /var/spool/MailScanner/quarantine/20120713/5482680A2.A554E
>      Report: MailScanner: Attempt to hide real filename extension (aral.shp.xml)
> 
> 
> 
> How can I let MailScanner know these are safe file name and let them 
> pass through?

Move those two lines from the bottom, after all the "deny" rules, up
before the "deny" rules -- or at least before any "deny" rules which
might match the filenames and cause detection as a bad filename.

-- 
Mike Andrews, W5EGO
mikea at mikea.ath.cx
Tired old sysadmin 


More information about the MailScanner mailing list