Results 1 to 9 of 9

Thread: [SOLVED] Remove messages from inbox of all users??

  1. #1
    bjennings is offline Junior Member
    Join Date
    May 2007
    Posts
    7
    Rep Power
    7

    Default [SOLVED] Remove messages from inbox of all users??

    Ok, so I think I have Spamassassin killing all of the "you have a greeting card" crap emails that quite a few people have been receiving. My question is.......is there a way to re-scan everyone's inbox to delete all messages with a subject of "you've received a greeting card" ?

    Thanks for any info

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default

    You can use the zmmailbox CLI to search a user's mailbox for the message in question and also to delete that message.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    bjennings is offline Junior Member
    Join Date
    May 2007
    Posts
    7
    Rep Power
    7

    Default zmmailbox question

    So if I use

    zmmailbox -a admin -p <password> -m me@mydomain dm <msg ID>

    can I put in multiple message ID's?

  4. #4
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default

    Quote Originally Posted by bjennings View Post
    So if I use

    zmmailbox -a admin -p <password> -m me@mydomain dm <msg ID>

    can I put in multiple message ID's?
    Yes, you can. But please note that these are the numeric internal IDs for the messages in the Zimbra store, not the Message-ID headers from the message bodies.

    To search for a message with the Message-ID header <foo@bar>, I believe that you use the search string msgid:foo@bar.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    bjennings is offline Junior Member
    Join Date
    May 2007
    Posts
    7
    Rep Power
    7

    Default Do you know the context for using multiple ID's

    I am able to remove them one at a time, but cannot figure out the separator for multiple emails.

    I tried things like

    zmmailbox -a admin -p <password> -m me@mydomain dm 40503, 40504

    zmmailbox -a admin -p <password> -m me@mydomain dm 40503: 40504

    and a few others, but I can't find any documentation on what I should be using.

    Thanks for any insite.

    And yes, you are right. On my 4.5.6 system, it is <search msgid: (Message_id from email) to get the zimbra id number.

    So, for anyone else wondering, Here's what I did:

    Use zmmailbox

    mbox>adminauthenticate <admin> <password>

    mbox> selectMailbox <mailbox_user name>

    To search for message ID

    mbox> search msgid:465B275C.3090106@isode.com
    Last edited by bjennings; 08-01-2007 at 04:57 AM.

  6. #6
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default

    Quote Originally Posted by bjennings View Post
    I am able to remove them one at a time, but cannot figure out the separator for multiple emails.

    I tried things like

    zmmailbox -a admin -p <password> -m me@mydomain dm 40503, 40504

    zmmailbox -a admin -p <password> -m me@mydomain dm 40503: 40504

    and a few others, but I can't find any documentation on what I should be using.
    Try using spaces as your delimiter. In other words,
    Code:
    zmmailbox -a admin -p <password> -m me@mydomain dm 40503 40504 40505 40506
    Bugzilla - Wiki - Downloads - Before posting... Search!

  7. #7
    malayo is offline Special Member
    Join Date
    Apr 2011
    Posts
    117
    Rep Power
    3

    Default

    and how about the command to remove all messages in all users?

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

    Default

    Do not add your post to a thread that is as old as this one, start a new thread in future.

    Quote Originally Posted by malayo View Post
    and how about the command to remove all messages in all users?
    Why would you actually want to do that? Have you looked at the wiki article and forum threads (or even the cli help) that tell you how to empty an Inbox?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    malayo is offline Special Member
    Join Date
    Apr 2011
    Posts
    117
    Rep Power
    3

    Default

    found solution with a script on zimbra wiki about bulk provisioning

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Messages delivered but not visible in inbox
    By jchurchill in forum Installation
    Replies: 9
    Last Post: 08-03-2007, 11:03 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. Duplicate Messages in Inbox
    By placroix in forum General Questions
    Replies: 7
    Last Post: 04-07-2007, 11:34 AM
  4. Spam assassain not traiing properly!
    By Mike T in forum Administrators
    Replies: 1
    Last Post: 10-09-2006, 01:34 PM
  5. inbox got wiped overnight (lost messages)
    By tachijuan in forum Administrators
    Replies: 3
    Last Post: 09-07-2006, 09:01 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
  •