Results 1 to 8 of 8

Thread: Distribution List Management

  1. #1
    physikal is offline Loyal Member
    Join Date
    Apr 2009
    Posts
    90
    Rep Power
    6

    Default Distribution List Management

    Is there an easier way to manage distribution lists easier? It is somewhat of a pain to add them each individually after you add their email. It would be nice if you could specify in the COS the default dist list that every newly created user is in.

    Also, if after you've added 50 new users, you could go into the dist list and compare what is already in specified dist list, to all email accounts, then have it show you which ones are not in the dist list so you could add them in bulk.

    Any tips on this sort of thing? Because where I am at right now, I have 240 email accounts, 170 or so in the dist list that I want all 240 in. So I will have to go through and cross check the 170 to 240, and manually add the missing 70. Not fun!

    Thanks!

  2. #2
    atevewr is offline Active Member
    Join Date
    Jul 2009
    Posts
    32
    Rep Power
    6

    Default

    Yep, that is one feature, i would also require.
    It will be a great help in our institutional scenario.

  3. #3
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Code:
    $ zmprov help list
    
      addDistributionListAlias(adla) {list@domain|id} {alias@domain}
    
      addDistributionListMember(adlm) {list@domain|id} {member@domain}+
    
      createDistributionList(cdl) {list@domain}
    
      deleteDistributionList(ddl) {list@domain|id}
    
      getAllDistributionLists(gadl) [{domain}]
    
      getDistributionList(gdl) {list@domain|id} [attr1 [attr2...]]
    
      getDistributionListMembership(gdlm) {name@domain|id}
    
      modifyDistributionList(mdl) {list@domain|id} attr1 value1 [attr2 value2...]
    
      removeDistributionListAlias(rdla) {list@domain|id} {alias@domain}
    
      removeDistributionListMember(rdlm) {list@domain|id} {member@domain}
    
      renameDistributionList(rdl) {list@domain|id} {newName@domain}
    And also file a RFE for the feature request in the Admin GUI.

  4. #4
    tiger2000 is offline Elite Member
    Join Date
    May 2008
    Location
    Taiwan
    Posts
    296
    Rep Power
    7

    Default

    it makes me crazy to drag-and-drop in the *slow* ZCS admin console, and i suggest you can try to write a script like this :

    1. get all account for specific COS or if you don't have specfic COS for users, then get all account list from ZCS
    2. get all member of that distribution list, e.g. you have all@example.com for all employee in company?
    3. compare and extract the difference
    4. add/remove such difference to all@example.com

    Code:
    # get all accounts and
    # assume you want to remove several system accounts first
    # and don't forget to SORT it first
    zmprov gaa | sed /admin/d | sed /wiki/d | sed /spam./d | sed /ham./d | sort > account.txt
    # if you are search all users who belongs to specific COS, 
    # then uncomment these lines.      
    # and cos_id can be found by zmprov gc <cos_name> | grep  "zimbraId:"
    # zmprov sa zimbraCOSId=<cos_id> > account.txt
    
    
    
    # get all members of your distribution list, e.g. all@example.com
    # again, SORT it first
    zmprov gdl all@example.com | grep "zimbraMailForwardingAddress" | cut -d' ' -f2 | sort > member.txt
    
    # compare and get the difference
    comm -2 -3 account.txt member.txt > add.txt
    comm -1 -3 account.txt member.txt > del.txt
    
    # add new member
    cat add.txt |
    while read line; do
      echo "add new member : $line"
      zmprov adlm all@example.com $line
    done
    
    # and this is to remove 
    cat del.txt |
    while read line; do
      echo "remove member : $line"
      zmprov rdlm all@example.com $line
    done
    Remember to modify it to meet your environment.

  5. #5
    veronica is offline Outstanding Member
    Join Date
    Jun 2008
    Posts
    594
    Rep Power
    8

    Default

    Looks fine to me

  6. #6
    physikal is offline Loyal Member
    Join Date
    Apr 2009
    Posts
    90
    Rep Power
    6

    Default

    I hate notepad. Thanks Tiger! Works AWESOME!
    Last edited by physikal; 09-11-2009 at 01:26 PM.

  7. #7
    Baylink is offline Elite Member
    Join Date
    Aug 2008
    Location
    St Pete FL USA
    Posts
    392
    Rep Power
    7

    Default

    google://gvim
    Jay R. Ashworth - ZCS 6.0.9CE/CentOS5 - St Pete FL US - Music - Blog - Photography - IANAL - IAAMA
    Try to Ask Questions The Smart Way -- you'll get better answers.

    Put your product and version in your profile/signature - All opinions strictly my own, even though I have an employer these days.
    If you [SOLVE] something, please tell everyone how for the archives
    And, please... read what people write, and answer the questions they asked, not the ones they didn't.

  8. #8
    dalmate is offline Elite Member
    Join Date
    Jan 2009
    Posts
    369
    Rep Power
    6

    Default

    or you can use my perl script
    you only enter list of account and distribtion list to import account
    note: account and distribution list name are seperated by ","
    a tool to add user to a distribution list

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Listing Distribution List Members
    By rwjblue in forum Administrators
    Replies: 8
    Last Post: 05-06-2014, 09:20 PM
  2. [SOLVED] Sudden problem synching with gmail
    By bouchardpie in forum Error Reports
    Replies: 8
    Last Post: 09-09-2010, 09:50 AM
  3. [SOLVED] Distribution List user not receiving email
    By Karassik in forum Installation
    Replies: 4
    Last Post: 08-21-2009, 03:10 PM
  4. Problem syncing all folders
    By mark_the_chain in forum Error Reports
    Replies: 0
    Last Post: 11-23-2008, 04:59 PM
  5. Replies: 4
    Last Post: 01-29-2008, 08:43 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
  •