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

Top Page

Reply to this message
Author: Dilip M
Date:  
To: Tim Jackson, exim-users
Subject: Re: [Exim] ACL to ALLOW only mentioned attachments type and block *
On Fri, 26 Mar 2004 12:26:25 +0000, Tim Jackson <lists@???> wrote:

> Hi Dilip, on Fri, 26 Mar 2004 17:56:57 +0530 you wrote:
>
>> Can i write a ACL which allows only specified attachments type and
>> BLOCKS all *
>
> I'm wildly guessing here, as I haven't tried to see if this actually
> works
> with the way Exiscan hooks into the ACLs, but how about:
>
> deny message = Bad attachment
>      !demime = txt

>
> if you only wanted to allow attachments with a "txt" extension?
>
> Tim


That WORKS !!! BUT STRANGE thigs is happening...

To test,i just changed to & did kill -HUP `pgrep exim`
---
deny message = Bad attachment
!demime = gif:txt
---

Now when i tried to send doc,jpeg, etc it was denied!!

I also tested sending GIF file..it came through....

But when i was trying to send a blank mail,it rejected !!!!

Only those attachments are allowed and rest all (INCLUDING blank/plain
mail) is being REJECTED !!!!

This is main.log
-----------------------------------
2004-03-26 18:24:36 pid 504: SIGHUP received: re-exec daemon
2004-03-26 18:24:36 exim 4.30 daemon started: pid=504, -q10m, listening
for SMTP on port 25 (IPv4)
2004-03-26 18:24:36 Start queue run: pid=1652
2004-03-26 18:24:36 1B6VKL-0000n3-TR Message is frozen
2004-03-26 18:24:36 End queue run: pid=1652
2004-03-26 18:24:46 1B6qrG-0000Qh-45 H=(mail.s7solutions.com)
[202.144.44.94] F=<exim-users-admin@???> rejected after DATA: This
message contains an unwanted file extension () which s7 admin won't like :)
2004-03-26 18:24:51 1B6qrL-0000Qj-Ot H=(bond) [202.144.44.90]
F=<dilipm@???> rejected after DATA: This message contains
an unwanted file extension () which s7 admin won't like :)
-----------------------------------

WELL i'll be awarded a good test engg ;)

-Dilip



-Dilip