[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] clear mailq
- Subject: Re: [cobalt-users] clear mailq
- From: Parker Morse <morse@xxxxxxxxxxx>
- Date: Mon Dec 9 07:56:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Saturday, December 7, 2002, at 02:23 PM, Gregg1492@xxxxxxx wrote:
Would someone please either send directions on how to clear the mailq or
suggest another way to stop the problem.
Does your ability to see "mailq" mean you have CLI (SSH) access to your
server? You imply that. You can clear the queue pretty easily from the
command line, as root (I've removed email addresses below, but otherwise
this is cut-and-paste):
[root mail]# mailq
/var/spool/mqueue/q1 is empty
/var/spool/mqueue/q2 (1 request)
----Q-ID---- --Size-- -----Q-Time-----
------------Sender/Recipient------------
gB4KIAw18128 642 Wed Dec 4 15:18 <x@xxxxx>
(Deferred: Name server: x.x.net.: host name lookup)
<x@xxxxx>
/var/spool/mqueue/q3 (1 request)
----Q-ID---- --Size-- -----Q-Time-----
------------Sender/Recipient------------
gB5KRaw15024 1405 Thu Dec 5 15:27 <x@xxxxx>
(Deferred: Connection refused by x.x.edu.)
<x@xxxxx>
/var/spool/mqueue/q4 is empty
Total Requests: 2
[root mail]#
Notice I've got two files in the mail queue. There are four queue
directories here - /var/spool/mqueue/q1 through q4. My queued messages are
in q2 and q3. Their file names are under the "Q-ID" column of the mailq
output. So I could remove them from the queue with the following commands:
[root mail]# rm /var/spool/mqueue/q2/gB4KIAw18128
[root mail]# rm /var/spool/mqueue/q3/gB5KRaw15024
...and I'd have an empty queue.
Make sense?
Of course, if you've really got 84 pending messages, I suspect that the
queue itself is a symptom of a larger problem!
pjm