Re: [Exim] ACL to ALLOW only mentioned attachments type and …

Top Page

Reply to this message
Author: Dilip M
Date:  
To: Tom Kistner, exim-users
Subject: Re: [Exim] ACL to ALLOW only mentioned attachments type and block *
On Fri, 26 Mar 2004 20:23:36 +0100, Tom Kistner <tom@???>
wrote:

> Tom Kistner wrote:
>
>> deny message = We only allow .zip and .pdf file attachments
>>      !condition = $mime_is_rfc822
>>      !condition = ${if eq{$mime_content_disposition}{inline}{1}{0}}
>>      condition = $mime_filename
>>      condition = ${if match \
>>                         {${lc:$mime_filename}} \
>>                         {\N(\.zip|\.pdf)$\N} \
>>                      {1}{0}}

>
> Brain fart. This must be:
>
> deny message = We only allow .zip and .pdf file attachments
>       !condition = $mime_is_rfc822
>       !condition = ${if eq{$mime_content_disposition}{inline}{1}{0}}
>       condition = $mime_filename
>       !condition = ${if match \
>                          {${lc:$mime_filename}} \
>                          {\N(\.zip|\.pdf)$\N} \
>                       {1}{0}}

>
>
>


i got the error saying :

2004-03-27 12:40:21 1B6VKL-0000n3-TR Message is frozen
2004-03-27 12:40:21 End queue run: pid=5403
2004-03-27 12:40:28 1B77xc-0001PC-JN H=(bond) [202.144.44.90]
F=<dilipm@???> temporarily rejected after DATA: failed to
expand ACL string "${if eq {$mime_content_disposition}{inline}{1}{0}}":
unknown variable name "mime_content_disposition"
--------
Well mine is
[root@exim root]# exim -V
exim abandoned: unknown, malformed, or incomplete option -V
[root@exim root]# exim -bV
Exim version 4.30 #1 built 10-Mar-2004 12:35:24
Copyright (c) University of Cambridge 2003
Berkeley DB: Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)
Support for: iconv() OpenSSL
Lookups: lsearch wildlsearch nwildlsearch dbm dmbnz mysql
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir autoreply pipe smtp
Fixed never_users: 0
Contains exiscan-acl patch revision 14 (c) Tom Kistner
[http://duncanthrax.net/exiscan/]
Configuration file is /etc/exim/exim.conf

----------
Need to upgrade i think :(

-Dilip



--
I was born intelligent .... education ruined me.
--------