I have been working with Iplanet Mail server installed in Solaris 9. Since it is running the old version and the support for the old version has come to an end, I am contributing this basic post on queue administration.
You can access the queue prompt using the “imsimta” binary. It is present in the Iplanet installation directory.
cd /opt/imsvol/ims/msg-webmail/
./imsimta qm
You will receive the prompt like
qm.maint>
To find the summary of the mail in queue, you can enter the verb “summarize” in the prompt
eg:
qm.maint> summarize
Messages
Channel Queued Size (Kb) Oldest
——————————– ——– ———– —————–
tcp_local 19 3168.28 19 Mar, 10:05:08
tcp_imss 0 0.00
tcp_auth 0 0.00
reprocess 0 0.00
process 0 0.00
——————————– ——– ———– —————–
Totals 19 3168.28
qm.maint>
To check for spam mails in queue, you can use the “top” verb
qm.maint> top
Building a list of message files to scan from the queue directory tree…
Scanning 20 message files…
Scanned 20 message files in 0.0030 seconds (6572.46 messages/second)
Top 20 Subject: header lines which occur 2 or more times
Count Subject
=================================================================
2 =?us-ascii?Q?Spam=3A_=3D=3Futf=2D8=3FB=3FKCBUUE=30gKeWFqOOKo=2Bmdou
2 =?us-ascii?Q?Spam=3A_=3D=3Fgb23=312=3FB=3FOTDM7MTavavN=2BMnPtqm=31p
2 =?us-ascii?Q?Spam=3A_=3D=3Futf=2D8=3FB=3FKCBUUE=30gKeWFqOOAkemdoueU
qm.maint>
If you need to delete the emails which is having a particular subject, you can use the “clean” verb
Here is an example on how to delete the mails having the subject “Delivery Notification Failed”
qm.maint>clean -delete -subject “Delivery Notification Failed”
If the -delete option is not specified, the messages are removed from the queue, but it will be marked as HELD message. Theses messages can be reprocessed, once the messages are released.
Another case where the subject line is smaller, you need to use the following option
qm.maint>clean -delete -min_length=6 -subject “Funny!”
When the subject line has lesser number of characters or words, you have to use “-min_length” option and the number equals to the number of characters in the subject string.
The Iplanet message queue is divided into four subqueues,
tcp_local, tcp_imss , tcp_auth, reprocess and process
If lot of messages are accumulating in a particular queue, you can delete them too, this is done using the delete verb
To check the summary,
qm.maint> summarize
Messages
Channel Queued Size (Kb) Oldest
——————————– ——– ———– —————–
tcp_local 19 3168.28 19 Mar, 10:05:08
tcp_imss 0 0.00
tcp_auth 0 0.00
reprocess 0 0.00
process 0 0.00
——————————– ——– ———– —————–
Totals 19 3168.28
Now the queue, tcp_local has 19 messages, to delete the whole queue, you need to do the following,
qm.maint> directory tcp_local
qm.maint> delete 1-19
Suppose if you need to delete messages from 1 to 10, you can do it by
qm.maint> delete 1-10
Be sure to execute this verb only after switching it to the corresponding queue using the “directory verb”
eg qm.maint> directory tcp_local
To Read the messages in the queue, the “read” verb can be used. Eg. you need to read message no 14 in tcp_imss queue
qm.maint> directory tcp_imss
qm.maint> read 14
This will display the message headers, if you need to view its contents, you can use,
qm.maint> read -content 14
1 Response to Iplanet Queue Administration in Solaris
david
September 24th, 2011 at 3:43 am
Thanks!!!
I have a question, its possible to process a enqued messages for a diferent channel. For example you have messages enqued at tcp_local and you need process this messages fron tcp_auth. I can:
directory tcp_local
run tcp_auth
Thanks