Page 1 of 1

How to get the Corrupt Message queue e-mails

Posted: Tue Mar 11, 2008 12:21 pm
by jhoude
Hi everybody,

Clamd apparently died on one of my client's server and mails started accumulating in the "Corrupt Message" queue. Obviously, nobody was receiving e-mails anymore.

I restarted Clamd and the Service Router (was it necessary to restart the SR?), the e-mails flow fine now. However, there is still over 200 messages in the "Corrupt Message" queue. Some of them are legitimate.

I googled for a way to flush (NOT delete) those mails, so people would receive them. I didn't find a way.

Does anybody have an idea if it is possible to do that or I don't have other choice than deleting all the e-mails in that queue? Are they corrupt because clamd was unable to scan them?

They are using Scalix 11.0.4.10790 on CentOS 5. Any other info needed?

Thank you very much for your time.

Jean-Philippe Houde

Posted: Tue Mar 11, 2008 2:48 pm
by ryocoon
If you are looking to just reprocess anything in the Corrupt queue (usually also UNIX denoted as the short queue name ERROR) you can just use the omresub command:

IE:

Code: Select all

omresub -q ERROR

That will reflush the entire queue back to be reprocessed for delivery. You will likely get some back into ERROR pretty quick. You can manually work with those or you can delete them. To manually pick and choose deletion or resubmission, you can just tack on a -i on the end of that command for interactive mode. I suggest doing a full resubmit of the queue, then waiting a few minutes and going back and manually checking on the rest.

Posted: Tue Mar 11, 2008 7:25 pm
by kanderson
Just to add to this, I'd recommend a cron job to resub from error and smerr, on a regular basis anyway.

Also have a look at poison on a semi-regular basis. Especially if you see a process aborting. There are likely to be messages in there.

Kev.