On Fri, Feb 29, 2008 at 7:49 PM, Terry Calie
<[EMAIL PROTECTED]> 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

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to