Results 1 to 3 of 3

Thread: Problem with COS

  1. #1
    bibo is offline Senior Member
    Join Date
    Jul 2007
    Location
    Brazil
    Posts
    55
    Rep Power
    7

    Question Problem with COS

    Hi all,

    I create some COS to organize my site. Then, I had written a script to
    update a distribution list by COS and I have added in the /etc/cron.weekly.
    The script is below and the sintaxe is “update_list mycos”.

    During my test the script runs perfect. Today when I verify the lists I saw
    that my lists are wrong and I observed that in Admin GUI COS is empty
    when I click in “Class of Service”, but in the right menu I can open my
    six COS.

    Why my COS hidden? How do I fix this? How do I verify the integrity of
    COS? My script is in function of COS.

    Best regards,
    Bibo

    #!/bin/sh
    # You must be zimbra user to run this script.
    #
    CosType=$1
    LIST=${CosType}-l@mydomain.br
    ID=`zmprov gc ${CosType} | grep zimbraId: | awk '{ print $2 }'`
    # remove all users from list
    members=`zmprov gdl ${LIST} | grep Address | awk '{ print $2 }'`
    for i in ${members}; do
    zmprov rdlm ${LIST} ${i}
    done
    # update list
    list=`zmprov sa zimbraMailStatus=enabled and zimbraAccountStatus=active and zimbraCOSid=${ID}`
    for i in ${list}; do
    zmprov adlm ${LIST} ${i}
    done

  2. #2
    bibo is offline Senior Member
    Join Date
    Jul 2007
    Location
    Brazil
    Posts
    55
    Rep Power
    7

    Default

    Hi,

    I don´t understand why Admin GUI doesn´t show the COS.
    But I identified the error in the script. This sintaxe below doesn´t work.

    list=`zmprov sa zimbraMailStatus=enabled and zimbraAccountStatus=active and zimbraCOSid=${ID}`

    How do I do sintaxe with "and" in zmprov command?

    Best regards,
    Bibo

  3. #3
    apena is offline Junior Member
    Join Date
    Sep 2010
    Location
    Argenitna
    Posts
    6
    Rep Power
    4

    Default

    You just need to delet the "and" and the "=":

    list=`zmprov sa zimbraMailStatus enabled zimbraAccountStatus active zimbraCOSid ${ID}`

    As Zimbra user type "zmprov help" to know how tu use zmprov.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Junk/Trash + COS Message Lifetime problem
    By psousa in forum Administrators
    Replies: 2
    Last Post: 04-29-2008, 08:53 AM
  2. Missing Email Problem
    By prox in forum Zimbra Connector for Outlook
    Replies: 6
    Last Post: 03-16-2008, 10:01 PM
  3. Replies: 0
    Last Post: 12-09-2006, 03:16 PM
  4. Admin GUI COS dropdown in user general tab problem.
    By dhallweb in forum Administrators
    Replies: 5
    Last Post: 04-12-2006, 11:16 AM
  5. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11:11 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
  •