> > Hi there!
> > 
> > I have a setup with qmail and tcpserver. I defined some 
> ip-numbers allowed
> > to relay in tcp.smtp, and the rest should be denied. In 
> most cases, this
> > filter works, but from customers I got the note that 
> sometimes (not always
> > reproducable) they can relay over this server. Is this a 
> bug in tcpserver???
> > The problem is, that the relayclient variable is also set, 
> so that the
> > rcpthosts doesn't work. 
> 
> You should provide more information. Show us the contents of your
> tcp.smtp file. What does your control/rcpthosts file contain? 
> Give us an
> example of a relayed message. Only then can someone give you 
> an answer.

The rcpthosts just contains a list of domains, one per line. The tcp.smtp
file has a format like:

127.0.0.1:allow,RELAYCLIENT=""
195.245.48.:allow,RELAYCLIENT=""
...
:deny

If I put allow into the last line, the RELAYCLIENT variable is set correctly
(depending on IP) and qmail looks at rcpthosts depending on this variable.
The qmail part works fine. My problem is that some ip-numbers like
212.7.136.244 (dhcp-pool of another provider) can sometimes relay without
any problem. This ip-number is _not_ in tcp.smtp. I do not understand this
behaviour. Sometimes you get a message like "The server answered: 0" and the
connection is closed without sending a mail. Even if I try a telnet on port
25 it sometimes works, sometimes it doesn't.

CU,
Holger

Reply via email to