Re: [exim] Negating Match condition

Startseite
Nachricht löschen
Nachricht beantworten
Autor: John Hall
Datum:  
To: Exim-users
Betreff: Re: [exim] Negating Match condition
On Fri, Feb 29, 2008 at 7:49 PM, Terry Calie
<eximlearning@???> wrote:
> I have a catchall address, but want to block certain addresses that get
> nothing but large amounts of spam.
>
> I tried adding the following "verify_only" condition, that checks for a
> user file, and then looks in the file to see if the email address is to
> be blocked.
>
> The block simply contains two lines:
> blocked_email_address_01:1
> blocked_email_address_02:1


Terry,

I do something similar for a single domain. My router looks like this:

block_addresses:
driver = redirect
domains = jdh28.co.uk
verify_only = true
allow_fail = true
condition = ${lookup {$local_part} lsearch
{/etc/mail/localparts.bad}{yes}{no}}
data = :fail: unknown user

and /etc/mail/localparts just has a list of bad localparts excluding the domain.

Cheers,
John