#1 (permalink)  
Old 07-01-2009, 11:37 AM
Registered User
 
Join Date: May 2003
Posts: 205
djblamire
Mail Queue - Forcing it to start processing ???

Due to a customer sending out to one of their mailing lists, I have a large number of e-mails in the mail queue since yesterday.

It has stuck at 1,190 e-mails when I check in WHM.

I tell it to 'Attempt to deliver all emails', but the figure isn't going down - just going up.

Is there anything I can do to get it to start processing them ???

Any help appreciated.

Thanks
Daniel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-02-2009, 10:31 AM
cpanelchrish's Avatar
Registered User
 
Join Date: Jun 2009
Posts: 24
cpanelchrish is on a distinguished road
G'day Daniel,

I'd be most keen to have a look through the Exim logs and see if we can identify a specific delivery issue.

If there's an underlying problem (e.g. dns unavailable, destination host for mailing list RCPT's down, etc) preventing delivery, forcing a retry of the queue won't do heaps.

Say you have one host in the queue whose scheduled to receive a thousand or so messages - if that one host is 4xx'ing you upon initial connect, or, you flat-out can't connect to it, the queue isn't going to move.

If failed connection is indeed the case, it'd be a matter of the usual requisite network troubleshooting bits, e.g. try from a different host, snag a packet capture, etc.

If however, you're getting a 4xx error upon initial connect, you're somewhat limited to engaging the admin of the remote site and working with him or her to find out why they're tempfailing your messages.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-03-2009, 04:08 AM
Registered User
 
Join Date: Apr 2008
Posts: 17
ChrisFirth is on a distinguished road
If you have SSH access, find the message ID's using "exiqgrep -r <recipient>" or "exim -bp", then you can deliver with "exim -M <message ID>".

If you prefer you can use xargs and awk magic to the above automatically...

eg. To flush total mail queue:

exim -bp | egrep ".*\<.*>.*$" | awk '{print $3}' | xargs -n 1 -P 25 exim -M

You can change the -P argument to a high/lower number if you prefer (its the number of processes xargs will open, so the above command will process 25 messages concurrently).

eg. To deliver all emails to a domain:

exiqgrep -r <domain> | egrep ".*\<.*>.*$" | awk '{print $3}' | xargs -n 1 -P 25 exim -M

Last edited by ChrisFirth; 07-03-2009 at 04:12 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-04-2009, 05:47 AM
Registered User
 
Join Date: Apr 2008
Posts: 4
mahdi1 is on a distinguished road
if we should use SSH and this complix commands when we have errors etc..

WHAT IS THE USE OF WHM???

all this should be in WHM. what is the use of programming if we have to do everything manualy.

this problem is with everybody. and it is related to tweak settings in WHM.

they should split that tweak settings into parts as they did with apache configuration.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-06-2009, 12:05 PM
Registered User
 
Join Date: Jan 2008
Location: behind the sun
Posts: 408
Kent Brockman is on a distinguished road
Quote:
Originally Posted by mahdi1 View Post
if we should use SSH and this complix commands when we have errors etc..

WHAT IS THE USE OF WHM???

all this should be in WHM. what is the use of programming if we have to do everything manualy.

this problem is with everybody. and it is related to tweak settings in WHM.

they should split that tweak settings into parts as they did with apache configuration.
This issue is surely due to a problem in your configuration. Every scenario is not equal and you should verify what is causing this issue reading your logs. It may be happening due to a number of things.


I can recommend a good plugin to add some light to the problem, since the native Mail Queue Manager is not as intuitive as it may be. Install the Configserver Mail Queues. That script will allow you to have more control over the state of exim queue. After installing, you'll find it in the Plugins section, at the bottom of the WHM menu.

Code:
wget http://www.configserver.com/free/cmq.tgz
tar -xzf cmq.tgz
cd cmq
sh install.sh
__________________
Content is king. Functionality is a gift. Usability is God.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forcing Boxtrapper Queue Delivery bEgUnDaL cPanel and WHM Discussions 6 05-14-2009 03:12 AM
Mail stopped working, forcing eximup no help skoker cPanel and WHM Discussions 1 09-16-2006 03:34 PM
Mail Queue Behavior/Processing kerriritter cPanel and WHM Discussions 0 04-07-2006 08:31 PM
processing mail in PHP elck cPanel and WHM Discussions 2 08-28-2005 12:12 PM
Forcing Mail Queue wipl_piyush cPanel and WHM Discussions 5 03-30-2004 04:34 AM


All times are GMT -5. The time now is 04:48 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc