Results 1 to 4 of 4

Thread: built in everyone@ account?

  1. #1
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default built in everyone@ account?

    You know, I've been using Zimbra long enough now that I really should know the answer to this (I suspect I do and that it's "no") but does ZCS have a built in distribution list for all known accounts?

    I have a distribution list of "allstaff" and when new accounts are made, I sometimes remember to add them to it, so I can indeed send and email to that list safe in the knowledge that someone probably wont get it

    I seem to remember that Exchange had everyone@ as a builtin list for this purpose, does it exist in Zimbra?

  2. #2
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    10

    Default

    As you already know the answer i will just confirm..
    NO

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  3. #3
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    This script will quickly create a distribution list with all users...

    Code:
    #!/bin/bash
    
    LISTNAME=everyone@domain.com
    
    # Delete existing list
    zmprov ddl $LISTNAME
    
    # Create new list
    zmprov cdl $LISTNAME
    for acct in `zmprov -l gaa`; do
            echo "adlm $LISTNAME $acct"
    done | zmprov
    01 Networks, LLC / Cybernetik.net
    Zimbra NE and OSS Cloud Hosting
    Shared Web Hosting
    Consulting Services

  4. #4
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    Nice!
    I always forget about the scripting aspect of Zimbra.
    That will inject every account though, which is good but it will include the spam/ham/wiki accounts, and any others that dont recieve mail. I've modified the script a little so that a list of accounts can be specified which will then be removed from the list.

    Code:
    ##!/bin/bash
    
    # --- Config section
    LISTNAME=allstaff@domain.com
    REMOVENAMES=( zimbra_spam@mail.comain.com zimbra_ham@mail.domain.com wiki@mail.domain.com otheraccount@domain.com )
    # --- End config
    
    
    # Delete existing list
    echo "Removing old copy of $LISTNAME..."
    zmprov ddl $LISTNAME
    echo -e "...done \n"
    
    # Create new list
    echo "Adding all accounts to $LISTNAME..."
    zmprov cdl $LISTNAME
    for acct in `zmprov -l gaa`; do
            echo "adlm $LISTNAME $acct"
    done | zmprov
    echo -e "\n...done \n"
    
    # Remove accounts from list that are known to be non-user accounts
    echo "Removing non-account addresses..."
    for acct in ${REMOVENAMES[@]}; do
            echo "rdlm $LISTNAME $acct"
    done | zmprov
    echo -e "\n...done \n"
    That seems to work, I could even add that as a cron task but that feels excessive
    Last edited by Dirk; 08-20-2010 at 03:56 AM. Reason: versioning error

Similar Threads

  1. Adding Hotmail Account always fails - WHY? What to do?
    By TygerZoyd in forum General Questions
    Replies: 13
    Last Post: 10-03-2013, 06:42 PM
  2. RCPT not using account prefs
    By bobm in forum Installation
    Replies: 1
    Last Post: 04-22-2010, 05:46 PM
  3. Mail From: not using account prefs
    By bobm in forum Installation Help
    Replies: 0
    Last Post: 04-22-2010, 07:42 AM
  4. Zimbra Desktop won't resolve hostnames
    By btriem in forum Error Reports
    Replies: 10
    Last Post: 09-09-2009, 08:30 AM
  5. Replies: 3
    Last Post: 09-18-2007, 06:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •