There are two ways to do it, depending on how you have tcpwrappers set
up. If you have it set up to use only one file, you ought to have
something like:
/etc/hosts.allow:
exim : <client_list> : <allow_or_deny>
For example:
exim : LOCAL 192.168.0. .friendly.domain special.host : ALLOW
exim : ALL : DENY
This allows connections from local hosts (chiefly `localhost'), from
the subnet 192.168.0.0/24, from all hosts in *.friendly.domain, and
from a specific host called special.host. All other connections are
denied.
If you have tcpwrappers set up to use two files, use the following:
/etc/hosts.allow:
exim : <client_list>
/etc/hosts.deny:
exim : <client_list>
Read the hosts_access(5) man page for more ways of specifying clients,
including ports, etc., and on logging connections.
--jim
%%%%%%%%%%%%%%% jim knoble %%%%%%%% jmknoble@??? %%%%%%%%%%%%%%%%%
On Tue, 14 Jul 1998, Philip Hazel wrote:
: On Tue, 14 Jul 1998, Pollywog wrote:
:
: > Do you mean hosts.deny and hosts.allow? Do I need to put exim in those files
: > the way and did for proftpd, in.telnetd and friends?
:
: Yes, ISTR those are the names. You have to put something in those files.
: I cannot now remember - I got all the info out of the tcpwrappers
: distribution when I was testing the code for Exim that was sent to me by
: an Exim user. I guess I should have saved it for the FAQ, but I didn't.
:
: --
: Philip Hazel University Computing Service,
: P.Hazel@??? New Museums Site, Cambridge CB2 3QG,
: ph10@??? (sic) England. Phone: +44 1223 334714
:
:
: --
: *** Exim information can be found at http://www.exim.org/ ***
:
--
*** Exim information can be found at
http://www.exim.org/ ***