Results 1 to 7 of 7

Thread: How to Purge a Mailbox

  1. #1
    Join Date
    Nov 2005
    Posts
    11
    Rep Power
    10

    Default How to Purge a Mailbox

    Hello,

    I have some Mailboxes with thousands of messages in their mailbox. The deletion process from the web client is time consuming. Is there a way for us to help them through command line to delete these unwanted messages?

    Thank you,


    LT

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default zmmailbox

    Does zmmailbox emptyFolder Trash do what you want?
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Jun 2007
    Posts
    1
    Rep Power
    8

    Default

    Excellent thank you. in my case, I set up a cron job:
    zmmailbox -z -m postmaster@xxxxxxx.com emptyFolder Inbox

    It clears out the inbox of our postmaster user because it receives tens of thousands of messages per day from all our dedicated clients. this is basically blackhole functionality that we used to have with qmail. :-)

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

    Default

    Welcome to the forums,

    Also, in the admin console gui > individual user (or COS) > advanced tab > scroll to the bottom > and you can set:

    Spam message lifetime -Number of days a message can remain in the Junk folder before it is automatically purged. The default is 30 days.
    Trashed message lifetime - Number of days a message remains in the Trash folder before it is automatically purged. The default is 30 days.
    Email message lifetime - Number of days a message can remain in any folder before it is automatically purged. The default is 0; email messages are not deleted.

  5. #5
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    7

    Default

    Good day,

    How come that the Email Message Lifetime option didn't work even if i set the purging days value to 7 days or 2 days. Is there any way to set the purging days value lower than the default value of 30 days in zimbra?


    Thanks for any help.


    Mabuhay!

    -Juan Dela Cruz

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

    Default

    Welcome to the forums,

    This is an older thread; v5 includes a new purge process, if you're not on 5.0.3+ you may need to set:
    zmprov ms server.domain.com zimbraMailPurgeSleepInterval 1m

    See this discussion for more info: http://www.zimbra.com/forums/adminis...l-cleanup.html

    http://www.zimbra.com/forums/announc...html#post62754

  7. #7
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    7

    Default

    Thanks for your help mmorse.

    I'll try your suggestion.


    Mabuhay!

    -Juan Dela Cruz

Similar Threads

  1. Replies: 210
    Last Post: 01-17-2012, 01:19 AM
  2. Restore mail to another user's mailbox
    By zaf in forum Administrators
    Replies: 4
    Last Post: 02-08-2008, 08:26 AM
  3. Get mailbox size (for create quota warning SMTP script)
    By inigoml in forum Administrators
    Replies: 28
    Last Post: 08-21-2007, 07:35 AM
  4. Adding new mailbox server on multi-server setup
    By Britt in forum Installation
    Replies: 2
    Last Post: 11-28-2006, 09:00 AM
  5. MTA and Mailbox die periodically...
    By andreturpin in forum Administrators
    Replies: 3
    Last Post: 06-21-2006, 07:31 PM

Posting Permissions

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