Re: [Exim] spamassassin whitelist

Top Page
Delete this message
Reply to this message
Author: Adam Henry
Date:  
To: exim-users
Subject: Re: [Exim] spamassassin whitelist
Resolution!

I believe that I am correct in that I can't very well filter for a
header that hasn't been placed yet. But, the placement of that header
relies on other variables that can be accessed before the Transport is
entered.

    condition = "${if and { {!def:h_X-Spam-Flag:} {!eq \
      {$received_protocol}{spam-scanned}} {!eq \
      {$received_protocol}{local}} {!eq {${lookup
      {$local_part@$domain} lsearch*@ \
      {/etc/exim/sa_whitelist}{1}{0}}}{1}} } {1}{0}}"


Using this let's me use a single file to accomplish exactly what
SpamAssass's whitelists offer.

hank

On Thu, Oct 31, 2002 at 07:51:45PM -0500, Adam Henry wrote:
> As an exercise to become more familiar with the 'condition =' statement,
> I attempted to configure Exim to do this check itself. However, I don't
> think its possible to check for a header which is added during Transport,
> from a condition inside a Director. Am I missing something, or is this
> a valid statement?