Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-06-2011, 11:49 PM
Starter Member
 
Posts: 2
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
Reply With Quote
  #2 (permalink)  
Old 07-07-2011, 05:37 AM
Partner (VAR/HSP)
 
Posts: 186
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

Quote:
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
Reply With Quote
  #3 (permalink)  
Old 07-07-2011, 05:56 AM
Senior Member
 
Posts: 50
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
Reply With Quote
  #4 (permalink)  
Old 07-07-2011, 07:23 AM
Starter Member
 
Posts: 2
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.