Re: [exim] Bloqued destinatario

Top Page
Delete this message
Reply to this message
Author: Phil Pennock
Date:  
To: Adriano Anselmo
CC: exim-users
Subject: Re: [exim] Bloqued destinatario
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 evil@???.

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,
"exim+tag@???". 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