[exim] Strange attachment scanning results

Top Page
Delete this message
Reply to this message
Author: Craig Jackson
Date:  
To: Exim-users
Subject: [exim] Strange attachment scanning results
Hi,

I use Exiscan with Exim v. 4.62. I am experiencing very strange
attachment scan. There is a test as follows in the check_mime acl:

warn     condition = ${if or \
    { { >{$message_size}{1536k}} 
    { and { \
    { >{$message_size}{128k}}
    { eq{${lookup mysql{MYSQL_BIGSENDERS}}}{$sender_address}}} 
    }}{1}{0}}
      condition = ${if
match{${lc:$mime_filename}}{\N^(?>.*)(?<=wma|jpg|jpeg|pps|ppt|gif|png|wm
v|mpg|mp3|mpeg|avi|wav|bmp|mov|asf|asx)\N}{1}{0}}
      set acl_m7 = 1


This works perfectly except for one sender whose over-sized emails never
trigger this warn. If I cut and paste the sender's email and send it
myself, it also does not trigger a warn. So I figure the sender's emails
have some kind of cruddy headers for the attachments. Here are some of
the headers:


------_=_NextPart_002_01C722DB.54957A22--

------_=_NextPart_001_01C722DB.54957A22
Content-Type: image/gif;
    name="ATT390607.gif"
Content-Transfer-Encoding: base64
Content-ID: <002c01c72201$24f5d1f0$0500a8c0@mainbox>
Content-Description: ATT390607.gif
Content-Location: ATT390607.gif


PICTURE...

------_=_NextPart_001_01C722DB.54957A22
Content-Type: image/jpeg;
    name="ATT390608.jpg"
Content-Transfer-Encoding: base64
Content-ID: <002e01c72201$24f5d1f0$0500a8c0@mainbox>
Content-Description: ATT390608.jpg
Content-Location: ATT390608.jpg


PICTURE...

Thanks.
Craig Jackson