recover from a stuck queue.

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

kanderson

recover from a stuck queue.

Postby kanderson » Fri Nov 10, 2006 4:59 pm

I have a user with something that must have been stuck in a queue somewhere. My bigger concern is that right now, the server has both a SR and LD sitting with about 30 thousand mesages in each. They're worthless messages, but is there a command similar to omtidyu that I can run against the different services? Otherwise it'll take days before this server catches back up.

Thanks in advance

dkelly
Scalix
Scalix
Posts: 593
Joined: Thu Mar 18, 2004 2:03 pm

Postby dkelly » Fri Nov 10, 2006 6:17 pm

There isn't an omtidyu equivalent as such.

What we've done in the past is to do this:

Code: Select all

omstat -q router | cut -d" " -f 1 | while read msgid
do
    omstat -q router -j -R -m $msgid
done


Unfortunately, with 30K messages, this will take a long time. You can be more specific by grepping for subjects if you want to.

Alternatively, using omqdump to delete the messages is an option.

Cheers

Dave

kanderson

Postby kanderson » Fri Nov 10, 2006 7:12 pm

It'll be a while yet, I can take them out in the SR, so LD never needs to proces them. That'll mean it happens far faster than letting them actually get processed.

Thanks Dave.

This is awesome.

mhanisch
Posts: 31
Joined: Mon Jan 02, 2006 11:53 am
Location: Munich, Germany

It's good to know that omstat can also remove these messages

Postby mhanisch » Fri Jan 19, 2007 8:02 am

...but how did you find out?

The "-j -R " options to omstat are not documented in the manual page, but are very
useful to me (my local queue has > 160000 messages at the moment... don't ask).

Are there any other "secret" options?

KiwiStag
Posts: 42
Joined: Thu Mar 23, 2006 5:48 am
Location: New Zealand

SX 11.1 & mqueue

Postby KiwiStag » Wed Jul 04, 2007 10:07 pm

After an error in sendmail it stored all mail to /var/spool/mqueue
How can I get it to reprocess the queue to deliver the messages that never got processed by mailer=scalix_mime as they were only going mailer=relay
?

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Thu Jul 05, 2007 10:26 am

sendmail -q -v should do the trick for you.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 1 guest

cron