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 05-03-2010, 02:13 AM
Senior Member
 
Posts: 55
Default [SOLVED] getting list of all domains

Hi
A great way of getting all email addresses is to run
Code:
 /opt/zimbra/openldap/bin/ldapsearch -LLL -x -D"`/opt/zimbra/bin/zmlocalconfig -s zimbra_ldap_userdn | \
       awk '{print $3}'`" -w"`/opt/zimbra/bin/zmlocalconfig -s zimbra_ldap_password | \
       awk '{print $3}'`" -H `/opt/zimbra/bin/zmlocalconfig ldap_url | \
       awk '{print $3}'` $* | \
       grep ^mail | \
       awk '{print $2}' | \
       sort > zimbra_recipients.list
I would like to find a great way to get all domains (inclusive alias domains) in a list. Anyone know how to get this?
Reply With Quote
  #2 (permalink)  
Old 05-03-2010, 02:15 AM
Moderator
 
Posts: 7,928
Default

Code:
su - zimbra
zmprov gad
__________________
Reply With Quote
  #3 (permalink)  
Old 05-03-2010, 02:24 AM
Senior Member
 
Posts: 55
Default

Thank you.
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.