the fastest possible (the command is under linux) way to effective block is with route
route add -host 18.104.22.168 gw 127.0.0.1
the line in tcp.smtp (and rebuild with qmailctl cdb) also works, but is not as effective as packet filtering - if your server is having a considerable load just to deny the conenctions.
i've been in such trouble - there are guys which are trying to send to womehting like a wordlist of names, one connection per [EMAIL PROTECTED], and the server was about 3 times heavier load than usual - the guy(gal? gay?) was quite fast.
Ok, this might be even faster ;-)
On Wed, 2005-04-13 at 15:13 +0300, Stoyan Marinov wrote:
Add a line like "<ip>:deny" in your tcp.smtp file and rebuild it.
On Wed, 2005-04-13 at 15:08, Manish Jain wrote:
I am facing aproblem that from an IP address SPAM is coming to my qmail server. How I can deny smtp request from a known IP address.
Manish Jain (Network Administrator) C-DAC "Anusandhan Bhawan" C-56/1, Sector-62, Noida- 210307 Ph: 91 120 2402551-60 (Extn.- 718) 91 120 2402563 (Direct)