Re: [exim] Blocking outbound email - restricting to certain …

Top Page
Delete this message
Reply to this message
Author: Lena
Date:  
To: exim-users
Subject: Re: [exim] Blocking outbound email - restricting to certain domains
> From: Ben

> I would like to restrict all SMTP and local submission to be able to
> send mail to certain domains ONLY.
>
> E.g. only allow sending/relay to example.com, example1.com,
> example2.com, nothing else.


> From: Viktor Dukhovni


> Instead of using ACLs, which seem sensibly to apply primarily to SMTP,
> use an Exim "router" to deliver the desired domains normally, while
> routing everything else to the bit bucket.


> You should be able to use the append transport with a destination
> file of /dev/null for all domains except those that you want to be
> handled normally.


...
domainlist good = example.com : example1.com : example2.com
begin acl
...

begin routers
discard:
driver = redirect
domains = ! +good
data = :blackhole:

...