[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Flushing mail queue on Qube3
- Subject: Re: [cobalt-users] Flushing mail queue on Qube3
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue Apr 22 04:12:00 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
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