Big Pending Queue (668640 emails)

Discuss our MailScanner install script and MailScanner itself
Post Reply
arnold
Junior Member
Posts: 1
Joined: 02 Nov 2008, 12:35

Big Pending Queue (668640 emails)

Post by arnold »

How i can delete this manually? from the shell, looks like ConfigServer Mail Queues cant do it,
Sarah
Moderator
Posts: 921
Joined: 09 Dec 2006, 22:49

Post 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
Sarah
Moderator
Posts: 921
Joined: 09 Dec 2006, 22:49

Post 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. :-)
jols
Junior Member
Posts: 111
Joined: 08 May 2007, 04:43

Re: Big Pending Queue (668640 emails)

Post 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.
Sarah
Moderator
Posts: 921
Joined: 09 Dec 2006, 22:49

Re: Big Pending Queue (668640 emails)

Post by Sarah »

No, the queue files for emails yet to be processed by MailScanner are still located in /var/spool/exim_incoming/input/.
jols
Junior Member
Posts: 111
Joined: 08 May 2007, 04:43

Re: Big Pending Queue (668640 emails)

Post 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?
jols
Junior Member
Posts: 111
Joined: 08 May 2007, 04:43

Re: Big Pending Queue (668640 emails)

Post by jols »

Anything? Should I start a new thread about this one?

Thanks much.
jols
Junior Member
Posts: 111
Joined: 08 May 2007, 04:43

Re: Big Pending Queue (668640 emails)

Post by jols »

Nevermind, I just used the regular WHM Mail queue manager tool, and deleted the whole mess that way.

Thanks.
actihost
Junior Member
Posts: 1
Joined: 28 Jun 2023, 19:08

Re:

Post 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 ?
Sarah
Moderator
Posts: 921
Joined: 09 Dec 2006, 22:49

Re: Big Pending Queue (668640 emails)

Post 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
Post Reply