Hello,
I have one question, i need to empty the trash and the junk mail folder of my clients before backup my zimbra server, but i don't know how do that,
i need something like a batch procedure, this can be done?
Sorry for my English,
thanks.
Hello,
I have one question, i need to empty the trash and the junk mail folder of my clients before backup my zimbra server, but i don't know how do that,
i need something like a batch procedure, this can be done?
Sorry for my English,
thanks.
You might be able to write a shell script that invokes zmmailbox. The best documentation for zmmailbox is built into the command itself--as zimbra, do zmmailbox --help.
But personally I wouldn't exclude trash and junk from backups. You're keeping them on the live server for a reason. If a user accidentally trashes something, or has something misfiled as junk, and then your server crashes before they realize they need the thing, then they've lost it forever. It is better in my opinion to set account quotas appropriately and to set a reasonable lifetime on Trash and Junk mail.
zmmailbox -z -a user@domain.com emptyFolder foldername
foldername = any folders in that users mailbox (i.e. Junk, Trash, etc)
Then I'd just script that or add to the cron for your purposes.
Hope this helps.
Cheers,
Brennan
There are currently 1 users browsing this thread. (0 members and 1 guests)