On Tue, 2010-04-13 at 11:49 -0700, Jeroen van Aart wrote:
> 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.

echo 'example.com: !rcpt1 : !postmaster : *' > /etc/exim/reject-example

And in your rcpt acl, 
  deny senders = @@lsearch;/etc/exim/reject-example
       message = Don't want to relay for that recipient.


Not entirely sure about the need for ': *' in the lookup file, but
something along those lines should work and be extensible to multiple
domains if you require it.

-- 
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation


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