Forum Moderators: phranque
The spam is coming from all over the place, which leads me to believe that they've got a botnet set up sending these outs. I don't think I can just ban a few IP's and be done with it.
Is there any easy way to stop this (I'm thinking not), failing that does anyone know how long these things typically last? I may just ride it out if they'll be done in a day.
First suggestion is to ride it out, it generally stops after a day or two.
Second suggestion is to set up a script that captures IP addresses on the fly and immediately blocks them using IPtables. That seems like a reasonable solution if this carries on.
His third suggestion was to point the MX/mail record over to another IP address where I'm not listening on the mail port. Basically drop all the email, the traffic to my server, and the tying up of my mail program and greylisting. This seems to be another easy solution. Given our recent conversations here about fixing other people's hacked windows computers, perhaps I should redirect my mail records over to the IP address of one of the hacked boxes ;).
Can you not just lose the catch-all? They attract huge volumes of spam, even without a particular domain being targeted.
It's not so much getting the emails in the inbox, it's the large volume has potential to tie up the server due to the small amount of processing X a huge volume of connections.
Before I caught it, the domain did have a catch all that was redirecting to another server. That server was denying because of all the connections from my server, then my server was queuing and caching then resending them again, and so on. That eventually caused a cycle that brought the server down for a bit. My servers is way overpowered so it did recover. And killing the catchall put the server back under regular loads again. the server's fine now despite all the connections.
HELO possible-trigger
MAIL FROM:possible-trigger@example.com
RCPT TO:xckjsdf@example.com
If you drop at that point (possibly before) then processing is likely to be tolerable. It depends what kind of volume you're talking about though I guess. A fairly standard box should be able to handle tens of thousands of those a day without much worry. YMMV of course!