[exim] ACL Tricks - text file to block subjects

Página Inicial
Delete this message
Reply to this message
Autor: Marc Perkel
Data:  
Para: exim-users
Assunto: [exim] ACL Tricks - text file to block subjects
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

# - 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