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

Re: [cobalt-users] Flushing mail queue on Qube3



On Tue, 22 Apr 2003, James Nesbitt (IHQ Network) wrote:

> How do I flush the outgoing email queue on the Qube3?
>
To send the email from the 'q' issue the following an watch the email go
out.
  sendmail -q; tail -f /var/log/maillog

There may be undeliverable or old mail stuck in the q
In that case run
  sendmail -bp or mailq to see if all mail went out.

if the 'q' is not empty;
  /etc/rc.d/init.d/sendmail stop

Look at the email in the queues,
If it is all bad or more than 4 days old
delete the q's;   rm /var/spool/mqueue/q1 then q2, q3, q4

  /etc/rc.d/init.d/sendmail start

Be VERY careful doing this on an active server as you can
remove valid email, makes people unhappy. Remember that
somebody's email server may be down, and the email is queued
waiting for that server to come up.

If you search google you will find some scripts for cleaning up mail
queues. Here is one!

http://www.patoche.org/LTT/daemon/00000073.html

ALWAYS shut sendmail down when removing emails from the queues

Gerald
--
http://frontstreetnetworks.com | http://store.raqware.com
  Front Street Networks LLC, 229 Front Street, Ste.#C
  New Havem, CT 06513-3203 | phone: +1-203-785-0699