Delete All Email of a Certain Pattern

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

davidz
Posts: 129
Joined: Wed Apr 19, 2006 11:46 am

Delete All Email of a Certain Pattern

Postby davidz » Mon Jul 09, 2007 11:01 am

I need to delete all the email on the server that matches a certain pattern. Over the weekend we have a large volume of spam make it through the spam filter (we use barracuda). All the emails have the exact same pattern. Can I use something like omtidyu to delete all of these emails from people's mailboxes before they click on the virus link.

--Thanks, David

Richard Hall
Scalix
Scalix
Posts: 147
Joined: Fri May 20, 2005 5:37 am

Postby Richard Hall » Tue Jul 10, 2007 4:36 am

Hi David,

Yes, omtidyallu is the utility you need to run. You can use wildcarded sender and subject strings to make the selection. Just using just omtidyu without actually deleting any items will allow you to test that the filter criteria are correct.

For example:
omtidyu -B -u <user> -Ti -a 0 -m spammer@acme.com -t *pills* -R
will list the messages in the user's Inbox that were sent by spammer@acme.com and contain "pills" in the subject.

When you are happy with the filter you can apply it to everyone and delete the items:
omtidyallu -Ti -a 0 -m spammer@acme.com -t *pills* -d -k

(The items will not be moved to the Deleted Items folder as the -k option is specified, but they will be moved to Recovery Folder.)

Cheers - Richard

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

Postby Valerion » Tue Jul 10, 2007 5:50 am

Yes, but use omtidyallu - it applies to all mailboxes. Just be sure to read the man pages carefully, it's easy to delete too many emails by mistake.

davidz
Posts: 129
Joined: Wed Apr 19, 2006 11:46 am

Postby davidz » Tue Jul 10, 2007 9:45 am

Thanks for the info, that is exactly what I was hoping for!!


David


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 3 guests

cron