Page 1 of 1

ommon reports stale error queue emails

Posted: Sat Apr 08, 2006 5:10 am
by burhankhalid
Hello:

I am an issue where ommon's email output is showing me Error Queue contents that no longer exist? Meaning I cannot using omresub to send the message through because it cannot find the message by the reference number.

Also, the messages are quite old (they are showing from 04.04.06) how can I purge these messages from the log?

Thanks :)

Posted: Mon Apr 10, 2006 3:55 am
by Valerion
If you want to delete them, you can use either omqdump from the command line (though it is a dangerous tool if used incorrectly), or you can delete it via SAC (Server Info, select the server name, expand Other Queues and select the queue in question. This will allow you to remove them).

Of course, if they're no longer in the queue, then there's something else wrong :)

omstat -q <queuename> will give you a list of contents on a queue, and ommon uses this internally.

Posted: Mon Apr 10, 2006 5:51 am
by burhankhalid
That's just it -- SAC shows no messages in the queue, but ommon is showing them in its email. Its showing them as stuck on the error queue:

Code: Select all

                                       
                                       
             Scalix Monitor Output on Mon Apr 10 12:00:05 AST 2006
                      Sending computer is avalon.am-ul.com
                                       
                                       
                                       
                                       
      --------------------------------------------------------------------
                                       
                         Scalix's Error Queue Contents
                                       
                                       

-------------------

Reference Number:    200020                                                   
Message Id:          DB9042DFF17B4C49B3E0DBB3D58A930EFB107A(a)okrs0003.amers.i
Sender:              jxbryson / internet                                       
                     DDT1=RFC-822; DDV1=jxbryson@bechtel.c;                   
Subject:             Blond joke?                                               
Message Type:        MSG                                                       
Sent:                04.04.06                                               

[ ... many more trimmed ... ]


Then, when you check the queue :

Code: Select all

[root@avalon ~]# omstat -s | grep -Ei 'router|local|internet|sendmail'
Service Router                Started        04.04.06       0
Local Delivery                Started        04.04.06       0
Internet Mail Gateway         Started        04.04.06       0
Local Client Interface        Enabled        04.04.06       0
[root@avalon ~]# omstat -q SMERR
omstat : There are no messages on the queue

Posted: Mon Apr 10, 2006 8:06 am
by Valerion
It may be in the ERROR queue instead of SMERR. I suggest you check that as well.

Or you can use omqdump to show a summary of all queues (option s) to see if there are any queues with messages on them.

Posted: Tue Apr 11, 2006 2:32 am
by burhankhalid
For some reason omqdump doesn't work for me. I am logged in as root, but it just hangs after the warning message, and then gives this error:

omqdump : [OM 11795] Access Denied!

I checked the man page, and I saw the option -p and I passed the root password to that, but still getting the same message.

I managed to clear the queue from the SAC.

Posted: Wed Apr 12, 2006 7:00 am
by florian