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 06-01-2009, 10:34 AM
New Member
 
Posts: 3
Default Mail purge safeguard

Does anyone know where or how one could get around the 30 day safeguard that is set in Zimbra so that messages/mail can be automatically purged less days?
Reply With Quote
  #2 (permalink)  
Old 06-01-2009, 10:41 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by jgedeon View Post
Does anyone know where or how one could get around the 30 day safeguard that is set in Zimbra so that messages/mail can be automatically purged less days?
Why would you need to do that?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 06-01-2009, 01:50 PM
New Member
 
Posts: 3
Default

Doesn't everyone want a 7 day document retention policy? The email that is received by this system is only needed for a very short amount of time. The volume of mail received into the system is also very large and we don't want to store what we don't need.
Reply With Quote
  #4 (permalink)  
Old 06-01-2009, 02:06 PM
Advanced Member
 
Posts: 213
Default

Correct me if I'm wrong, but I think the retention polity is not on the length of being in the Trash, but on the date of the message in question. I faced this when a user accidentally dragged a whole series of folders into the Trash, and the next day, most were not there to be recovered (had to restore from backup).
Reply With Quote
  #5 (permalink)  
Old 06-01-2009, 02:17 PM
New Member
 
Posts: 3
Default

The point is, I/we don't want to keep any email on this server for over a week. Zimbra has put in this little "safeguard" that we wish not to use. I am just looking for help on how to either remove this safeguard or edit it to a shorter period.
Reply With Quote
  #6 (permalink)  
Old 06-01-2009, 02:21 PM
Moderator
 
Posts: 1,554
Default

this can be edited in the admin interface under the cos configuration. go to the advanced tab and scroll down to the bottom for email retention policy
Reply With Quote
  #7 (permalink)  
Old 06-01-2009, 02:51 PM
Moderator
 
Posts: 6,237
Default

I think jgedeon's referring to main/ZimbraServer/src/java/com/zimbra/cs/mailbox/Mailbox.java:
Quote:
int globalTimeout = (int) (acct.getTimeInterval(Provisioning.A_zimbraMailMes sageLifetime, 0) / 1000);

// sanity-check the really dangerous value...
if (globalTimeout > 0 && globalTimeout < Constants.SECONDS_PER_MONTH) {
// this min is also used by POP3 EXPIRE command. update Pop3Handler.MIN_EPXIRE_DAYS if it changes.
ZimbraLog.purge.warn("global message timeout < 1 month; defaulting to 31 days");
globalTimeout = Constants.SECONDS_PER_MONTH;
}
Since zimbraMailMessageLifetime affects items in any folder we hard-coded a minimum; just too many support tickets on 'all my mail is missing'...

(If your getting that much email every 7 days, are you just using it for status checks? If so it may be time to consider a monitoring/stats package instead.)

However you can still do things like:
-Cron a periodic zmmailbox emptyFolder command (which is recursive by default, and yes you can run it on Inbox from CLI/SOAP, we just prevent it on system folders in ZWC).
-Move to trash with a filter (if your not already sorting for other reasons).

Gnyce's correct, we currently purge by date received (not by how long it's been in trash) however you can change this in the upcoming 5.0.17 by setting zimbraMailPurgeUseChangeDateForTrash TRUE (19702)

Mailbox Purge - Zimbra :: Wiki

Last edited by mmorse; 06-02-2009 at 10:04 AM..
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.