I think this may be your problem. See the following from the man page for
hosts.allow ?
The access control software consults two files. The search
stops at the first match:
o Access will be granted when a (daemon,client) pair
matches an entry in the /etc/hosts.allow file.
ie You have set ALL for the 192.168.0.0 network which seems to indicate
that your host names on the next line will not get a look in. Why not put
your "ALL" catch line after the tcp-env line and see what happens ?
On Tuesday, May 11, 1999 9:08 AM, Jari Tenhunen
[SMTP:[EMAIL PROTECTED]] wrote:
> On Tue, 11 May 1999, Wilson Fletcher wrote:
[...]
> Booting was unnecessary. hosts.{allow, deny} are read every time tcpd is
> executed ie. when a daemon is started by inetd. So the changes take place
> right away.
Sure I take your point but then it is working for me. I did have problems
but they were solved when I carefully reread the FAQ and made sure I
implemented everything exactly. As mentioned I did need to restart despite
what I thought about not needing to. This may be because inetd was not
-HUP'ing my qmail-smtp .... not sure ...
>
> Anyway, back to my problem.
> Has anyone succesfully configured selective relay with tcp_wrappers ??
> Or do I have to install tcpserver ??
YES, I have configured it and I have not used tcpserver. I used tcp
wrappers and inetd.
There are some notes in some FAQ or HOWTO (can't remember) about some
versions of linux shipping tcp wrappers but not having the necessary
options compiled in. Mine was fine though and I'm using RedHat 5.1
> > > qmail-smtpd to relay without reading rcpthosts... Do I have to
recompile
> > > tcp_wrappers or something ??
There is a note somewhere about needing to in some cases. Mine was fine
with RH5.1
> > > However, there seems to be something odd in the way
qmail-smtpd
> > > behaves: After putting "all: all:deny" into /etc/hosts.deny
My hosts.deny is empty. My hosts allow only has the tcp-env line in it. See
my note about about the order of your hosts.allow lines.
My configs:
inetd.conf:
smtp stream tcp nowait qmaild /usr/sbin/tcpd
/var/qmail/bin/tcp-env /var/qmail/bin/qmail-smtpd
hosts.allow:
tcp-env: 192.168.1. , 192.168.2. , 192.168.3. ,: setenv=RELAYCLIENT
This is the only line my hosts.allow file contains (try it on it's own).