[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Exim4 + Exiscan: demine not catching file extension



I'm testing out exim4-daemon-heavy and I have this ACL:

deny  message = $found_extension files are not accepted here
      demime = com:vbs:bat:pif:scr

I created a mail attachemet with mutt and I'm testing like:

   # exim4 -C test.conf -bhc <some external IP>.1234

and then I paste in a message that has an attachemt within the message:

[munged to bad.xbat from bad.bat to keep the mail server happy]

--ikeVEW9yuYc//A+q
Content-Type: application/x-msdos-program
Content-Disposition: attachment; filename="bad.xbat"
Content-Transfer-Encoding: quoted-printable

hi=0A
--ikeVEW9yuYc//A+q--

I then see this, but it does not seem to reject the "bat" file
extension.

>>> using ACL "acl_check_data"
>>> processing "accept"
>>> check hosts = 127.0.0.1:+relay_from_hosts
>>> host in "127.0.0.1 : ::::1 : 192.168.1.0/24"? no (end of list)
>>> host in "127.0.0.1:+relay_from_hosts"? no (end of list)
>>> accept: condition test failed
>>> processing "deny"
>>> check demime = com:vbs:bat:pif:scr
>>> deny: condition test failed
>>> processing "deny"
>>> check demime = *
>>> check condition = ${if >{$demime_errorlevel}{2}{1}{0}}
>>>                 = 0
>>> deny: condition test faile

What can I do to debug this better?

-- 
Bill Moseley
moseley@hank.org



Reply to: