Hi All,

I'm trying to add a *simple* SPAM filter rule to exim:

  drop    message   = Subject is know SPAM email, ignoring
          log_message = Message dropped because of know SPAM Subject
          condition = ${if >{${strlen:$h_subject:}}{20}{yes}{no}}
          condition = 
${lookup{"$h_subject:"}lsearch{/etc/exim/lists/subject.droplist}{yes}{no}}

I have the following:

[root@ollie2 lists]# cat subject.droplist 
This is a test subject
[root@ollie2 lists]# 


However, when I send a test email, it is allowed through and gets delivered. 
Can someone please tell me what I've done wrong, and how to fix it.

Gary

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to