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 06-03-2011, 11:31 AM
Active Member
 
Posts: 48
Default How to find out who has a forward setup?

I'm trying to get a list of all users who have a forward setup. I would prefer a way to do this from the command line on the server. I'm sure one of the zm... commands is will do it I just need to know which one and the correct syntax.

Another thing that would be nice is a way to search for an email address in all of the distribution list that is not handled by the zimbra server.
Reply With Quote
  #2 (permalink)  
Old 06-03-2011, 01:00 PM
Active Member
 
Posts: 48
Default

Well, I found a way to get the forwarding info. I used the following command to get a full list of all email addresses.


/opt/zimbra/bin/zmprov -l gaa domain.com | sort > /tmp/email-list.txt

I then created a bash script that has a simple for loop to check the address using the "zmprov ga" command and grep for zimbraPrefMailForwardingAddress.

Still need to figure out the distribution list thing.
Reply With Quote
  #3 (permalink)  
Old 06-03-2011, 01:41 PM
Outstanding Member
 
Posts: 717
Default

You will have to loop through all of the distribution lists (zmprov gadl) and grep out the forwarding addresses:

zmprov gdl list@domain.com | grep zimbraMailForwardingAddress

and then you can grep against that for domains in your system.
__________________
01 Networks, LLC / Cybernetik.net
Zimbra NE and OSS Cloud Hosting
Shared Web Hosting
Consulting Services
Reply With Quote
  #4 (permalink)  
Old 06-03-2011, 02:18 PM
Active Member
 
Posts: 48
Default

Krishopper,

Thanks, I was already halfway down the path you suggested.
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.