Re: [exim] ACL Tricks - text file to block subjects

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Ian Eiloart
Date:  
À: Marc Perkel, exim-users
Sujet: Re: [exim] ACL Tricks - text file to block subjects


--On 29 April 2006 15:20:23 -0700 Marc Perkel <marc@???> wrote:

> Can this be done?
>
> I'f like to have a simple text file with multiple lins containing
> regular expressions or strings so that if the Subject header matches any
> of the strings it will deny the message.
>
> The text file migh look like this:
>
> fuc*ing
> rolex
> online pharmacy
>
> Experimenting with this but it's not working


In what sense is it not working? What error messages have you found?

Can you lay out your code in a more readable way, please?

># - Personal Blackhole List Subject
>
> warn    message = X-Blackhole: Yes
>     log_message = REJECTED - Subject in personal block list - F=$h_From:
> T=$h_X-Recipient:
>         condition = ${if
> exists{/etc/exim/control/domains/${domain:$h_X-Recipient:}/users/${local_
> part:$h_X-Recipient:}/subjectblock.txt}\
>  {${lookup{$h_Subject:}wildlsearch{/etc/exim/control/domains/${domain:$h_
> X-Recipient:}/users/${local_part:$h_X-Recipient:}/subjectblock.txt}{yes}{
> no}}}\     {no}}

>
> Thanks in advance




--
Ian Eiloart
IT Services, University of Sussex