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


LinkBack URL
About LinkBacks

