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

Marco Kammerer marco.kammerer at uibk.ac.at
Mon Nov 6 17:42:02 CET 2006


Bill Horne wrote:

> Marco Kammerer wrote:
> >
> >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}}
>
Thank you Bill for your feedback.

I figured out what was the real problem. I tested with uuencode from an
other linux box.

that was the problem, the acls where working, but didnt catch the uuencoded
file. I tested it via Windows / Outlook Express and the emails was rejected.

I know that sounds. Whoever, it took me 2 days to discover that.

Marco




More information about the Pkg-exim4-users mailing list