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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: jori.hamalainen
Date:  
À: exim-users
Sujet: [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?