Re: [exim] Block files extentions

Top Page
Delete this message
Reply to this message
Author: Cyborg
Date:  
To: exim-users
Subject: Re: [exim] Block files extentions
Am 30.11.2012 21:56, schrieb Ronaldo Luiz de Carvalho:
> Hi all,
>
>
>
> How could I set exim to block some file extensions like: bat, chm, cmd, cpl,
> exe and others
>
>
>


acl_check_mime:

   # File extension filtering.
   deny message = Blacklisted file extension detected
        condition = ${if match \
                         {${lc:$mime_filename}} \
                         {\N(\.exe|\.pif|\.bat|\.scr|\.lnk|\.com)$\N} \
                      {1}{0}}


accept