Page 1 of 1

Big Pending Queue (668640 emails)

Posted: 02 Nov 2008, 14:07
by arnold
How i can delete this manually? from the shell, looks like ConfigServer Mail Queues cant do it,

Posted: 12 Nov 2008, 15:40
by Sarah
I assume you are referring to the MailScanner pending queue as opposed to the exim delivery queue.

You won't be able to manually process the queue as long as MailScanner is enabled, and trying to delete that many mails from the queue using ConfigServer Mail Queues would take quite a while.

Here is a method to manually delete the mailscanner pending queue. Use at your own risk.

Code: Select all

service chkservd stop
service MailScanner stop exim stop
cd /var/spool/exim_incoming/input/
rm -Rfv /var/spool/exim_incoming/input/*
cd /var/spool/exim_incoming/msglog
rm -Rfv /var/spool/exim_incoming/msglog/*
service exim start
service MailScanner start
service chkservd start

/usr/mscpanel/mscheck.pl
/usr/mscpanel/msswitch.pl inout

Posted: 12 Nov 2008, 15:43
by Sarah
Also, I neglected to mention that obviously if your MailScanner pending queue is that large you need to determine what the problem is. :-)

Re: Big Pending Queue (668640 emails)

Posted: 20 Jan 2012, 09:19
by jols
Hi, I have the same exact problem, except with more like 34,000 messages.

I tried the instructions and they did not work, seemed to delete just a fraction of what I needed.

Is the pending queue located in a different directory these days?

Thanks much.

Re: Big Pending Queue (668640 emails)

Posted: 20 Jan 2012, 11:20
by Sarah
No, the queue files for emails yet to be processed by MailScanner are still located in /var/spool/exim_incoming/input/.

Re: Big Pending Queue (668640 emails)

Posted: 20 Jan 2012, 12:55
by jols
I'm sorry, it is the "Delivery Queue" I am referring to.

As you look at the ConfigServer Mail Queues window, it is the top-most stat that currently says:

Delivery Queue (32867 emails)

How can I remove these 32k+ messages via the shell?

Re: Big Pending Queue (668640 emails)

Posted: 21 Jan 2012, 07:26
by jols
Anything? Should I start a new thread about this one?

Thanks much.

Re: Big Pending Queue (668640 emails)

Posted: 21 Jan 2012, 09:38
by jols
Nevermind, I just used the regular WHM Mail queue manager tool, and deleted the whole mess that way.

Thanks.

Re:

Posted: 28 Jun 2023, 19:14
by actihost
Sarah wrote: 12 Nov 2008, 15:40 I assume you are referring to the MailScanner pending queue as opposed to the exim delivery queue.

You won't be able to manually process the queue as long as MailScanner is enabled, and trying to delete that many mails from the queue using ConfigServer Mail Queues would take quite a while.

Here is a method to manually delete the mailscanner pending queue. Use at your own risk.

Code: Select all

service chkservd stop
service MailScanner stop exim stop
cd /var/spool/exim_incoming/input/
rm -Rfv /var/spool/exim_incoming/input/*
cd /var/spool/exim_incoming/msglog
rm -Rfv /var/spool/exim_incoming/msglog/*
service exim start
service MailScanner start
service chkservd start

/usr/mscpanel/mscheck.pl
/usr/mscpanel/msswitch.pl inout
Hello Sara, this steps are still the same in 2023 with MailScanner - v5.4.4 / ConfigServer MailScanner Script - v5.06 / CPanel 112.0.3 ?

Re: Big Pending Queue (668640 emails)

Posted: 28 Jun 2023, 22:19
by Sarah
Not quite. The below might work, but if there are a very large number of emails in the queue it will still take a very long time.

Code: Select all

killall tailwatchd crond
service exim stop
service MailScanner stop
cd /var/spool/exim_incoming/input/
rm -Rfv /var/spool/exim_incoming/input/*
service exim start
service crond start
/scripts/restartsrv_tailwatchd
service MailScanner start
/usr/mscpanel/mscheck.pl
A quicker way would be to rename the entire /var/spool/exim_incoming directory out of the way and then recreate it, but I hesitate to advise doing that until I can check with my partner about the best way to do it.

Regards,
Sarah