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

Top Page

Reply to this message
Author: Bruce Richardson
Date:  
To: exim-users
Subject: Re: [Exim] ACL to ALLOW only mentioned attachments type and block *
On Fri, Mar 26, 2004 at 12:26:25PM +0000, Tim Jackson 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?


Would that reject messages with no attachment?

How about this:

deny message = Bad attachment
     demime = *
     condition = ${if eqi {$found_extension}{txt} {no}{yes}}




--
Bruce

Bitterly it mathinketh me, that I spent mine wholle lyf in the lists
against the ignorant. -- Roger Bacon, "Doctor Mirabilis"