Results 1 to 5 of 5

Thread: [SOLVED] Delete Mail from inbox

  1. #1
    krolen is offline Special Member
    Join Date
    Sep 2007
    Location
    Stockport
    Posts
    106
    Rep Power
    7

    Default [SOLVED] Delete Mail from inbox

    Is there a way to remove all the mail from a users mailbox without deleting the account and re-creating it? i would like to do this for approx. 1300 users!

    Someone has sent a message to a distribution list that is not appropriate.

    I have now restricted the distribution lists to aproved senders..

    Many thanks

    Andy

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

    Default

    Yes, the following command will do it:

    Code:
    su - zimbra
    zmmailbox -z -m admin@domain.com emptyFolder /inbox
    Obviously substitue the required folder name if it isn't Inbox. Be careful with this and make a backup, once you empty the folder they are gone.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    krolen is offline Special Member
    Join Date
    Sep 2007
    Location
    Stockport
    Posts
    106
    Rep Power
    7

    Default

    Many thanks

    Sorry to be a pain ? is there a way to do this on mass?

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

    Default

    I'm afraid that you would have to script it yourself, you can get the accounts with 'zmprov gaa'.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    krolen is offline Special Member
    Join Date
    Sep 2007
    Location
    Stockport
    Posts
    106
    Rep Power
    7

    Default Great!

    Thank you so much for your advice!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 01:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. server dropped connection
    By ferra in forum Installation
    Replies: 20
    Last Post: 10-06-2008, 04:32 PM
  4. Issues...
    By timothyalangorman in forum Administrators
    Replies: 3
    Last Post: 11-19-2007, 10:43 AM
  5. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM

Posting Permissions

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