Results 1 to 10 of 10

Thread: Zimbra Mailbox Not Purging

  1. #1
    Join Date
    Jul 2009
    Posts
    32
    Rep Power
    6

    Default Zimbra Mailbox Not Purging

    zmcontrol -v
    Release 5.0.18_GA_3011.RHEL5_20090707164432 RHEL5 FOSS edition

    I have a zimbraMailPurgeSleepInterval set to 1min
    Also, i have the
    zimbraMailTrashLifetime 1m
    zimbraMailSpamLifetime 1m

    Not that, i can't set it to 1h or 1d, it basically doesn't make any difference.

    Even When i run this, i don't get any output
    zmprov gs server.domain.com | grep zimbraMailLastPurgedMailboxId

    but when i run a grep Purge | mailbox.log
    i get a couple of entries.

    I have read this, but it doesn't help me,
    http://www.zimbra.com/forums/adminis...cleanup-2.html

    I was hoping, that setting the
    zimbraMailPurgeSleepInterval to 1m, will give me a purge, every one minute, but all i get is a mailboxPurge after may be 5 or 10 or 15 mins.

    What can i do to get a Purge after every minute.


    Also, since, the purging is only done for "mailboxes in memory", how should i purge the other mailboxes, going according to this
    zmmailbox -z -m user@domain.com emptyFolder /Spam
    zmmailbox -z -m user@domain.com emptyFolder /Trash

    is a tedious task in my case.
    Is the only alternate a batch process, listing all users or is there a better alternative ?

  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 atevewr View Post
    zmcontrol -v
    Release 5.0.18_GA_3011.RHEL5_20090707164432 RHEL5 FOSS edition

    I have a zimbraMailPurgeSleepInterval set to 1min
    Also, i have the
    zimbraMailTrashLifetime 1m
    zimbraMailSpamLifetime 1m
    Perhaps there's nothing that needs purging in the mailboxes?

    As for the settings you've set for the Spam/Trash lifetime, a 1m purge interval is totally inappropriate. You will a) remove mail that may need to be recovered from the Trash, b) be removing mail from the Junk folder that will never get trained by the anti-spam update routine, c) spend all your CPU cycles just running the mailbox purge. I'd suggest you put the settings back to something more sensible (in days), hard disk space is cheap and leaving mail in those folders will cost you not very much in HD space.

    Have you actually looked in the log files to see if any mailboxes are actually being purged?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Jul 2009
    Posts
    32
    Rep Power
    6

    Default

    The 1m setting was put to check, whether is it doing any work at all or not,
    i have been running the 1d setting for a month now, but none of the accounts were getting Purged.

    Yes, i already mentioned that there were Purge entries in Mailbox.log, but they were at random time gaps of 5-10-15 mins.

    Anyways, it was not about disk-space any time, but was to check the feature, if its working properly.
    Its working now, basically giving me a single minute purging, after i
    zmcontrol stop
    zmcontrol start

    Thanks
    Last edited by atevewr; 08-26-2009 at 02:29 AM.

  4. #4
    Join Date
    Sep 2007
    Location
    Lexington, KY, USA
    Posts
    110
    Rep Power
    8

    Default

    I am having the same issue with this same version. I have my sp*m set at 7 days and trash at 14. I have old messages in those locations for over a month. This was working until I upgraded from .15 to .18

  5. #5
    Join Date
    Jul 2009
    Posts
    32
    Rep Power
    6

    Default

    whats the output in mailbox.log?

    does it have any purge entries?

  6. #6
    Join Date
    Sep 2007
    Location
    Lexington, KY, USA
    Posts
    110
    Rep Power
    8

    Default

    None whatsoever...

    zimbraMailPurgeSleepInterval: 1m

    zmprov gs server.domain.com | grep zimbraMailLastPurgedMailboxId generates no output for me either...

  7. #7
    Join Date
    Sep 2007
    Location
    Lexington, KY, USA
    Posts
    110
    Rep Power
    8

    Default

    OK, so I stopped and restarted zmcontrol also. This is what I see:

    [zimbra@zcs2 ~]$ cat log/mailbox.log | grep purge
    2009-09-03 18:01:39,050 INFO [main] [] purge - Starting purge thread with sleep interval 1m.
    2009-09-03 18:01:39,051 INFO [MailboxPurge] [] purge - Purge thread sleeping for 1800000ms before doing work.


    OK, so I screwed my math up... so this is now started.... I'll see if anything cleans out.
    Last edited by tecnalb; 09-03-2009 at 04:10 PM.

  8. #8
    Join Date
    Sep 2007
    Location
    Lexington, KY, USA
    Posts
    110
    Rep Power
    8

    Default

    Here is what I found in the mailbox.log today after several mailboxes were purged:

    2009-09-04 01:03:28,291 WARN [MailboxPurge] [] purge - Unable to determine value of zimbraMailPurgeSleepInterval. Returning 0.
    ExceptionId:MailboxPurge:1252040608291:84ea8f68fcc 76308
    at com.zimbra.cs.mailbox.PurgeThread.getSleepInterval (PurgeThread.java:208)
    at com.zimbra.cs.mailbox.PurgeThread.sleep(PurgeThrea d.java:180)
    at com.zimbra.cs.mailbox.PurgeThread.run(PurgeThread. java:163)
    2009-09-04 01:03:28,292 INFO [MailboxPurge] [] purge - Shutting down purge thread.

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

    Default

    Did you set the zimbraMailPurgeSleepInterval to 1m and how did you do it (show me the exact command you used)?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  10. #10
    Join Date
    Sep 2007
    Location
    Lexington, KY, USA
    Posts
    110
    Rep Power
    8

    Default

    I just verified the setting with this

    [zimbra@zcs2 ~]$ zmprov gs zcs2.storeitoffsite.com | grep Purge
    zimbraMailPurgeSleepInterval: 1m

    I have two servers and both are doing the same thing after moving to the .18 version. I just did not notice it until someone mentioned the Junk was not emptying out.

Similar Threads

  1. zmperditionctl start asking for password
    By k7sle in forum Administrators
    Replies: 32
    Last Post: 02-20-2008, 11:13 AM
  2. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 03:37 AM
  3. 4.5 Upgrade failure
    By brained in forum Installation
    Replies: 9
    Last Post: 03-03-2007, 03:30 PM
  4. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 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
  •