Re: [Exim] RBL filtering on a per-user basis

Top Page
Delete this message
Reply to this message
Author: Steve Haslam
Date:  
To: exim-users
Subject: Re: [Exim] RBL filtering on a per-user basis
On Fri, Jun 22, 2001 at 05:57:32PM -0400, Rick Byers wrote:
> So far I've enabled RBL checking in Warning (X-RBL-Warning header) mode.
> I was thinking of setting up a system-wide per-address filter which would
> fail all messages with an X-RBL-Warning header EXCEPT when the $local_part
> matches one from a list. Will this work? Is there a better way?


You can do this in the system filter, sth like:

if $header_x-rbl-warning: is not "" and "${lookup{$local_part}cdb{/etc/exim/rbl_exceptions.cdb}{yes}{no}}" is "no" then
fail "Not welcome"
endif

(I haven't tested this, so the syntax could be way out, but in
principle it ought to work)

maybe you can use a director with a condition instead of using the
system filter. choices....

SRH
-- 
+              Steve Haslam              |       W: +44-20-7447-1839       +
+      Software Engineer, Excite UK      |       M: +44-7775-645618        +
.    Spare a thought for me because I see the things that you don't see    .