Re: [exim] Bloqued destinatario

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Phil Pennock
Data:  
Para: Adriano Anselmo
CC: exim-users
Asunto: 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