Re: [exim] File extension filter not work

Top Page
Delete this message
Reply to this message
Author: Magnus Holmgren
Date:  
To: exim-users
Subject: Re: [exim] File extension filter not work
On Monday 07 August 2006 16:11, Cédric MARCOUX (sprimont) took the opportunity
to say:
> Hi!
> Just wonder why these ACL does not reject some file extension???
> When I was using old demime, all was working perfectly, since I have to
> change to new ACL statement, I can still send exe,com,bat....
> Any idea?
> I use Exim 4.62 with content scan activated in compilation


I think the problem is that you use the demime condition in the acl_smtp_mime
ACL.

> ---------------------------------------------------------------------------
>--------------------------------- acl_check_mime:
>
>    # Decode MIME parts to disk. This will support virus scanners later.
>    warn decode = default

>
>
>    # File extension filtering.
>    deny message = Blacklisted file extension detected ($found_extension)
>    demime        = */defer_ok

Delete the previous line.
>    condition = ${if match \
>     {${lc:$mime_filename}} \
>     {\N(\.exe|\.scr|\.vbs|\.pif|\.bat|\.scr|\.lnk|\.com)$\N} \
>     {1}{0}}

>
>    deny message = Found MIME error ($demime_reason).
>          demime = */defer_ok
>       condition = ${if>{$demime_errorlevel}{2}{1}{0}}


This one goes in the acl_smtp_data (and/or acl_not_smtp_data) ACL
(acl_check_data), if you're not going to get rid of demime conditions
completely.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)