I am attempting to create some rules to help deal with the outbound spam we've seen lately from our customers being compromised. To do this I'm using an Exim filter and checking the subject or content against some common themes.
I believe the best way to handle this would be to use lookahead assertions. If I put the lookahead assertion in quotes it fails to work.
So for example:
$header_subject: matches "^(?=.*WORD1)(?=.*WORD2)(?=.*WORD3)"
I've found examples of lookahead use in the Exim config however I have not found it in use as part of a filter which requires the quotes.
Maybe it's just not possible to use lookahead as part of a filter, or maybe there is even a better way to accomplish what I'm doing.