[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] I've been spammed; how to flush RAQ4 mqueue?



> > >I've just discovered that one of my users has installed a spamming cgi
> > >program in his account which has been sending out emails. I
> > >have suspended this script, however there are still hundreds of
> > messages in
> > >the mqueue. I have temporarily disabled the mail server within the web
> > >interface until I can work out how to delete/flush the mailqueue. I
> > have tried
> > >issuing the command /usr/sbin/sendmail -q however this does not appear
> > to work. Can
> > >anyone help me?
> >
> > The last time I encountered this problem, I used the method described in
> > the sendmail
> > documentation that can seen here:
> > http://www.sendmail.org/~ca/email/doc8.9/op-sh-2.html#sh-2.3.2
> >
> > It works, I've done it exactly as described on this page.....
> 
> yuck... thats kinda messy.  I don't like to move directories like that as it
> has a tendency to break the "cobalt way" depending on the directory.
> Just make sure sendmail isn't running with ps -aux and then cd
> /var/spool/mailq
> and then rm -rf * and restart sendmail.... I guess you could also make a
> directory somewhere like /home/spamq and then mv * /home/spamq
It may well be messy, it certainly gave me pause for thought when I had to
do it but on the Qube2 it broke nothing I am relieved to report.
I knew of no other way when I ran into the problem, so all I could do was:
1. RTFM
2. Do the method
3. RTFM again (just in case I'd done anything wrong, but by this time it
would be too late anyway)
4. restart sendmail
5. send some mail, get some mail, see if all was OK
6. Laugh like someone deranged, (by that time I was!)
7. Consume many beers, feel (temporarily) like a guru, wait for "the other
show to drop" to wipe away any small amount of self confidence one small
victory tends to impart.
Oh wait...dangit....1-7 was only tangentially related to "the use and
enjoyment of cobalt products" am I gonna get whacked by the list police
for illegal use of O/T ASCII?? 
Regards to all from snowy Westchester County, NY
-Colin