Auteur: Marc Perkel Datum: Aan: exim-users Onderwerp: [Exim] Smart Readfile for Advanced Spam Filtering
OK - got it all working!!!!! YES!
Why have I been bugging everyone for this? Because it's a very powerful
spam filtering tool. Here's one of 9 filters I've built so far. This
filter wilkl read a text file containing banned links and add a header
if it matches. I then use Spam Assassin to score it.
# Tests for Links to Banned Sites
#
if "$message_body:" matches
\x28http\:\/\/\|mailto\:\x29.{0,15}\x28${sg{${sg{${sg{${readfile{/etc/exim/lists/blocklinks}{|}}}{\\|+}{|}}}{#.*?\\|}{}}}{\\|\$}{}}\x29.{0,10}\/
then
headers add "X-Temp-Blocklink: YES"
endif