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


-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to