Forum Moderators: phranque
1) Sendmail starts rejecting connections on the daemon MTA and/or
2) my RH7.2 server starts killing other processes to make room
I don't mind situation (1), as it resolves itself after dealing with the spam, but (2) is a real problem because the processes that die include (in usually something like this order) spamassassin, procmail, httpd, mysqld, sshd and others.
Since I have various ways of accessing the server I can get everything started back up again with some effort and frantic typing, but I'm wondering if there is a way to tell sendmail to just kill itself when it goes beyond rejecting connections due to an excessive load instead of killing the box, and then do a sendmail restart after a couple of minutes or something.
I appreciate any advice.
my RH7.2 server
Since Redhat v7.2 shipped over five years ago, isn't it a little out of date by now? Have you considered updating to a more recent version/distribution? More recent kernels have much better memory management, among other things.
IMHO Sendmail is perhaps not the best MTA to use. There are many others - Exim and Postfix spring to mind. IMHO either of these would handle the load better.
webdoctor ... you're right ... what can I say? I suppose I should take the time to upgrade the kernel, at least. On this box, though, I'll leave sendmail as the MTA, for now. Thanks.
Currently my system starts refusing connections at a load of 12-15 requests per second (dep. on memory available), but that only works for about 20 (dep. on how long the bulk of the 'attack' lasts) seconds before processes start dying.
I'm going to test j-chkmail (see the link in the Jose Marcio's sig) and see if it's appropriate for a 'normal' production mail server. If this thread's still alive, I'll post results.
Fortunately, most of these spam DoS attacks aren't that huge (500 or so requests), so it doesn't trip the switch that often. (Spammers seem to be getting smaaaaaht ... not enough to trip most switches, but plenty irritating.)