On 11 Jun 2011, at 10:18, [email protected] wrote:
> Behaviour we are pursuing with Exim, only for a particular domain:
> 
> Among all the domains that are served regularly, a given domain, and only 
> that domain, needs to  follow an internal messaging system policy, i.e.:
> 
> - No emails can be sent to, nor received from, any other domains, hosted on 
> the same server or elsewhere.
> - Emails regarding that domain are accepted only if sent to, or received 
> from, that particular domain itself.

Personally for a 2 zone setup like this I would consider running 2 separate 
instances of exim on different IP addresses and with separate configuration and 
queues.

However, in either a combined or a split out instances configuration, the way 
you probably want to do this is by making the routers conditional rather than 
applying additional filters, so

# router for restricted domain - this domain can only send or be sent
# to itself
restricted_domain:
  driver = accept
  domains = restricted.doma.in
  senders = *@restricted.doma.in
  transport = local_restricted_delivery

# router for other domains
other_domains:
  driver = accept
  domains = doma1.in : doma2.in # but not restricted.doma.in
  senders = ! *@restricted.doma.in
  transport = local_normal_delivery

and use the same conditions on the general send-elsewhere router

        Nigel.
--
[ Nigel Metheringham ------------------------------ [email protected] ]
[                 Ellipsis Intangible Technologies                  ]



-- 
## List details at https://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