-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 29 Jun 2004 11:15 am, Edwin Humphries wrote:
> WE have a sendmail installation that is trying to process a queue of
> some 1.8 million emails - mostly, as far as I can tell, double
> bounce, virus laden stuff.
>
> Of course, sendmail is going into overload, and slowing the machine
> down enormously, and given that the emails are double-bounce, to no
> avail. But i tried to delete the queue with "rm *" in
> /var/spool/mqueue, but got "Argument list too long".
>
> Can I just delete the mqueue directory? If so, will sendmail re-
> create it on the fly, or do I need to manually re-create it?
Here the way I'd approach it:
1. Stop sendmail (killall -TERM sendmail)
2. Rename the existing queue directory
"mv /var/spool/mqueue /var/spool/mqueue.old".
3. Create a NEW /var/spool/mqueue directory with the same permissions as the
previous one.
4. Restart sendmail.
Now you can do whatever you need to on the /var/spool/mqueue.old directory
and sendmail will just chug along like it always has. Once you've cleaned
up the mqueue.old directory, just copy the queue files over to the
"working" mqueue directory and sendmail will just process them :)
HTH
James
- --
There can be no twisted thought without a twisted molecule.
-- R. W. Gerard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA4MTpwBHpdJO7b9ERAh3tAJ9KqyUQoixuslwGDHrh3YwSi3ePlACfYUvC
XqFyNwjxQov7FZr/OFI5n5M=
=AN34
-----END PGP SIGNATURE-----
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html