[Exim] FW: bombarded with Medication - follow up

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Thomas Kinghorn
Date:  
À: Exim-Users (E-mail)
Sujet: [Exim] FW: bombarded with Medication - follow up
> Hi List
>
> is there a way to check for specific words in the message body in the
> ACL_check_data
>
> I was thinking of something like
>
>  # Reject message containing specific blacklisted words
>   deny  message = This message contains blacklisted words.
>         demime = *
>         condition = ${if ($message_body)contains
> {lsearch;/usr/exim/blocked-words/blockedwords}{1}{0}}

>
> where blockedwords is a list of Medicines etc..., for example
>

This did not work.

If I add the system filter:

if $message_body: contains "Vioxx"

it works.

Now, is there a way to get the system filter to lsearch a file?
eg

if $message_body: contains
{lsearch;/usr/exim/blocked-words/blockedwords}{$value}}

thanks in advance.

Tom