On 2011-01-24 at 09:11 -0200, Adriano Anselmo wrote:
> would like a way to create a filter to block the sending of email from my
> domain to a particular recipient

Let's assume the recipient is [email protected].

Search your config file for the line "begin routers".

After that line, you have the Routers; they are tried in order.

Add a new Router at the top, so that it is the first.

reject_unwanted_recipient:
  driver = redirect
  allow_fail
  data = :fail: Mail to this recipient prohibited by policy
  domains = example.net
  local_parts = evil

That's the simple form done.  It's easy to bypass -- not only could the
evil recipient just create a second email address, but you also need to
know if their mail-system permits sub-addressing.  For example,
"[email protected]".  If so, you need to change the block rule to
support sub-addressing.

If you want to block a list of addresses, then you would replace
domains/local_parts with a "condition" which does the lookup for you.

-Phil

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