Results 1 to 7 of 7

Thread: How to erase messages from users mailbox

  1. #1
    Eyfi is offline Member
    Join Date
    Apr 2007
    Posts
    12
    Rep Power
    8

    Default How to erase messages from users mailbox

    Sorry for posting this if this is some easy solution that is listed in the manual but still I have not found a solution.

    I need to archive all emails from one user and start with a new empty mailbox. This mailbox has approx 6000 messages so it takes time to do this manually.

    Is there any tick to do this thru the CLI?

    Exchange has the ExMerge to do this but I have not seen any such tool except maybe some functions in zmmailbox...

    Also I would like to empty the trash and spam folders of all users automatically . Is that possible by using some CLI tool and create some cron script for automation?

  2. #2
    soxfan is offline Moderator
    Join Date
    Mar 2006
    Location
    Massachusetts
    Posts
    965
    Rep Power
    10

    Default

    You don't say whether you are using the Network or Open Source edition of Zimbra. This is key to answering your question.

    With the NE there is the CLI command 'zmbackup' which could help you with archiving the messages. This command is not available with OS edition. With either edition you can probably use the 'zmmailbox' command to clear things out. Look in the Admin guide and search around for more info on this command.

    As far as the Trash and Spam folders you can control the retention time of messages in these folders through the Admin console at the "Class of Service" level, or on a user by user basis.

  3. #3
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    You could also create a temporary mailbox and use Thunderbird to drag/drop all the mail from one mailbox to another.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    Eyfi is offline Member
    Join Date
    Apr 2007
    Posts
    12
    Rep Power
    8

    Default

    Thanks Soxfan and Phoenix for your replies. We are using the network edition.

    The Timout policy had totally slipped by when I was searching in the Admin console... Does exactly what I was looking for

    I found this documentation in the AdminGuide for the zmbackup command http://www.zimbra.com/docs/ne/latest...line.14.5.html
    I can't see any command line parameters for how to archive emails? Using Thunderbird will take to much labor work and I'm looking for a way that I can use regularly without to much hassle.

    Exchange has a tool called ExMerge that does this and i've used a lot. There must be some simple way to do this in Zimbra as well.

  5. #5
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Just backup the users mailbox and restore it after you're done. Using thunderbird is easy, create another account connect Thunderbird to those two accounts and drag 'n' drop the folder (Inbox or any other folder) from one account to the other. What could be easier? Instant confirmation that the mailbox and email is accessible if you login to the new account. If you really want to archive them offline then zmbackup is your friend.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    soxfan is offline Moderator
    Join Date
    Mar 2006
    Location
    Massachusetts
    Posts
    965
    Rep Power
    10

    Default

    I'm an OS edition user myself, so I don't have the zmbackup command at my disposal, and perhaps I don't understand your archive requirements. According to the documentation:

    Perform full backup of only user1’s mailbox on server1. Note that hostname does not need full domain if account is used.
    zmbackup -f -s server1 -a user1@domain.com
    Looks like you can use the '-t' option to specify a location. This should provide you with a backup/archive of the specified user's mailbox. How does this not meet your requirements? I've never administered Exchange so I have no idea what the ExMerge command does.

  7. #7
    Eyfi is offline Member
    Join Date
    Apr 2007
    Posts
    12
    Rep Power
    8

    Default

    Soxfan... I'm not sure I have been clear enough...

    By archiving I need to move all the email from the mailbox or just some emails matching some requirement like email older than x or email containing the text "some text" in the body or subject.

    My moving the email I would like to export it to a mailbox file like pst, gz or just raw email folders etc...

    I'm not looking for a backup copy of the mailbox...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 210
    Last Post: 01-17-2012, 01:19 AM
  2. [SOLVED] New Mailbox Filter to users from zmmailbox
    By Atauhalpa Pierrie Bulling in forum Administrators
    Replies: 4
    Last Post: 02-05-2010, 03:29 PM
  3. Restore mail to another user's mailbox
    By zaf in forum Administrators
    Replies: 4
    Last Post: 02-08-2008, 08:26 AM
  4. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  5. Spam assassain not traiing properly!
    By Mike T in forum Administrators
    Replies: 1
    Last Post: 10-09-2006, 01:34 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
  •