Results 1 to 7 of 7

Thread: Mail purge safeguard

  1. #1
    Join Date
    Jun 2009
    Posts
    3
    Rep Power
    6

    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?

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Jun 2009
    Posts
    3
    Rep Power
    6

    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.

  4. #4
    Join Date
    Aug 2007
    Location
    outside Philadelphia
    Posts
    214
    Rep Power
    8

    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).

  5. #5
    Join Date
    Jun 2009
    Posts
    3
    Rep Power
    6

    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.

  6. #6
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    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

  7. #7
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    I think jgedeon's referring to main/ZimbraServer/src/java/com/zimbra/cs/mailbox/Mailbox.java:
    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.

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 06:01 AM
  2. Replies: 30
    Last Post: 01-13-2009, 07:00 AM
  3. Migration Assistance
    By dwill in forum Administrators
    Replies: 10
    Last Post: 12-02-2008, 07:20 AM
  4. Problem with Postfix and MTA
    By ZMilton in forum Administrators
    Replies: 16
    Last Post: 04-16-2008, 06:47 AM
  5. [SOLVED] Mailserver down when send file attach of 50Mb
    By ZMilton in forum Administrators
    Replies: 20
    Last Post: 04-10-2008, 11:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •