Remove all Spam

Discuss the Scalix Messaging Services

Moderator: ScalixSupport

Oscar
Posts: 60
Joined: Wed Nov 29, 2006 1:18 pm
Location: Terrassa (Spain)

Remove all Spam

Postby Oscar » Thu May 29, 2008 7:04 am

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

Oscar
Posts: 60
Joined: Wed Nov 29, 2006 1:18 pm
Location: Terrassa (Spain)

Postby Oscar » Thu May 29, 2008 9:16 am

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!

ltward
Posts: 309
Joined: Tue Jan 15, 2008 1:54 pm
Contact:

Postby ltward » Thu May 29, 2008 9:51 am

Try A39E

Oscar
Posts: 60
Joined: Wed Nov 29, 2006 1:18 pm
Location: Terrassa (Spain)

Postby Oscar » Thu May 29, 2008 9:56 am

Thanks..... the password is correct. Where the hell is set this password ?

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

Postby Valerion » Thu May 29, 2008 10:08 am

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.


Return to “Scalix Messaging Services”



Who is online

Users browsing this forum: No registered users and 1 guest