> 
> I would like to know the easiest way to do the following, 
> which I guess 
> is some sort of selective relaying.
> 
> I want to block a whole domain, say example.com.
> But I would like email for [email protected] and 
> [email protected] 
> to pass through and be relayed to the MTA of that domain.
> 
> I already have functionality to deliver email to the specific domain 
> (debian's hubbed_hosts). It just needs to be done not for the whole 
> domain but selected addresses. Ideally the address should be 
> read from a 
> text file, one address per line.
> 

How about an acl in the rpct part that says something like:

  deny domains = denied.domain.example
       local_parts = !/etc/exim/denyparts

where /etc/exim/denyparts is a file containing the local part of the address 
you want delivered for that domain.
You'll obviously need to place it somewhere within your rcpt acls so that the 
mail isn't already accepted (ie if you have a part that says accept if you're 
sending from certain hosts etc you'll need to put this directive before that).
 John
-- 
## 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