Re: [Exim] ACL idea/question

Etusivu
Poista viesti
Vastaa
Lähettäjä: Philip Hazel
Päiväys:  
Vastaanottaja: Dave C.
Kopio: exim-users
Aihe: Re: [Exim] ACL idea/question
On Wed, 12 Jun 2002, Dave C. wrote:

> Is there a way to test how many instances of a header are defined, from
> an ACL?


No. Well, not easily. I can think of a couple of fudges...

> If a warn item in an ACL sets a header, is that header visible to ACL
> items following it?


No. But all the warnings added by RCPT ACLs are visible in a subsequent
DATA ACL.

> My idea is to setup a simple scoring system for the various DSBLS, right
> in an ACL..
>
>
> several
>
> warn    dnslists = blah...
>    message = "X-RBL-Warning: ..."

>
> warn    dnslists = blah...
>    message = "X-RBL-Warning: ..."

>
> warn    dnslists = blah...
>    message = "X-RBL-Warning: ..."

>
> and then a
>
> deny    condition = {$if <count of X-RBL-warning headers inserted? > X {yes}{no} }


This might work if you put the "deny" in the DATA acl. But you'd have to
figure out how to do the counting...

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.