Results 1 to 3 of 3

Thread: How to delete a speceific message from all users

  1. #1
    Join Date
    May 2007
    Rep Power

    Default How to delete a speceific message from all users

    Is threre a way to delete a specific messsage from all users mailboxes ?


  2. #2
    Join Date
    Jul 2006
    New York, NY
    Rep Power


    Unless someone else chimes in with a better idea, you should be able to find the msg id for the email and then you can script the delete process.

    Something like...

    # Get all Accounts
    zmprov gaa | grep$ > /tmp/temp_file 
    # Delete message in each account with the matching msg id
    for acct in `cat /tmp/temp_file` ; do
        "zmmailbox -a <admin> -p <password> -m $acct dm <msg id>
    # Remove temp_file
    rm -f /tmp/temp_file
    You can probably grep for the message is

    grep phrase <path/to/store/> -R *

    I believe is the right syntax.

  3. #3
    Join Date
    Dec 2007
    Rep Power

    Default I want to need message in all account in distribution list.

    I want to delete all messages in inbox of all account in distribution list.

    I just know when I send message to users in distribution list ,they can get same message but difference message id.

    That is my problem ,I cannot delete email by Message ID (your script needs Message ID) because I must be tried to search Message ID before.

    In my mind, I think a message which I send to distribution list , It should has one Message ID because when I delete this message by Message ID , it should be deleted all inbox of all user. (I think by myself...)

    If you have other solution , please let me know.

    Normal man

Similar Threads

  1. Replies: 3
    Last Post: 07-19-2007, 02:00 AM
  2. 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
  3. delete a message in inbox
    By padraig in forum Administrators
    Replies: 3
    Last Post: 05-29-2007, 07:06 AM
  4. Replies: 12
    Last Post: 12-29-2005, 01:54 PM
  5. Unable to Move Users to a Domain or Delete Domain
    By Justin Rock in forum Administrators
    Replies: 2
    Last Post: 10-06-2005, 12:23 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