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
> [EMAIL PROTECTED]" 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        [EMAIL PROTECTED]
                       (No Cc of list mail needed, thanks)

Attachment: signature.asc
Description: This is a digitally signed message part.

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