On Tue, Jul 17, 2001 at 03:51:22PM -0700, Adam McKenna wrote:
> On Tue, Jul 17, 2001 at 09:42:14AM -0700, Jon Rust wrote:
> > A user on a mailserver that we secondary for (don't get me started) has
> > been mailbombed. Currently there are literally 10's of thousands of
> > messages in my queue trying to deliver to him. My mail server's running
> > at a oad of 8 right now. How can I clear out all these messages easily?
> > They are all the same size, so I could use find to look through mess for
> > the file names, then remove them from mess, info and remote. Does that
> > work? Should I stop qmail-send before doing this?
>
> Add the domain to virtualdomains, like so:
>
> domain.com:alias-domain
>
> then create ~alias/.qmail-domain-default with a single hash ("#") mark in it.
>
> then add a smtproute to localhost for the domain and restart qmail-send. The
> only problem with this is that all messages for that domain will be deleted,
> not just the person who got mailbombed.
Thanks Adam. Of course, it took many hours to get this from you. The
total count of messages was close to 250,000, and my mail server has
been almost useless today. I used this technique after someone (dek
IIRC) in the #qmail IRC channel pointed me to
http://www.faqts.com/knowledge_base/view.phtml/aid/1443
Anyway, it's been running all day with the new smtproute and the alias
entry. Logs confirm the messages are being "delivered." I'm all the way
down to 140,000 queued msgs now. That's after about 7 hours worth of
processing. For future reference, how unsafe is just removing the files
from mess, info, and remote with qmail running?
sigh...
last pid: 55460; load averages: 8.54, 7.28, 7.94 up 42+00:28:06 17:00:12
181 processes: 2 running, 179 sleeping
CPU states: 81.9% user, 0.4% nice, 9.2% system, 2.7% interrupt, 5.8% idle
Thanks again!
jon