Zimbra Distribution List Backup (Migration)

OS : Centos 5.4 32bit
ZCS : Release 6.0.1_GA_1816.RHEL5_20090911181524 CentOS5 FOSS edition.
output : dislist
*execute using user zimbra

#!/bin/bash

for i in `zmprov gadl`
do
  echo $i
  echo "zmprov cdl $i" >> dislist
  zmprov gdl $i | grep zimbraMailForward | awk '{print $2}' > TEMP
  for row in $(cat TEMP)
  do
    echo "zmprov adlm $i $row" >> dislist
  done
done

rm -f TEMP

Leave a Comment

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.