[exim] How can a set up a ACL rule to filter on message subj…

Top Page
Delete this message
Reply to this message
Author: John M Collins
Date:  
To: exim-users
Subject: [exim] How can a set up a ACL rule to filter on message subject?
Please CC me as I'm not subscribed - thanks.

I should like to look up message subjects in a file of regexps of spam
message subjects like v[1i][a@]gr[a@]

I've tried:


deny   condition  = ${lookup{"$h_subject"} nwildlsearch{CONFDIR/Bad-subject}{1}{0}}
       message    = Message subject line $h_subject looks like spam.\n\
                    Please change subject and resend if not.



But I get the error message


... temporarily rejected after DATA: failed to expand ACL string "${lookup{"$h_subject"} nwildlsearch{/etc/exim4/Bad-subject}{1}{0}}": missing lookup type


Maybe I don't need {1}{0} but it doesn't seem to make any difference.

Please could someone explain where this is going wrong - I've tried
"lsearch" temporarily but I still get the same error.


John Collins Xi Software Ltd www.xisl.com