MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: suplover on 2013-08-10, 19:46:59

Title: How to clean mail queue
Post by: suplover on 2013-08-10, 19:46:59
Code: [Select]
[root@simonov ~]# /var/qmail/bin/qmail-qstat
messages in queue: 270148
messages in queue but not yet preprocessed: 0
I got serious amount of messages on my mail queue, i will check all clients to find who is responsible for this just "Mail per Client" doesn't response because of high amount of mail but anyway how should i clean mail queue by command ?

i found this "/usr/local/lxlabs/lxadmin/bin/misc/qmHandle -D" but not relevant anymore thanks in advance
Title: Re: How to clean mail queue
Post by: MRatWork on 2013-08-10, 19:54:05
You can delete queue in 'Mail Queue'.

The question is why you have many mail queues. Need inverstigate in 'Mail Queue'.
Title: Re: How to clean mail queue
Post by: suplover on 2013-08-10, 19:59:15
Quote from: "MRatWork"
You can delete queue in 'Mail Queue'.

The question is why you have many mail queues. Need inverstigate in 'Mail Queue'.

but mail Mail Queue also doesn't response i tried already a few time waited for a very long time but don't get result, i will check all clients one by one for sure some of them infected i need to check them and clean but looks like needs to do it manually.

So isn't there any way to clean mail queue by command on ssh? or you suggest to investigate before cleaning?
Title: Re: How to clean mail queue
Post by: MRatWork on 2013-08-10, 20:30:05
You can 'force' deleting with delete all dirs inside /var/qmail/queue/local, /var/qmail/queue/remote and /var/qmail/queue/mess.
Title: Re: How to clean mail queue
Post by: suplover on 2013-08-15, 13:54:58
Quote from: "MRatWork"
You can 'force' deleting with delete all dirs inside /var/qmail/queue/local, /var/qmail/queue/remote and /var/qmail/queue/mess.

Ok i deleted all files on these folders also i believe that i cleaned all infected files on clients which cause this trouble. But now looks like mail function doesn't work, can't receive or send mail at all. While i make cleaning i kept qmail stopped, now i started it again but still can't send or receive.
Title: Re: How to clean mail queue
Post by: MRatWork on 2013-08-15, 16:01:53
Try 'yum reinstall *-toaster; sh /script/fixmail-all; sh /script/restart-mail'.
Title: Re: How to clean mail queue
Post by: suplover on 2013-08-15, 17:32:43
Quote from: "MRatWork"
Try 'yum reinstall *-toaster; sh /script/fixmail-all; sh /script/restart-mail'.

Perfect! Thanks!