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 Display Modes
  #1 (permalink)  
Old 05-12-2006, 06:33 AM
Moderator
 
Posts: 625
Default Trashed/Spam Message Lifetime

I have been testing Zimbra Open Source Edition for over a month now, and it does not appear that the Trashed and Spam Message Lifetime settings are working. I have the Trashed Message Lifetime set to 30 days (default) and have lowered the Spam Message Lifetime to 15 days. As far as I can tell no messages have been purged from either folder automatically.

Is there something else that I need to run to purge these messages?
Reply With Quote
  #2 (permalink)  
Old 05-12-2006, 09:28 AM
Zimbra Employee
 
Posts: 4,784
Default

There should be a cron job that calls zmpurgemessages you can also try running it manually.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 05-12-2006, 09:40 AM
Moderator
 
Posts: 625
Default

Thanks...Running it from the command line worked. Crontab for zimbra user shows it is setup to run each day at 3:00 AM and system cron log shows that it is running. I don't see any error messages. Anything else I should be looking for?
Reply With Quote
  #4 (permalink)  
Old 05-14-2006, 07:01 PM
Zimbra Employee
 
Posts: 4,784
Default

Worked mean it ran without error? Or worked meaning it actually cleaned up your mailboxes?
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #5 (permalink)  
Old 05-15-2006, 07:05 AM
Moderator
 
Posts: 625
Default

Worked meaning it ran without error AND it actually cleaned the mailboxes. Still doesn't look like the cron job is working though.
Reply With Quote
  #6 (permalink)  
Old 05-19-2006, 06:04 AM
Moderator
 
Posts: 625
Default

I redirected the output of the "zmpurgemessages" command in the zimbra crontab to a file and I get the following error message:
Received SOAP fault: authentication failed for zimbra (empty password)

As previously stated, if I run the command manually, logged in as the zimbra user, it works fine.
Reply With Quote
  #7 (permalink)  
Old 06-09-2006, 03:30 AM
Member
 
Posts: 11
Default

I can confirm this, the cron job does not work, but there's a workaround.

Edit the cronjob, to run as root, the following command:

su - zimbra -c "/opt/zimbra/libexec/zmpurgemessages"
Reply With Quote
  #8 (permalink)  
Old 06-09-2006, 03:49 AM
Moderator
 
Posts: 1,847
Default

Quote:
Originally Posted by lxnay
I can confirm this, the cron job does not work, but there's a workaround.
Edit the cronjob, to run as root, the following command:
su - zimbra -c "/opt/zimbra/libexec/zmpurgemessages"
This is not a "workaround", this is the correct way to launch the job as zimbra user while putting the job in the root crontab...

Have you tryied to put it in the zimbra user crontab ?
Reply With Quote
  #9 (permalink)  
Old 06-09-2006, 04:14 AM
Member
 
Posts: 11
Default

I use webmin to manage cron jobs
Reply With Quote
  #10 (permalink)  
Old 06-09-2006, 04:22 AM
Moderator
 
Posts: 1,847
Default

Pwark berk 8)

Webmin allows you to choose who executes the cronjob, it is the "Execute cron job as" field.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0