Re: [exim] Is it possible to deny IP range in Exim?

Top Page
Delete this message
Reply to this message
Author: Andreas Metzler
Date:  
To: exim-users
Subject: Re: [exim] Is it possible to deny IP range in Exim?
mkp_71 <mkp_71@???> wrote:

> Hi , is it possible to deny IP range(like 192.168.0.0/16) in Exim? Something
> like this:


> begin acl


> accept hosts = :
> deny hosts = /etc/exim/blacklist #my own blacklist


Hello,

I am not 100 % sure, but I think this should work exactly the way you
suggested.

<mode="reading the fine manual">
The argument to "host =" is a accepts a hostlist
http://docs.exim.org/current/spec_html/ch40.html#SECTaclconditions and
hostlists can contain filenames
http://docs.exim.org/current/spec_html/ch10.html#SECTfilnamlis network
ranges are specified as 192.168.0.0/16
http://docs.exim.org/current/spec_html/ch10.html#SECThoslispatip
</>
cu andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'