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-25-2009, 02:25 PM
Active Member
 
Posts: 32
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,
[SOLVED] junk mail cleanup

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 ?
Reply With Quote
  #2 (permalink)  
Old 08-25-2009, 11:56 PM
Zimbra Consultant & Moderator
 
Posts: 20,312
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
Reply With Quote
  #3 (permalink)  
Old 08-26-2009, 01:20 AM
Active Member
 
Posts: 32
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 01:29 AM..
Reply With Quote
  #4 (permalink)  
Old 09-03-2009, 05:31 AM
Special Member
 
Posts: 105
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
Reply With Quote
  #5 (permalink)  
Old 09-03-2009, 06:55 AM
Active Member
 
Posts: 32
Default

whats the output in mailbox.log?

does it have any purge entries?
Reply With Quote
  #6 (permalink)  
Old 09-03-2009, 02:47 PM
Special Member
 
Posts: 105
Default

None whatsoever...

zimbraMailPurgeSleepInterval: 1m

zmprov gs server.domain.com | grep zimbraMailLastPurgedMailboxId generates no output for me either...
Reply With Quote
  #7 (permalink)  
Old 09-03-2009, 03:07 PM
Special Member
 
Posts: 105
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 03:10 PM..
Reply With Quote
  #8 (permalink)  
Old 09-04-2009, 03:23 PM
Special Member
 
Posts: 105
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.
Reply With Quote
  #9 (permalink)  
Old 09-04-2009, 11:39 PM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

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


Bill
Reply With Quote
  #10 (permalink)  
Old 09-05-2009, 04:51 AM
Special Member
 
Posts: 105
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.
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.