Re: [Exim] Block mail from specific sender if too much recip…

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Andreas Edler
CC: exim-users
Subject: Re: [Exim] Block mail from specific sender if too much recipients
On Tue, 26 Jun 2001, Andreas Edler wrote:

> >> I'm searching for a method to block/bounce email if it comes
> >> from a specific sender address (www@some_home) and is sent
> >> to more than x recipients.
> >
> > You can discard it in a system filter in Exim 3. In Exim 4 it will be
> > possible to cause an SMTP rejection after the DATA phase.
>
> I didn't use filter yet, so can you provide me a little
> code snip so I know how to start?


# Exim filter

if $sender_address is www@some_home and
$recipients_count is above 10
then
seen finish
endif

See doc/filter.{txt,ps,etc} for filter documentation.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.