[Pkg-exim4-users] acl_smtp_mail - acl_check_mail on debian Etch

Bill Horne bill at horne.net
Mon Nov 6 16:59:32 CET 2006


Marco Kammerer wrote:

>Hello,
>
>I use a debian testing - etch, with exim 4.63, SA-exim, clamav with the
>split config
>
>The configs are have been minimally changed to support the executable
>blocking
>
>[snip]
>
>What I want is quite simple, blocking a mail with exe and co attachments.
>  
>

Marco,

Try including this segment in your data_local_acl_file in /etc/exim4:

deny message = This message contains malformed MIME ($demime_reason).
     demime  = *
     condition = ${if >{$demime_errorlevel}{2}{1}{0}}

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

HTH.

Bill



More information about the Pkg-exim4-users mailing list