Results 1 to 4 of 4

Thread: extract account info

  1. #1
    jas78 is offline Starter Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    3

    Default extract account info

    Hi Guys,
    Is it possible to extract certain account info from zimbra?

    The info that I need is
    1) We require the list all the accounts that have set up forwarding in the system. The output the: ID, Name, Trainee Email Address, the email address the emails has been forwarded to.

    2) A list of all the email accounts, size in MegaBytes and the total number of emails.

    I try to use zmaccts however I only get the list for Account, status, created and last logon
    Also with zmprov -l gaa only give me all the lists of the email.

    Thanks for your help

  2. #2
    FritzBrause is offline Partner (VAR/HSP)
    Join Date
    Jan 2008
    Location
    Berlin, Germany
    Posts
    201
    Rep Power
    7

    Default

    Quote Originally Posted by jas78 View Post
    Hi Guys,
    Is it possible to extract certain account info from zimbra?

    The info that I need is
    1) We require the list all the accounts that have set up forwarding in the system. The output the: ID, Name, Trainee Email Address, the email address the emails has been forwarded to.
    Basic information if the Account has a forwarding address enabled can be obtained by

    Code:
    for account in `zmprov -l gaa`; do echo "Account: $account"; zmprov ga $account | grep zimbraPrefMailForwardingAddress; echo; done

    2) A list of all the email accounts, size in MegaBytes and the total number of emails.

    I try to use zmaccts however I only get the list for Account, status, created and last logon
    Also with zmprov -l gaa only give me all the lists of the email.

    Thanks for your help
    Try

    Code:
    zmprov gqu localhost
    for basic information or modify a script from here Quota Warning Script - Zimbra :: Wiki to fit your needs.

    Regards
    Best regards

    Andreas Wolske

    managedhosting.de GmbH

    Zimbra Cloud Hosting, Consulting & Support
    VMware vCloud Powered Serviceprovider

  3. #3
    Cine.ZxCommunity's Avatar
    Cine.ZxCommunity is offline Senior Member
    Join Date
    Jul 2011
    Posts
    55
    Rep Power
    3

    Default

    Hi!

    This two commands might be useful for you:

    1)
    Code:
    zmprov -l  gaa -v|grep "zimbraId:\|\# name\|orwardingAddress\|zimbraMailDeliveryAddress"
    (sorry, I didn't get what you mean by Trainee Email Address..)

    2)
    Code:
     zmprov gqu `zmhostname` |awk  '{print $1";"$3}'
    (Prints out mailbox;quotausage couples, in bytes.)

    Both commands must be run as the zimbra user..

    Enjoy!

    [EDIT: Seems I got second ]

    Cine - Community Manager - ZeXtras
    www.zextras.com

  4. #4
    jas78 is offline Starter Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    3

    Default

    Thanks for all the reply. You guys are awesome. I will try it once I am in the office tomorrow morning

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. postfix stopped
    By riegersteve in forum Administrators
    Replies: 1
    Last Post: 05-15-2007, 03:25 PM
  2. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  3. Mails accumulating in deferred queue
    By NIRMESH KUMAR in forum Administrators
    Replies: 10
    Last Post: 03-19-2007, 12:17 AM
  4. Web client logon fails (INVALID_PDU)
    By jermxx in forum Installation
    Replies: 8
    Last Post: 02-20-2007, 02:20 PM
  5. The mailbox and mta dies in FC4 GA version
    By meikka in forum Installation
    Replies: 72
    Last Post: 03-16-2006, 05:30 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
  •