Re: [exim] demime condition vs MIME ACL

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Keith Brazington
Data:  
Para: Don Walker
CC: exim-users
Assunto: Re: [exim] demime condition vs MIME ACL
On Mon, 21 Feb 2005 14:10:22 -0600, Don Walker <don@???> wrote:
> In 4.50, I had to specify the WITH_OLD_DEMIME option so my existing checks
> for prohibited attached file extensions would continue to work. But the
> 4.50 spec.txt says the demime condition is deprecated in favor of the MIME
> ACL. However, I can't figure out how to check attached file extensions
> using a MIME ACL. What am I missing? Thanks.
>
> Don Walker
>


Hi Don,

Something like this maybe.

acl_smtp_mime = check_mime

check_mime:
deny message = Executable files not permitted
condition = ${if
match{${lc:$mime_filename}}{\N(\.bat|\.exe|\.pif|\.com)$\N}{yes}{no}}
accept


Keith Brazington
Quetz Limited