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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Dilip M
Datum:  
To: Dilip M, Tom Kistner, exim-users
Betreff: Re: [Exim] ACL to ALLOW only mentioned attachments type and block *
On Sat, 27 Mar 2004 12:47:38 +0530, Dilip M <dilipm@???> wrote:

> 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}}


TESTED !! NO LUCK :((,all attachments are coming through...


>>
>> 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}}



TESTED !! NO LUCK :((,all attachments are coming through...


>>
>
> 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"
>
> ----------
> Need to upgrade i think :(


Well i upgraded exiscan to now atleast there is no such error :)

# exim -C /etc/exim/exim.conf -bV
Exim version 4.30 #1 built 27-Mar-2004 15:29:23
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 16 (c) Tom Kistner
[http://duncanthrax.net/exiscan/]
Configuration file is /etc/exim/exim.conf
-----------------------------------------------------

-Dilip



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