Re: [exim] Bloqued destinatario

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Adriano Anselmo
Date:  
À: exim-users, Adriano Anselmo
Sujet: Re: [exim] Bloqued destinatario
Thanks

: )





2011/1/24 Phil Pennock <exim-users@???>

> 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@??? <exim%2Btag@???>". 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
>




--
Adriano Anselmo