[exim] What is the easiest way to block email based on body …

Góra strony
Delete this message
Reply to this message
Autor: jori.hamalainen
Data:  
Dla: exim-users
Temat: [exim] What is the easiest way to block email based on body text?
Hi,

I am using standard Exim 4.10 and I must stop messages with some text in message body from entering the system.

Is this the best way?

split_spool_directory=true

acl_data:
    deny message = Your message contains illegal text
        condition = ${run{grep -q "illegal text" $spool_directory/input/[how to get subdir?]/$messageid-D}{yes}{no}}


or better ideas?