[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

Zeffie