Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-2009, 06:42 AM
Starter Member
 
Posts: 2
Exclamation empty trash and junk mail forlder

Hello,

I have one question, i need to empty the trash and the junk mail folder of my clients before backup my zimbra server, but i don't know how do that,
i need something like a batch procedure, this can be done?

Sorry for my English,

thanks.
Reply With Quote
  #2 (permalink)  
Old 08-07-2009, 07:34 AM
Moderator
 
Posts: 1,432
Default

Quote:
Originally Posted by WolfantEc View Post
Hello,

I have one question, i need to empty the trash and the junk mail folder of my clients before backup my zimbra server, but i don't know how do that,
i need something like a batch procedure, this can be done?

Sorry for my English,

thanks.
You might be able to write a shell script that invokes zmmailbox. The best documentation for zmmailbox is built into the command itself--as zimbra, do zmmailbox --help.

But personally I wouldn't exclude trash and junk from backups. You're keeping them on the live server for a reason. If a user accidentally trashes something, or has something misfiled as junk, and then your server crashes before they realize they need the thing, then they've lost it forever. It is better in my opinion to set account quotas appropriately and to set a reasonable lifetime on Trash and Junk mail.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #3 (permalink)  
Old 12-09-2009, 02:55 PM
New Member
 
Posts: 3
Default zmmailbox command

zmmailbox -z -a user@domain.com emptyFolder foldername

foldername = any folders in that users mailbox (i.e. Junk, Trash, etc)

Then I'd just script that or add to the cron for your purposes.

Hope this helps.

Cheers,
Brennan
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.