Page 1 of 1

Remove all Spam

Posted: Thu May 29, 2008 7:04 am
by Oscar
My queue of Internet Mail Gateway stopped last night and now have more than 3000 mails from differents senders, i'd like remove all messages marked with {Spam} from command line.

Code: Select all

root@scalix:~# omstat -q UNIX
3927348    BonnienepentheAkers    MSG   N {Spam?} {Spam?} Confirmatio 05.28.08
3927364    sisto / internet       MSG   N {Spam?} {Spam?} Bomb her wo 05:57:53
3927395    packshe4097            MSG   N buy now X 100mg x 60 p 13:39:46

root@scalix:/var/opt/scalix/sx# omstat -q UNIX -m 3927395
Reference Number:    3927395
Message Id:          01c8c1c3(036)bfc1ed00(036)6466153c(a)packshe4097
Sender:              packshe4097 / internet
                     DDT1=RFC-822; DDV1=packshe4097@iranheart.net;
Subject:             buy now X 100mg x 60 pills US $ 2.17 Per Pill
Message Type:        MSG
Sent:                13:39:46


I search in the forum and not view the command to remove all messages from a queue marked with {Spam}.

Thanks in advanced

Posted: Thu May 29, 2008 9:16 am
by Oscar
I'm use omqdump, but when i write the password (A40E), he say:

Code: Select all

root@scalix:~# omqdump

WARNING: This is a diagnostic tool for use by Scalix trained personnel.
   Improper use can cause serious damage.
   If you do not wish to continue, hit return now.

omqdump : [OM 11795] Access Denied!


Code: Select all

root@scalix:~# echo "A40E" > password_omqdump
root@scalix:~# omqdump -p password_omqdump

WARNING: This is a diagnostic tool for use by Scalix trained personnel.
   Improper use can cause serious damage.
   If you do not wish to continue, hit return now.


omqdump : [OM 11795] Access Denied!

Posted: Thu May 29, 2008 9:51 am
by ltward
Try A39E

Posted: Thu May 29, 2008 9:56 am
by Oscar
Thanks..... the password is correct. Where the hell is set this password ?

Posted: Thu May 29, 2008 10:08 am
by Valerion
The reason there's a password is that the tools used (omcontain & omqdump especially) can really mess up a mailbox or store badly if used incorrectly. Dangerous tools, but they can do the job quickly if used correctly.