Re: [exim] What is the easiest way to block email based on b…

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: jori.hamalainen
CC: exim-users
Assumpte: Re: [exim] What is the easiest way to block email based on body text?
On Fri, 7 Jul 2006, jori.hamalainen@??? wrote:

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


Use a MIME ACL (set by smtp_acl_mine) and a mime_regex condition. That
way you can also deal with encoded bodies. Or if that isn't relevent,
just an ordinary regex condition.

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book