Qmail Queue Stuck: How to Clean Qmail Queue Quickly

Stop Qmail Server Processes for my plesk dedicated server: How to empty qmail queue, how to clean Qmail queue? I rebuilt qmail binaries to implement the mail tap patch, without letting qmail-send stop completely.

Qmail Message Stuck in Queue: How to Clean Qmail Queue Instantly? Solution to this problem as noted from the iflove forum from back in 2008, scripts in this post are currently hosting plesk server at another site to ensure this post stays live and active to help others.

Title: Qmail Queue Stuck: How to Clean Qmail Queue Fast

Keywords: Qmail Queue Stuck, Clean Qmail Queue, Qmail Delete Queue

This post says: Well, first of all, I’ve made a mistake. I’m afraid I rebuilt qmail binaries to implement the mail tap patch, without letting qmail-send stop completely. That caused that about 300 messages are stuck in the queue and didn’t come out neither with qmailctl flush, python queue-repair -r or qmqtool -r. I don’t know what to do, PLEASE HELP ME!!!

QMail incoming mail stuck in queue: This is qmailctl output:

# qmailctl stat
/service/qmail-send: up (pid 49840) 1027 seconds
/service/qmail-send/log: up (pid 49841) 1027 seconds
/service/qmail-smtpd: up (pid 49844) 1027 seconds
/service/qmail-smtpd/log: up (pid 49845) 1027 seconds
/service/qmail-pop3d: up (pid 49850) 1027 seconds
/service/qmail-pop3d/log: up (pid 49852) 1027 seconds
messages in queue: 176
messages in queue but not yet preprocessed: 146

I checked my qmail server today, turns out there are 744 messages stuck in the queue that haven’t been delivered. I’ve tried using qmHandle -a to deliver all of them, but that doesn’t help. I’ve tested an email script that sends out a test email message, and the email is being delivered – with a bit of delay. What about the other emails that are in the queue? I’ve done some extensive reading and I’m still unsure how I can get these messages in the queue to be delivered.

Can anyone help/

Total messages: 744
Messages with local recipients: 0
Messages with remote recipients: 540
Messages with bounces: 0
Messages in preprocess: 0

How to Clear / Clean Qmail Queue Completely, Safely & Fast?

Here is a quick and easy way to clear all email from the queue.
This will not remove anything it should not remove. The script just clears all email from the queue safely and this is ONLY for qmail.
( Note: This is not for use with any other email programs )

Qmail Queue Stuck: How to Clean Qmail Queue Fast CLICK HERE FOR THE UPDATED VERSION!

Clear / clean / empty the qmail queue

1) login to your server via ssh
2) su –
3) wget http://www.japanitup.com/scripts/qmailclear.sh
5) sh qmailclear.sh or sh ./qmailclear.sh
6) done.

For those that receive oversized file truncting errors.
Use the following more intense script. It take a little
longer but gets the job done.

1) login to your server via ssh
2) su –
3) wget http://www.japanitup.com/scripts/qmailclean.sh
5) sh qmailclean.sh or sh ./qmailclean.sh
6) done.

How to empty the qmail queue? To clear *all* messages from the queue, shut down qmail, then:

cd /var/qmail/queue
find intd todo local remote mess info bounce -type f -print |xargs rm

Start qmail back up, and the queue should be empty.

How to empty qmail queue: how to clean Qmail queue? I rebuilt qmail binaries to implement the mail tap patch, without letting qmail-send stop completely. I hope this has helped others out! Any different idea?

Quoted from: website.iflove.com

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s