Re: [exim] Block forwarding to certain domains

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Magnus Holmgren
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Block forwarding to certain domains
On fredagen den 24 oktober 2008, Vlasta Malinek wrote:
> Hello,
>
> I have a requirement to block forwarded email to certain domains.
>
> If for instance the .forward says something like: "deliver
> a.person@???" I need to be able to stop it and return a message to
> the sender.
>
> I've set up a list of domains I can search from the userforward: router
> but whatever conditions I try in userforward: I can't get it to work


Try checking $parent_domain in the lookuphost router and possibly other
external routers. If it indicates forwarding, check $domain. Or set
address_data in the userforward router and check $address_data and $domain in
the lookuphost router. Or set redirect_router on the userforward router to a
special-purpose redirect router that checks the target domain and :fail:s if
prohibited and redirects to the same address if OK.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)