[exim] File extension filter not work

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Cédric MARCOUX (sprimont)
Datum:  
To: exim-users
Betreff: [exim] File extension filter not work
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

------------------------------------------------------------------------------------------------------------
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
   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}}



   # Reject messages that carry chinese character sets.
   # WARNING: This is an EXAMPLE.
   deny message = Sorry, noone speaks chinese here
        condition = ${if eq{$mime_charset}{gb2312}{1}{0}}


accept

acl_check_data:

#SIB
# Accepte sans scanner par SpamD tous les messages superieur a 200k
accept condition = ${if >{$message_size}{200k}{1}{0}}

   # Deny if the message contains a virus. Before enabling this check, you
   # must install a virus scanner and set the av_scanner option above.
   #
   deny    malware   = */defer_ok
   warn    malware   = */defer_ok
           message   = This message contains a virus ($malware_name).


   # On ajoute les commentaires de SpamAssassin meme si ce n'est pas un Spam
   warn    message   = X-Spam-Score: $spam_score ($spam_bar)
           spam      = nobody:true/defer_ok
   warn    message   = X-Spam-Report: $spam_report
           spam      = nobody:true/defer_ok



   # Add headers to a message if it is judged to be spam. Before 
enabling this,
   # you must install SpamAssassin. You may also need to set the 
spamd_address
   # option above.
   #
   warn    spam      =  nobody/defer_ok
           message   =  X-Spam_score: $spam_score\n\
                        X-Spam_score_int: $spam_score_int\n\
                        X-Spam_bar: $spam_bar\n\
                        X-Spam_report: $spam_report\n\
                        X-Spam-flag: YES\n\
                        Subject: *!SPAM!* $h_subject:


   deny    message   =  This message scored $spam_score spam points.
           spam      =  nobody:true/defer_ok
           condition =  ${if>{$spam_score_int}{30}{1}{0}}


   #SIB
   #Rejet VIAGRA
   deny  message = This message matches a blacklisted regular expression
           regex   = [Vv] *[Ii] *[Aa] *[Gg] *[Rr] ][Aa]


# Accept the message.

accept
------------------------------------------------------------------------------------------------------------

Thanks!!!